ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ratha <rat...@wso2.com>
Subject VariableTypeMismatch
Date Wed, 29 Oct 2008 03:40:26 GMT
Hi all,
I'm creating a sample loanprocess in ode(common one). Where I have two 
invoke services. So I have created three bpel files and I'm using only 
one wsdl file, where I defined all three port types and bindings.
For the binding operations I use Document/literal binding. So , I have 
created another schema files to define elements and types and one wsdl 
file where i define the 'Messages' for parts.
When i invoke a service it says "/*[VariableTypeMismatch] The variable 
"approval" must be of type "{http://loanProcess}approveResponse" to be 
used in this context; its actual type is 
"{http://www.example.org/messages/}approveResponse*/".

Here /*http://loanProcess:- */is my service target name space.
/*http://www.example.org/messages:- */is my messages.wsdl file's target 
name space./*

*/I imported all the files(wsdl and schema) to all bpel files. I dont 
know why above mentioned error occurs? I defined message for 
"approveResponse" at the wsdl file..Is my approach wrong?
Any assistance would be really helpful.

Thanks,
Ratha.

The followingsare my files,

*_Process wsdl file(This my wsdl file using for all services{part of the 
wsdl})
_* <schema xmlns="http://www.w3.org/2001/XMLSchema" 
attributeFormDefault="unqualified" elementFormDefault="qualified" 
targetNamespace="http://loanProcess">
 <element name="approveResponse">
                <complexType>
                    <sequence>

                        <element name="out" type="string"/>
                    </sequence>
                </complexType>
            </element>
 </schema>
        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:import namespace="http://www.example.org/elements"
                schemaLocation="elements.xsd">
            </xsd:import>
</xsd:schema>

<message name="approveResponse">
        <part element="xsd:loanApprovalresponse" name="Document" />
    </message>
*_

messages.wsdl file

_*<wsdl:definitions name="messages"
     targetNamespace="http://www.example.org/messages/" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:tns="http://www.example.org/messages/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:loan="http://www.example.org/elements">
     
  <wsdl:types>
    <xsd:schema elementFormDefault="qualified">
            <xsd:import
                namespace="http://www.example.org/elements"
                schemaLocation="elements.xsd">
            </xsd:import>
        </xsd:schema>
  </wsdl:types>
 
     <wsdl:message name="approveResponse">
    <wsdl:part element="loan:loanApprovalresponse" name="Document"/>
  </wsdl:message>
 
</wsdl:definitions>


_*elements.xsd file

*_<schema xmlns="http://www.w3.org/2001/XMLSchema"
 targetNamespace="http://www.example.org/elements"
 xmlns:tns="http://www.example.org/elements" elementFormDefault="qualified">


    <element name="loanProcessRequest" type="tns:LoanProcessRequest" 
 ></element>
   
    <complexType name="LoanProcessRequest" >
        <sequence>
            <element name="FirstName">
                <simpleType>
                    <restriction base="string">
                        <minLength value="1"></minLength>
                        <maxLength value="10"></maxLength>
                    </restriction>
                </simpleType>
            </element>
..............................................................................
.............................................................................*_
_*

Mime
View raw message