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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/03/20 05:50:32 UTC

[jira] Commented: (AXIS2-2346) Second part of two-part message is ignored by WSDL2Java

    [ https://issues.apache.org/jira/browse/AXIS2-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482308 ] 

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

Actually your wsdl is wrong.
you have,

<wsdl:message name="GetEmailMessagesSinceTimeSoapIn">
<wsdl:part name="truckname" element="tns:truckname"/>
<wsdl:part name="LastPollDateTime" element="tns:LastPollDateTime"/>
</wsdl:message>

Normally you can not have more than one part for an element refered by an documnt/literal type binding. if so you have to specify which part to use in soap:body element.
i.e. <soap:body use="literal" parts="LastPollDateTime"/>

In Axis2 1.1.1 what it does is to pick the first part and proceed. So if you get an nighly build and do this you will get the correct error message.


> Second part of two-part message is ignored by WSDL2Java
> -------------------------------------------------------
>
>                 Key: AXIS2-2346
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2346
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: Windows XP, axis 2, v1.1.1
>            Reporter: Rich Adili
>         Attachments: Floogle.wsdl, FloogleStub.java
>
>
> Cmd Line: WSDL2Java  -p  pkgname  -uri  address  -s -wv 1.1 -pn FloogleSoap
> WSDL appears below. The LastPollDateTime parameter is not code-generated.
> <?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://www.xatanet.net/XataNetWebService/Floogle"
>                   xmlns:s1="http://www.xatanet.net/XataNetWebService/VehicleLocation.xsd"
>                   xmlns:s="http://www.w3.org/2001/XMLSchema"
>                   xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
>                   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
>                   targetNamespace="http://www.xatanet.net/XataNetWebService/Floogle"
>                   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> 	<wsdl:types>
> 		<s:schema elementFormDefault="qualified"
> 		          targetNamespace="http://www.xatanet.net/XataNetWebService/Floogle">
> 			<s:element name="truckname" type="s:string"/>
> 			<s:element name="LastPollDateTime" type="s:string"/>
> 		</s:schema>
> 	</wsdl:types>
> 	<wsdl:message name="GetEmailMessagesSinceTimeSoapIn">
> 		<wsdl:part name="truckname" element="tns:truckname"/>
> 		<wsdl:part name="LastPollDateTime" element="tns:LastPollDateTime"/>
> 	</wsdl:message>
> 	<wsdl:message name="GetEmailMessagesSinceTimeSoapOut">
> 		<wsdl:part name="GetEmailMessagesSinceTimeResult"
> 		           element="tns:GetEmailMessagesSinceTimeResult"/>
> 		<wsdl:part name="LastPollDateTime" element="tns:LastPollDateTime"/>
> 	</wsdl:message>
> 	<wsdl:portType name="FloogleSoap">
> 		<wsdl:operation name="GetEmailMessagesSinceTime">
> 			<wsdl:input message="tns:GetEmailMessagesSinceTimeSoapIn"/>
> 			<wsdl:output message="tns:GetEmailMessagesSinceTimeSoapOut"/>
> 		</wsdl:operation>
> 	</wsdl:portType>
> 	<wsdl:binding name="FloogleSoap" type="tns:FloogleSoap">
> 		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
> 		<wsdl:operation name="GetEmailMessagesSinceTime">
> 			<soap:operation
> 					soapAction="http://www.xatanet.net/XataNetWebService/Floogle/GetEmailMessagesSinceTime"
> 					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="Floogle">
> 		<wsdl:port name="FloogleSoap" binding="tns:FloogleSoap">
> 			<soap:address location="http://www.xatanet.net/xatanetwebservice/Floogle.asmx"/>
> 		</wsdl:port>
> 		<wsdl:port name="FloogleSoap12" binding="tns:FloogleSoap12">
> 			<soap12:address location="http://www.xatanet.net/xatanetwebservice/Floogle.asmx"/>
> 		</wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>

-- 
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