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 "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org> on 2005/01/01 08:57:46 UTC

[jira] Created: (AXIS-1739) Bad part name in axis server response in document/literal style.

Bad part name in axis server response in document/literal style.
----------------------------------------------------------------

         Key: AXIS-1739
         URL: http://issues.apache.org/jira/browse/AXIS-1739
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2 Beta, 1.2RC2    
 Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
JDK 1.4.2_01-b06
    Reporter: Ephemeris Lappis


Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.

All my last tests around document/literal style let me with troubles. To
start again with simple things, i have made a basic service to evaluate the
primary interoperability with my J2ME client. This simple service provides a
single operation that takes a string, reverses it and returns it.
On the client side, i work with the SUN Wireless toolkit that support the
JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
generated the j2me client stubs, and built my midlet to call the web
service. At run time, the client reports an error in the server response :
the name of the response part for the return value is not as defined in the
wsdl descriptor. To be sure, i had made the test again putting the tcp
monitor in the middle... and it seems the client is right !
The name of the part in the wsdl is 'reverseReturn' and axis uses
'in0Return'...
Is it a bug, or just another mis-interpretation of mine ?
Thanks to give your opinion and confirm, or not, it is actually a bug...


Here the java code :

--- java interface ---
package net.moon.me.five.ws;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface StringTool extends Remote {

	public String reverse(String string) throws RemoteException;

}
----------------------

I have successfully generated the wsdl with the following ant script :

--- wsdl2java ant script ---
<property name="my.namespace" value="http://ws.moon.net/j2me05" />
<java2wsdl output="./wsdl/j2me05ws.wsdl"
           className="net.moon.me.five.ws.StringTool"
           namespace="${my.namespace}"
           porttypename="StringUtility"
           serviceportname="StringUtilityPort"
           serviceelementname="J2ME05"
           style="DOCUMENT"
           location="http://ws.moon.net/j2me05">
	<classpath>
		<pathelement location="${my.services.compile-directory}" />
		<path refid="my.axis.classpath" />
	</classpath>
</java2wsdl>
----------------------------

The resulting WSDL, with the expected part names !

--- WSDL ---
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
xmlns:impl="http://ws.moon.net/j2me05"
xmlns:intf="http://ws.moon.net/j2me05"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<!--WSDL created by Apache Axis version: 1.2RC2
Built on Nov 16, 2004 (12:19:44 EST)-->
 <wsdl:types>
  <schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
   <element name="in0" type="xsd:string"/>
   <element name="reverseReturn" type="xsd:string"/>
  </schema>
 </wsdl:types>

   <wsdl:message name="reverseRequest">

      <wsdl:part name="in0" element="impl:in0"/>

   </wsdl:message>

   <wsdl:message name="reverseResponse">

      <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>

   </wsdl:message>

   <wsdl:portType name="StringUtility">

      <wsdl:operation name="reverse" parameterOrder="in0">

         <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>

         <wsdl:output name="reverseResponse"
message="impl:reverseResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="StringUtilityPortSoapBinding"
type="impl:StringUtility">

      <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="reverse">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="reverseRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="reverseResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="J2ME05">

      <wsdl:port name="StringUtilityPort"
binding="impl:StringUtilityPortSoapBinding">

         <wsdlsoap:address location="http://ws.moon.net/j2me05"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>
-------------------------------------

And now, the dumped http request and response :

--- request ---
POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
Content-Language: en-US
Content-Type: text/xml
SOAPAction: "
Content-Length: 315
Host: localhost

<?xml version="1.0" encoding="utf-8"?>
   <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://ws.moon.net/j2me05">
      <soap:Body>
         <tns:in0>ABC</tns:in0>
      </soap:Body>
   </soap:Envelope>
---------------

--- response ---
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 21 Dec 2004 14:15:18 GMT
Server: Apache-Coyote/1.1

123
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
   </soapenv:Body></soapenv:Envelope>
0
----------------


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Bill Keese (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_57572 ]
     
Bill Keese commented on AXIS-1739:
----------------------------------

The problem code appears to be in RPCProvider.processMessage(), which adds <methodNameResponse> and <methodNameReturn> tags regardless of the style.

(In this case AXIS is actually it getting confused about the method name, but in reality it shouldn't be printing any tags at all.)

>From Ann Thomas Mannes:
Axis should generate a <methodNameReturn> tag only when using RPC
style. It should not generate the tag when using either wrapped or
document style. In both cases, the child element of the SOAP Body
should be the element specified in the response message part. For
example, if the response message is defined as:

<wsdl:message name="methodResponse">
  <wsdl:part name="parameters" element="tns:foo"/>
</wsdl:message>

then the response message for either wrapped or document style should be:

<s:Body>
  <tns:foo.../>
</s:Body>

- Anne

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis

>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Bill Keese (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_57755 ]
     
Bill Keese commented on AXIS-1739:
----------------------------------

My comment before was inaccurate.  The issue isn't the naming of the tags, but the fact that wsdl.exe expects a wrapper tag in the response, at least in the wrapped/literal case.   I wanted to model the function

  String Unwrapped(String x, String y)

I tried the following WSDL file, which I think is valid, but wsdl.exe gives me an error message:

      <element name="Unwrapped">
       <complexType>
        <sequence>
          <element name="x" nillable="false" type="xsd:string"/>
          <element name="y" nillable="false" type="xsd:string"/>
        </sequence>
       </complexType>
      </element>
      <element name="UnwrappedResponse" type="xsd:string"/>

The error message is "UnwrappedResponse is being imported 2 times for different reasons(PrimitiveMapping, MembersMapping)".  If UnwrappedResponse is a complex element containing another element it works OK.

Anyway, I just wanted to make sure that when this bug gets fixed, it doesn't break .NET interoperability for wrapped/literal.

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis

>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_60150 ]
     
Davanum Srinivas commented on AXIS-1739:
----------------------------------------

not sure about this one. Please try RC3 and report behaviour changes if any. please do change "DOCUMENT" to "WRAPPED" on the java2wsdl and try that as well.

thanks,
dims

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis

>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_64840 ]
     
Ephemeris Lappis commented on AXIS-1739:
----------------------------------------

Hello again.
I think this will be the last comment on this issue.
At last, using the last JOnAS 4.3.4 web service generator with the last AXIS wsdl, it seems to work fine !!!
Just to moderate my joy, i remind that my test service just handles a string and returns it, and i will build new tests using document/literal style with more complex data structures...
I suppose this issue can be closed.
Thanks to all !

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: deploy-server-0.wsdd, j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Bill Keese (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_64733 ]
     
Bill Keese commented on AXIS-1739:
----------------------------------

Hmmm... I think that your WSDD should say "reverseReturn" somewhere in it.  I've never used Jonas, but I think that if you run java2wsdl and then run wsdl2java, then the generated WSDD will contain "reverseReturn".

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: deploy-server-0.wsdd, j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=all ]

Ephemeris Lappis updated AXIS-1739:
-----------------------------------

    Attachment: deploy-server-0.wsdd

WSDD generated by JOnAS.

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: deploy-server-0.wsdd, j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_64730 ]
     
Ephemeris Lappis commented on AXIS-1739:
----------------------------------------

I have added an attachment with the WSDD.
For information, my tests are done using JOnAS, and, for what i know, the generated web service WSDD is merged with the default one by JOnAS at deployment time.
As the single operation only handles strings, logically no custom serializer is used. Thus, the wsdd seems quite simple...

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: deploy-server-0.wsdd, j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_64735 ]
     
Ephemeris Lappis commented on AXIS-1739:
----------------------------------------

I've posted a request for comment to the JOnAS list with a link to this issue...

Just a question : as my test service is very simple, and just uses primitive XSD string type, no custom data handler is required. Why the AXIS server in this case should need more information than the WSDL descriptor to parse requests or generate responses ?

I'll come back when i get some new information from the JOnAS side, if any...

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: deploy-server-0.wsdd, j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Bill Keese (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_57744 ]
     
Bill Keese commented on AXIS-1739:
----------------------------------

Although this bug relates to document/literal, I wanted to make a comment about wrapped/literal:

I am currently experimenting with wdsl.exe [Microsoft (R) .NET Framework, Version 1.0.3705.0], Microsoft's client stub generator for web services.  Apparently, Microsoft won't recognize an operation as wrapped/literal style unless (given a service called XXX) the request has an outer tag <getXXX> AND the response has an outer tag <getXXXResponse>.  If you develop a wrapped/literal style service using Microsoft's tools, it apparently also follows this convention.

Obviously for document/literal mode Axis shouldn't be inserting tags like this, but for wrapped/literal it seems like a good idea.



> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis

>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_57750 ]
     
Tom Jordahl commented on AXIS-1739:
-----------------------------------

I don't believe the previous comment is correct.  .NET wsdl.exe keys its wrapped support when there is a single part that has the name "parameters" that points to an element.  It will then unwrap the element and each element in the complex type becomes one of the function parameters.  Axis took this a bit further, and formally defines rules (which I believed .NET was using, but I was wrong) that say: single part, element name same as operation name, no attributes, then we try to unwrap it in WSDL2Java.

I am not sure where the getXXX stuff comes in, but this probably is better discussed on the mailing list than in a possibly unrelated bug.


> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis

>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_60286 ]
     
Ephemeris Lappis commented on AXIS-1739:
----------------------------------------

I've been testing again with the last RC3 version, and it seems the bug remains the same : the return part of the response body still is "in0Return", and not "reverseResponse", as described by the wsdl generated file (i attach the new wsdl)...
Sorry, i'll wait for RC4...

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>  Attachments: j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=history ]

Davanum Srinivas reassigned AXIS-1739:
--------------------------------------

    Assign To: Glen Daniels

Glen,

Can u please take a quick look at this one?

thanks,
dims

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=all ]
     
Davanum Srinivas resolved AXIS-1739:
------------------------------------

    Resolution: Fixed

closed :)

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: deploy-server-0.wsdd, j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_60095 ]
     
Ephemeris Lappis commented on AXIS-1739:
----------------------------------------

What about this issue in the coming new release ?

It should be nice to confirm it has been fixed...

Thanks !

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis

>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Bill Keese (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_64727 ]
     
Bill Keese commented on AXIS-1739:
----------------------------------

What WSDD file did you use?

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=all ]

Ephemeris Lappis updated AXIS-1739:
-----------------------------------

    Attachment: j2me05ws.wsdl

WSDL file with the right element names.

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_64725 ]
     
Ephemeris Lappis commented on AXIS-1739:
----------------------------------------

A last test with the final 1.2 release (build at may, 3), still produces the same bad result : the response part element returned by Axis is "in0Return" instead of the expected "reverseReturn" as described in the wsdl.

A attach the new wsdl generated and used with this Axis version.

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Bill Keese (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=comments#action_64790 ]
     
Bill Keese commented on AXIS-1739:
----------------------------------

Unfortunately, that's just the way Axis works.  The wsdl2java program understands the WSDL file, but the main Axis code doesn't use the WSDL file at all.  It only uses the information in the WSDD file and in the java classes themselves.  Axis passes the WSDL file to the client but it doesn't parse the WSDL file itself.

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>     Assignee: Glen Daniels
>  Attachments: deploy-server-0.wsdd, j2me05ws.wsdl, j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1739) Bad part name in axis server response in document/literal style.

Posted by "Ephemeris Lappis (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1739?page=history ]

Ephemeris Lappis updated AXIS-1739:
-----------------------------------

    Attachment: j2me05ws.wsdl

The WSDL file generated with 1.2 RC3.

> Bad part name in axis server response in document/literal style.
> ----------------------------------------------------------------
>
>          Key: AXIS-1739
>          URL: http://issues.apache.org/jira/browse/AXIS-1739
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta, 1.2RC2
>  Environment: Windows 2K SP4 / Ant 1.6 within Eclipse 3.0.1 
> JDK 1.4.2_01-b06
>     Reporter: Ephemeris Lappis
>  Attachments: j2me05ws.wsdl
>
> Few days ago, i had posted this note to the mailing list to try to have a feedback, but as there is no echo, i copy it as a new report.
> All my last tests around document/literal style let me with troubles. To
> start again with simple things, i have made a basic service to evaluate the
> primary interoperability with my J2ME client. This simple service provides a
> single operation that takes a string, reverses it and returns it.
> On the client side, i work with the SUN Wireless toolkit that support the
> JSR172 (web-service for J2ME). Using the axis wsdl i have successfully
> generated the j2me client stubs, and built my midlet to call the web
> service. At run time, the client reports an error in the server response :
> the name of the response part for the return value is not as defined in the
> wsdl descriptor. To be sure, i had made the test again putting the tcp
> monitor in the middle... and it seems the client is right !
> The name of the part in the wsdl is 'reverseReturn' and axis uses
> 'in0Return'...
> Is it a bug, or just another mis-interpretation of mine ?
> Thanks to give your opinion and confirm, or not, it is actually a bug...
> Here the java code :
> --- java interface ---
> package net.moon.me.five.ws;
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> public interface StringTool extends Remote {
> 	public String reverse(String string) throws RemoteException;
> }
> ----------------------
> I have successfully generated the wsdl with the following ant script :
> --- wsdl2java ant script ---
> <property name="my.namespace" value="http://ws.moon.net/j2me05" />
> <java2wsdl output="./wsdl/j2me05ws.wsdl"
>            className="net.moon.me.five.ws.StringTool"
>            namespace="${my.namespace}"
>            porttypename="StringUtility"
>            serviceportname="StringUtilityPort"
>            serviceelementname="J2ME05"
>            style="DOCUMENT"
>            location="http://ws.moon.net/j2me05">
> 	<classpath>
> 		<pathelement location="${my.services.compile-directory}" />
> 		<path refid="my.axis.classpath" />
> 	</classpath>
> </java2wsdl>
> ----------------------------
> The resulting WSDL, with the expected part names !
> --- WSDL ---
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://ws.moon.net/j2me05"
> xmlns:impl="http://ws.moon.net/j2me05"
> xmlns:intf="http://ws.moon.net/j2me05"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <!--WSDL created by Apache Axis version: 1.2RC2
> Built on Nov 16, 2004 (12:19:44 EST)-->
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified">
>    <element name="in0" type="xsd:string"/>
>    <element name="reverseReturn" type="xsd:string"/>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="reverseRequest">
>       <wsdl:part name="in0" element="impl:in0"/>
>    </wsdl:message>
>    <wsdl:message name="reverseResponse">
>       <wsdl:part name="reverseReturn" element="impl:reverseReturn"/>
>    </wsdl:message>
>    <wsdl:portType name="StringUtility">
>       <wsdl:operation name="reverse" parameterOrder="in0">
>          <wsdl:input name="reverseRequest" message="impl:reverseRequest"/>
>          <wsdl:output name="reverseResponse"
> message="impl:reverseResponse"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="StringUtilityPortSoapBinding"
> type="impl:StringUtility">
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="reverse">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="reverseRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="reverseResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="J2ME05">
>       <wsdl:port name="StringUtilityPort"
> binding="impl:StringUtilityPortSoapBinding">
>          <wsdlsoap:address location="http://ws.moon.net/j2me05"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> -------------------------------------
> And now, the dumped http request and response :
> --- request ---
> POST /j2me05ws-ejb/J2ME-05-WS/J2ME05WS HTTP/1.1
> User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
> Content-Language: en-US
> Content-Type: text/xml
> SOAPAction: "
> Content-Length: 315
> Host: localhost
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tns="http://ws.moon.net/j2me05">
>       <soap:Body>
>          <tns:in0>ABC</tns:in0>
>       </soap:Body>
>    </soap:Envelope>
> ---------------
> --- response ---
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=75C329A6CED0EE74D896E083043AFA0A; Path=/j2me05ws-ejb
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Tue, 21 Dec 2004 14:15:18 GMT
> Server: Apache-Coyote/1.1
> 123
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <in0Return xmlns="http://ws.moon.net/j2me05">CBA</in0Return>
>    </soapenv:Body></soapenv:Envelope>
> 0
> ----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira