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/07/18 08:28:04 UTC

[jira] Resolved: (AXIS2-2958) wsdl2java is generating wrong code when using xmlbean binding. This was working before

     [ https://issues.apache.org/jira/browse/AXIS2-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-2958.
-------------------------------------------------

    Resolution: Fixed

already fixed. please have a look at with the RC1

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org