You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Asrael (JIRA)" <ji...@apache.org> on 2007/02/14 11:43:05 UTC

[jira] Created: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

wsdl2java wsdl creation for interop. with .net 
-----------------------------------------------

                 Key: AXIS2-2175
                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.1.1
         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
            Reporter: Asrael


We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.

Here i paste the original wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
	<s:element name="getBuilding">
        <s:complexType>
          <s:sequence>
	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getBuildingResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfBuild">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="Build">
        <s:all>
	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
        </s:all>
      </s:complexType>
      </s:schema>
     </wsdl:types>

	  <wsdl:message name="getBuildingSoapIn">
	    <wsdl:part element="tns:getBuilding" name="parameters"  />
	  </wsdl:message>
	  <wsdl:message name="getBuildingSoapOut">
	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
	  </wsdl:message>

	<wsdl:portType name="TerSoapEngine">
		<wsdl:operation name="getBuilding">
		      <wsdl:input message="tns:getBuildingSoapIn" />
		      <wsdl:output message="tns:getBuildingSoapOut" />
		 </wsdl:operation>
	</wsdl:portType>

	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />

		<wsdl:operation name="getBuilding">
	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
	      <wsdl:input>
		<soap:body use="literal" />
	      </wsdl:input>
	      <wsdl:output>
		<soap:body use="literal" />
	      </wsdl:output>
	    </wsdl:operation>
		
		</wsdl:binding>

	  <wsdl:service name="TerSoapEngine">
	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
	    </wsdl:port>
	</wsdl:service>

</wsdl:definitions>

and the wsdl create by wsdl2java

<wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
<s:element name="getBuilding">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" name="projectID" type="s:string" />
<s:element minOccurs="0" name="userID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getBuildingResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfBuild">
<s:sequence>
<s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
</s:sequence>
</s:complexType>
<s:complexType name="Build">
<s:all>
<s:element minOccurs="0" name="ID" type="s:string" />
<s:element minOccurs="0" name="Val" type="s:string" />
</s:all>
</s:complexType>
</s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>

the problem is in the message part:
is trasformed from

                       <wsdl:message name="getBuildingSoapIn">
	    <wsdl:part element="tns:getBuilding" name="parameters"  />
	  </wsdl:message>

to:
<wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />

When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
Why the part name is created not respecting the wsdl that feed that procedure?





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482765 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2175:
-----------------------------------------------------

I checked. Now what we do is directly serialize the original wsdl4jDefinition object.
So it can not be changed. 
Are you using Axis2 1.1.1-SNAPSHOT or Axis2-SNAPSHOT?
Can you send the wsdl file you get now?


> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Angel Todorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498155 ] 

Angel Todorov commented on AXIS2-2175:
--------------------------------------

Hi guys,

are you going to include/commit this? It has already been fixed and is staying for too long in the queue. Thank you very much.

Regards,
Angel

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: WSDLMessagePartName1.diff, WSDLMessagePartName1.diff
>
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Vasil Benov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483575 ] 

Vasil Benov commented on AXIS2-2175:
------------------------------------

Hi all,

the problem with this is that the parameter name in the services.xml should be named 

<useOriginalwsdl> an not <useOriginalWsdl> note the smaller case "w"

if the parameter is named properly everything is fine. 

Regards,
  Vasil

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Antony Bilev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484120 ] 

Antony Bilev commented on AXIS2-2175:
-------------------------------------

Hi all,
I still think that Axis2 should not change the part name, by using parameter <useOriginalwsdl> we'll lose the "good" modifications of wsdl too, so is it possible just to fix this bug/feature?

Regards
Antony

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Angel Todorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482320 ] 

Angel Todorov commented on AXIS2-2175:
--------------------------------------

Hi Amila,

I just tested the same thing using the latest Axis2 from SNAPSHOT - the problem is still present. Could you please double check if it is fixed? Thanks.

Best Regards,
Angel

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Antony Bilev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482788 ] 

Antony Bilev commented on AXIS2-2175:
-------------------------------------

Hi Amilia,

I was able to repeat the same problem with the latest Axis2 SNAPSHOT from 21.mar. I'm listing the orriginal orriginal WSDL and the one generated by Axis, where you can see that the part name is ommited from "parameters" to "part1".

Orriginal WSDL

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://tempuri.org/" xmlns:tns="http://tempuri.org/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <xsd:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"><xsd:element name="GetItemsByType" type="tns:GetItemsByType"/><xsd:complexType name="GetItemsByType"><xsd:sequence><xsd:element maxOccurs="1" minOccurs="0" name="ItemType" type="xsd:string"/></xsd:sequence></xsd:complexType><xsd:element name="GetItemsByTypeResponse" type="tns:GetItemsByTypeResponse"/><xsd:complexType name="GetItemsByTypeResponse"><xsd:sequence><xsd:element maxOccurs="unbounded" minOccurs="0" name="Items" type="tns:ItemSummary"/></xsd:sequence></xsd:complexType><xsd:complexType name="ItemSummary"><xsd:sequence><xsd:element maxOccurs="1" minOccurs="0" name="Description" type="xsd:string"/><xsd:element maxOccurs="1" minOccurs="0" name="Number" type="xsd:string"/><xsd:element maxOccurs="1" minOccurs="0" name="Name" type="xsd:string"/></xsd:sequence></xsd:complexType><xsd:element name="GetItemsTransactionStateful" type="tns:GetItemsTransactionStateful"/><xsd:complexType name="GetItemsTransactionStateful"><xsd:sequence><xsd:element maxOccurs="1" minOccurs="0" name="emulationSession" type="tns:EmulationSession"/></xsd:sequence></xsd:complexType><xsd:complexType name="EmulationSession"><xsd:sequence><xsd:element maxOccurs="1" minOccurs="0" name="SessionId" type="xsd:string"/><xsd:element maxOccurs="1" minOccurs="0" name="SessionPassword" type="xsd:string"/></xsd:sequence></xsd:complexType><xsd:element name="GetItemsTransactionStatefulResponse" type="tns:GetItemsTransactionStatefulResponse"/><xsd:complexType name="GetItemsTransactionStatefulResponse"><xsd:sequence><xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemNumber" type="xsd:string"/><xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemName" type="xsd:string"/><xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemDescription" type="xsd:string"/></xsd:sequence></xsd:complexType><xsd:element name="GetItemsTransaction" type="tns:GetItemsTransaction"/><xsd:complexType name="GetItemsTransaction"><xsd:sequence/></xsd:complexType><xsd:element name="GetItemsTransactionResponse" type="tns:GetItemsTransactionResponse"/><xsd:complexType name="GetItemsTransactionResponse"><xsd:sequence><xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemNumber" type="xsd:string"/><xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemName" type="xsd:string"/><xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemDescription" type="xsd:string"/></xsd:sequence></xsd:complexType></xsd:schema>
  </wsdl:types>
  <wsdl:message name="GetItemsTransactionOutput">
    <wsdl:part name="parameters" element="tns:GetItemsTransactionResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="GetItemsTransactionStatefulInput">
    <wsdl:part name="parameters" element="tns:GetItemsTransactionStateful">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="GetItemsByTypeInput">
    <wsdl:part name="parameters" element="tns:GetItemsByType">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="GetItemsTransactionStatefulOutput">
    <wsdl:part name="parameters" element="tns:GetItemsTransactionStatefulResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="GetItemsTransactionInput">
    <wsdl:part name="parameters" element="tns:GetItemsTransaction">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="GetItemsByTypeOutput">
    <wsdl:part name="parameters" element="tns:GetItemsByTypeResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="SabraFood.ItemsGroupPortType">
    <wsdl:operation name="GetItemsByType">
      <wsdl:input message="tns:GetItemsByTypeInput">
    </wsdl:input>
      <wsdl:output message="tns:GetItemsByTypeOutput">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetItemsTransactionStateful">
      <wsdl:input message="tns:GetItemsTransactionStatefulInput">
    </wsdl:input>
      <wsdl:output message="tns:GetItemsTransactionStatefulOutput">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetItemsTransaction">
      <wsdl:input message="tns:GetItemsTransactionInput">
    </wsdl:input>
      <wsdl:output message="tns:GetItemsTransactionOutput">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="SabraFood.ItemsGroupBinding" type="tns:SabraFood.ItemsGroupPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="GetItemsByType">
      <soap:operation soapAction="urn:http://tempuri.org/GetItemsByType"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetItemsTransactionStateful">
      <soap:operation soapAction="urn:http://tempuri.org/GetItemsTransaction"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetItemsTransaction">
      <soap:operation soapAction="urn:http://tempuri.org/GetItemsTransaction"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="SabraFood.ItemsGroup">
    <wsdl:port name="SabraFood.ItemsGroupPort" binding="tns:SabraFood.ItemsGroupBinding">
      <soap:address location="http://localhost:2380/applinx/services/SabraFood/ItemsGroup"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

Axis2 generated WSDL

<wsdl:definitions xmlns:tns="http://tempuri.org/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/"><wsdl:documentation>SabraFood.ItemsGroup</wsdl:documentation><wsdl:types><xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<xsd:element name="GetItemsByType" type="tns:GetItemsByType"/>
<xsd:complexType name="GetItemsByType">
<xsd:sequence>
<xsd:element minOccurs="0" name="ItemType" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="GetItemsByTypeResponse" type="tns:GetItemsByTypeResponse"/>
<xsd:complexType name="GetItemsByTypeResponse">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Items" type="tns:ItemSummary"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ItemSummary">
<xsd:sequence>
<xsd:element minOccurs="0" name="Description" type="xsd:string"/>
<xsd:element minOccurs="0" name="Number" type="xsd:string"/>
<xsd:element minOccurs="0" name="Name" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="GetItemsTransactionStateful" type="tns:GetItemsTransactionStateful"/>
<xsd:complexType name="GetItemsTransactionStateful">
<xsd:sequence>
<xsd:element minOccurs="0" name="emulationSession" type="tns:EmulationSession"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EmulationSession">
<xsd:sequence>
<xsd:element minOccurs="0" name="SessionId" type="xsd:string"/>
<xsd:element minOccurs="0" name="SessionPassword" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="GetItemsTransactionStatefulResponse" type="tns:GetItemsTransactionStatefulResponse"/>
<xsd:complexType name="GetItemsTransactionStatefulResponse">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemNumber" type="xsd:string"/>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemName" type="xsd:string"/>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemDescription" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="GetItemsTransaction" type="tns:GetItemsTransaction"/>
<xsd:complexType name="GetItemsTransaction">
<xsd:sequence/>
</xsd:complexType>
<xsd:element name="GetItemsTransactionResponse" type="tns:GetItemsTransactionResponse"/>
<xsd:complexType name="GetItemsTransactionResponse">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemNumber" type="xsd:string"/>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemName" type="xsd:string"/>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemDescription" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema></wsdl:types><wsdl:message name="GetItemsTransactionStatefulInput"><wsdl:part name="part1" element="tns:GetItemsTransactionStateful"/></wsdl:message><wsdl:message name="GetItemsTransactionStatefulOutput"><wsdl:part name="part1" element="tns:GetItemsTransactionStatefulResponse"/></wsdl:message><wsdl:message name="GetItemsTransactionInput"><wsdl:part name="part1" element="tns:GetItemsTransaction"/></wsdl:message><wsdl:message name="GetItemsTransactionOutput"><wsdl:part name="part1" element="tns:GetItemsTransactionResponse"/></wsdl:message><wsdl:message name="GetItemsByTypeInput"><wsdl:part name="part1" element="tns:GetItemsByType"/></wsdl:message><wsdl:message name="GetItemsByTypeOutput"><wsdl:part name="part1" element="tns:GetItemsByTypeResponse"/></wsdl:message><wsdl:portType name="SabraFood.ItemsGroupPortType"><wsdl:operation name="GetItemsTransactionStateful"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsTransactionStatefulInput" wsaw:Action="urn:http://tempuri.org/GetItemsTransaction"/><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsTransactionStatefulOutput" wsaw:Action="http://tempuri.org/SabraFood.ItemsGroupPortType/GetItemsTransactionStatefulResponse"/></wsdl:operation><wsdl:operation name="GetItemsTransaction"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsTransactionInput" wsaw:Action="urn:http://tempuri.org/GetItemsTransaction"/><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsTransactionOutput" wsaw:Action="http://tempuri.org/SabraFood.ItemsGroupPortType/GetItemsTransactionResponse"/></wsdl:operation><wsdl:operation name="GetItemsByType"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsByTypeInput" wsaw:Action="urn:http://tempuri.org/GetItemsByType"/><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:GetItemsByTypeOutput" wsaw:Action="http://tempuri.org/SabraFood.ItemsGroupPortType/GetItemsByTypeResponse"/></wsdl:operation></wsdl:portType><wsdl:binding name="SabraFood.ItemsGroupSOAP11Binding" type="tns:SabraFood.ItemsGroupPortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/><wsdl:operation name="GetItemsTransactionStateful"><soap:operation soapAction="urn:http://tempuri.org/GetItemsTransaction" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetItemsTransaction"><soap:operation soapAction="urn:http://tempuri.org/GetItemsTransaction" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetItemsByType"><soap:operation soapAction="urn:http://tempuri.org/GetItemsByType" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="SabraFood.ItemsGroupSOAP12Binding" type="tns:SabraFood.ItemsGroupPortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/><wsdl:operation name="GetItemsTransactionStateful"><soap12:operation soapAction="urn:http://tempuri.org/GetItemsTransaction" style="document"/><wsdl:input><soap12:body use="literal"/></wsdl:input><wsdl:output><soap12:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetItemsTransaction"><soap12:operation soapAction="urn:http://tempuri.org/GetItemsTransaction" style="document"/><wsdl:input><soap12:body use="literal"/></wsdl:input><wsdl:output><soap12:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetItemsByType"><soap12:operation soapAction="urn:http://tempuri.org/GetItemsByType" style="document"/><wsdl:input><soap12:body use="literal"/></wsdl:input><wsdl:output><soap12:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="SabraFood.ItemsGroupHttpBinding" type="tns:SabraFood.ItemsGroupPortType"><http:binding verb="POST"/><wsdl:operation name="GetItemsTransactionStateful"><http:operation location="GetItemsTransactionStateful"/><wsdl:input><mime:content type="text/xml"/></wsdl:input><wsdl:output><mime:content type="text/xml"/></wsdl:output></wsdl:operation><wsdl:operation name="GetItemsTransaction"><http:operation location="GetItemsTransaction"/><wsdl:input><mime:content type="text/xml"/></wsdl:input><wsdl:output><mime:content type="text/xml"/></wsdl:output></wsdl:operation><wsdl:operation name="GetItemsByType"><http:operation location="GetItemsByType"/><wsdl:input><mime:content type="text/xml"/></wsdl:input><wsdl:output><mime:content type="text/xml"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="SabraFood.ItemsGroup"><wsdl:port name="SabraFood.ItemsGroupSOAP11port_http" binding="tns:SabraFood.ItemsGroupSOAP11Binding"><soap:address location="http://localhost:8070/axis2/services/SabraFood.ItemsGroup"/></wsdl:port><wsdl:port name="SabraFood.ItemsGroupSOAP12port_http" binding="tns:SabraFood.ItemsGroupSOAP12Binding"><soap12:address location="http://localhost:8070/axis2/services/SabraFood.ItemsGroup"/></wsdl:port><wsdl:port name="SabraFood.ItemsGroupHttpport1" binding="tns:SabraFood.ItemsGroupHttpBinding"><http:address location="http://localhost:8070/axis2/rest/SabraFood.ItemsGroup"/></wsdl:port></wsdl:service></wsdl:definitions>

Regards,
Antony

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Angel Todorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Angel Todorov updated AXIS2-2175:
---------------------------------

    Attachment: WSDLMessagePartName1.diff

sorry, forgot to grant license to ASF

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: WSDLMessagePartName1.diff, WSDLMessagePartName1.diff
>
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481493 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2175:
-----------------------------------------------------

can you try with a axis2 SNAPSHOT nightly build. I check this with the trunk and it does not alter the part names as you have mentioned.

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2175.
-------------------------------------

    Resolution: Fixed

Angel,

Applied in svn revision 541303.

thanks,
dims

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: WSDLMessagePartName1.diff, WSDLMessagePartName1.diff
>
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Angel Todorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486365 ] 

Angel Todorov commented on AXIS2-2175:
--------------------------------------

Hi guys,

I am attaching a patch that fixes this issue. 

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: WSDLMessagePartName1.diff, WSDLMessagePartName1.diff
>
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Angel Todorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Angel Todorov updated AXIS2-2175:
---------------------------------

    Attachment: WSDLMessagePartName1.diff

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: WSDLMessagePartName1.diff, WSDLMessagePartName1.diff
>
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2175) wsdl2java wsdl creation for interop. with .net

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-2175:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> wsdl2java wsdl creation for interop. with .net 
> -----------------------------------------------
>
>                 Key: AXIS2-2175
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2175
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>         Environment: Windows XP  5.1 on system architecture: x86 - Tomcat 5.5.9 - Jre 1.5.0 - Axis2 1.1.1 - .net 2005
>            Reporter: Asrael
>         Assigned To: Amila Chinthaka Suriarachchi
>
> We are trying to operate with a .net client.  The problem is in the wsdl recreated by the wsdl2java operation.
> Here i paste the original wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soapServlet.it/RInterface" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://soapServlet.it/RInterface" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> 	<s:element name="getBuilding">
>         <s:complexType>
>           <s:sequence>
> 	    <s:element minOccurs="0" maxOccurs="1" name="projectID" type="s:string" />
>             <s:element minOccurs="0" maxOccurs="1" name="userID" type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getBuildingResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="getBuildingResult" type="tns:ArrayOfBuild" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfBuild">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Build" nillable="true" type="tns:Build" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Build">
>         <s:all>
> 	  <s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Val" type="s:string" />
>         </s:all>
>       </s:complexType>
>       </s:schema>
>      </wsdl:types>
> 	  <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> 	  <wsdl:message name="getBuildingSoapOut">
> 	    <wsdl:part element="tns:getBuildingResponse" name="parameters"  />
> 	  </wsdl:message>
> 	<wsdl:portType name="TerSoapEngine">
> 		<wsdl:operation name="getBuilding">
> 		      <wsdl:input message="tns:getBuildingSoapIn" />
> 		      <wsdl:output message="tns:getBuildingSoapOut" />
> 		 </wsdl:operation>
> 	</wsdl:portType>
> 	 <wsdl:binding name="TerSoapEngine" type="tns:TerSoapEngine">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="getBuilding">
> 	      <soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" />
> 	      <wsdl:input>
> 		<soap:body use="literal" />
> 	      </wsdl:input>
> 	      <wsdl:output>
> 		<soap:body use="literal" />
> 	      </wsdl:output>
> 	    </wsdl:operation>
> 		
> 		</wsdl:binding>
> 	  <wsdl:service name="TerSoapEngine">
> 	    <wsdl:port name="TerSoapEngine" binding="tns:TerSoapEngine">
> 	      <soap:address location="http://10.1.1.12/TerSoapEngine" />
> 	    </wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> and the wsdl create by wsdl2java
> <wsdl:definitions xmlns:tns="http://soapServlet.it/RInterface" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapServlet.it/RInterface"><wsdl:types><s:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://soapServlet.it/RInterface">
> <s:element name="getBuilding">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="projectID" type="s:string" />
> <s:element minOccurs="0" name="userID" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="getBuildingResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" name="getBuildingResult" type="tns:ArrayOfBuild" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="ArrayOfBuild">
> <s:sequence>
> <s:element maxOccurs="unbounded" minOccurs="0" name="Build" nillable="true" type="tns:Build" />
> </s:sequence>
> </s:complexType>
> <s:complexType name="Build">
> <s:all>
> <s:element minOccurs="0" name="ID" type="s:string" />
> <s:element minOccurs="0" name="Val" type="s:string" />
> </s:all>
> </s:complexType>
> </s:schema></wsdl:types><wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" /></wsdl:message><wsdl:message name="getBuildingSoapOut"><wsdl:part name="part1" element="tns:getBuildingResponse" /></wsdl:message><wsdl:portType name="TerSoapEnginePortType"><wsdl:operation name="getBuilding"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapIn" wsaw:Action="http://soapServlet.it/RInterface/getBuilding" /><wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="tns:getBuildingSoapOut" wsaw:Action="http://soapServlet.it/RInterface/TerSoapEngine/getBuildingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="TerSoapEngineSOAP11Binding" type="tns:TerSoapEnginePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="TerSoapEngineSOAP12Binding" type="tns:TerSoapEnginePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getBuilding"><soap12:operation soapAction="http://soapServlet.it/RInterface/getBuilding" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="TerSoapEngine"><wsdl:port name="TerSoapEngineSOAP11port_http" binding="tns:TerSoapEngineSOAP11Binding"><soap:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port><wsdl:port name="TerSoapEngineSOAP12port_http" binding="tns:TerSoapEngineSOAP12Binding"><soap12:address location="http://10.1.1.12/TerSoapEngine" /></wsdl:port></wsdl:service></wsdl:definitions>
> the problem is in the message part:
> is trasformed from
>                        <wsdl:message name="getBuildingSoapIn">
> 	    <wsdl:part element="tns:getBuilding" name="parameters"  />
> 	  </wsdl:message>
> to:
> <wsdl:message name="getBuildingSoapIn"><wsdl:part name="part1" element="tns:getBuilding" />
> When we try to create the stub under .net, with " name="parameters" ", the stub is created correctly, handling the 2 parameters unwrapped, while with "name="part1" " the stub is created with a wrapped element that call the service sendings the parameter inverted [the first shall be the last of the sequence and so on] creating and error [in fact the sequence is not respected].
> Why the part name is created not respecting the wsdl that feed that procedure?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org