[
https://issues.apache.org/jira/browse/AXIS2-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Davanum Srinivas updated AXIS2-2958:
------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> wsdl2java is generating wrong code when using xmlbean binding. This was
> working before
> --------------------------------------------------------------------------------------
>
> Key: AXIS2-2958
> URL: https://issues.apache.org/jira/browse/AXIS2-2958
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.2
> Reporter: Dominique Gallot
> Assignee: Amila Chinthaka Suriarachchi
> Attachments: CommandResponseDocument.java,
> CommandResponseDocument.java, IInstantManager.wsdl
>
>
> With this simple wsdl file ( at this end of the message ), the new version
> 1.2 generates an improper class which is named : CommandResponseDocument
> The sub xml element in the response used to be a "commandReturn" but now it
> seems to be expecting an element named "result".
> The class source contains this :
> public interface extends org.apache.xmlbeans.XmlObject
> {
> ..
> public interface CommandResponse extends org.apache.xmlbeans.XmlObject
> {
> ..
> /**
> * Gets the "result" element
> */
> java.lang.String getResult();
> Instead of
> public interface extends org.apache.xmlbeans.XmlObject
> {
> ..
> public interface CommandResponse extends org.apache.xmlbeans.XmlObject
> {
> ..
> /**
> * Gets the "commandReturn" element
> */
> java.lang.String getCommandReturn();
> Of course based on the wsdl the element name should be commandReturn
> I really do not understand where the "return" element is comming from, since
> the word does not even appear on the wsdl file.
> Here is the wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
>
> targetNamespace="http:/smarttrust.com/instantmanager/services/IInstantManager"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http:/smarttrust.com/instantmanager/services/IInstantManager"
> xmlns:intf="http:/smarttrust.com/instantmanager/services/IInstantManager"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.2.1
> Built on Jun 14, 2005 (09:15:57 EDT)-->
> <wsdl:message name="commandResponse">
> <wsdl:part name="commandReturn" type="xsd:string"/>
> </wsdl:message>
> <wsdl:message name="commandRequest">
> <wsdl:part name="cmd" type="xsd:string"/>
> </wsdl:message>
> <wsdl:portType name="IInstantManager">
> <wsdl:operation name="command" parameterOrder="cmd">
> <wsdl:input message="impl:commandRequest" name="commandRequest"/>
> <wsdl:output message="impl:commandResponse" name="commandResponse"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="IInstantManagerBinding" type="impl:IInstantManager">
> <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="command">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="commandRequest">
> <wsdlsoap:body
> namespace="http:/smarttrust.com/instantmanager/services/IInstantManager"
> use="literal"/>
> </wsdl:input>
> <wsdl:output name="commandResponse">
> <wsdlsoap:body
> namespace="http:/smarttrust.com/instantmanager/services/IInstantManager"
> use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="IInstantManagerService">
> <wsdl:port binding="impl:IInstantManagerBinding" name="IInstantManager">
> <wsdlsoap:address
> location="http:/smarttrust.com/instantmanager/services/IInstantManager"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> Any idear where this result is comming from ?
> Thanks,
> Dominique
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]