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/02/09 05:54:06 UTC
[jira] Assigned: (AXIS2-2142) Code generated by Wsdl2Java is not
handling multiple parts in message correctly
[ https://issues.apache.org/jira/browse/AXIS2-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi reassigned AXIS2-2142:
---------------------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> Code generated by Wsdl2Java is not handling multiple parts in message correctly
> -------------------------------------------------------------------------------
>
> Key: AXIS2-2142
> URL: https://issues.apache.org/jira/browse/AXIS2-2142
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Tools
> Affects Versions: 1.1.1
> Environment: Windowx XP
> Reporter: Kamal Kang
> Assigned To: Amila Chinthaka Suriarachchi
> Attachments: tmf854.zip
>
>
> I have a following wsdl
> <wsdl:message name="getAllCapabilities">
> <wsdl:documentation>
> The getAllCapabilities request message.
> </wsdl:documentation>
> <wsdl:part name="mtosiHeader" element="tmf854XSD:header"/>
> <wsdl:part name="mtosiBody" element="tmf854XSD:getAllCapabilities"/>
> </wsdl:message>
> <wsdl:message name="getAllCapabilitiesResponse">
> <wsdl:documentation>
> The getAllCapabilities response message.
> </wsdl:documentation>
> <wsdl:part name="mtosiHeader" element="tmf854XSD:header"/>
> <wsdl:part name="mtosiBody" element="tmf854XSD:getAllCapabilitiesResponse"/>
> </wsdl:message>
> <wsdl:portType name="DiscoveryService">
> <wsdl:documentation>
> The MTOSI Discovery interface (porttype)
> </wsdl:documentation>
> <wsdl:operation name="getAllCapabilities">
> <wsdl:input message="tmf854WS:getAllCapabilities"/>
> <wsdl:output message="tmf854WS:getAllCapabilitiesResponse"/>
> <wsdl:fault name="ProcessingFailureException" message="tmf854WS:ProcessingFailureException"/>
> </wsdl:operation>
> </wsdl:portType>
> ...
> <wsdl:binding name="DiscoveryServiceSoapHTTPBinding" type="tmf854WS:DiscoveryService">
> <soap:binding style="document" transport=" http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="getAllCapabilities">
> <soap:operation soapAction="getAllCapabilities" style="document"/>
> <wsdl:input>
> <soap:header message="tmf854WS:getAllCapabilities" part="mtosiHeader" use="literal" />
> <soap:body parts="mtosiBody" use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:header message="tmf854WS:getAllCapabilitiesResponse" part="mtosiHeader" use="literal" />
> <soap:body parts="mtosiBody" use="literal" />
> </wsdl:output>
> <wsdl:fault name="ProcessingFailureException">
> <soap:fault name="ProcessingFailureException" use="literal" />
> </wsdl:fault>
> </wsdl:operation>
>
> </wsdl:binding>
> The skeleton code generated by JAX-WS 2.1 is as follows
> @WebService(serviceName = "DiscoveryService", portName = "DiscoveryServiceHttp", endpointInterface = "ws.v1.tmf854.DiscoveryService", targetNamespace = " tmf854.v1.ws", wsdlLocation = "WEB-INF/wsdl/DiscoverServiceImpl/DiscoveryService.wsdl")
> public class DiscoverServiceImpl implements ws.v1.tmf854.DiscoveryService {
>
> /** Creates a new instance of DiscoverServiceImpl */
> public DiscoverServiceImpl() {
> }
> public ws.v1.tmf854.GetAllCapabilitiesResponseT getAllCapabilities(javax.xml.ws.Holder<ws.v1.tmf854.HeaderT> mtosiHeader, ws.v1.tmf854.GetAllCapabilitiesT mtosiBody) throws ws.v1.tmf854.ProcessingFailureException {
> return null;
> }
>
> }
> And the code generated by axis 2 (1.1.1) is as follows
> public class DiscoveryServiceSkeleton{
>
>
> /**
> * Auto generated method signature
>
> * @param param0
>
> */
> public ws.v1.tmf854.GetAllCapabilitiesResponseT getAllCapabilities
> (
> ws.v1.tmf854.GetAllCapabilitiesT param0
> )
>
> throws ProcessingFailureExceptionException{
> //Todo fill this with the necessary business logic
> throw new java.lang.UnsupportedOperationException("Please implement " + this.getClass().getName() + "#getAllCapabilities");
> }
>
> }
> Why the code generated by axis is missing header in request and response?
--
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