Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 71816 invoked from network); 19 Jan 2005 03:28:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Jan 2005 03:28:24 -0000 Received: (qmail 72678 invoked by uid 500); 19 Jan 2005 03:28:22 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 72652 invoked by uid 500); 19 Jan 2005 03:28:22 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 72634 invoked by uid 99); 19 Jan 2005 03:28:21 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=URIBL_WS_SURBL X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 18 Jan 2005 19:28:21 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j0J3SIbb006594 for ; Wed, 19 Jan 2005 04:28:18 +0100 Message-ID: <88816174.1106105298726.JavaMail.jira@ajax.apache.org> Date: Wed, 19 Jan 2005 04:28:18 +0100 (CET) From: "Tom Jordahl (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-1739) Bad part name in axis server response in document/literal style. In-Reply-To: <1307626561.1104566266505.JavaMail.apache@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ 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 --- > > className="net.moon.me.five.ws.StringTool" > namespace="${my.namespace}" > porttypename="StringUtility" > serviceportname="StringUtilityPort" > serviceelementname="J2ME05" > style="DOCUMENT" > location="http://ws.moon.net/j2me05"> > > > > > > ---------------------------- > The resulting WSDL, with the expected part names ! > --- WSDL --- > > 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/"> > > > targetNamespace="http://ws.moon.net/j2me05" elementFormDefault="qualified"> > > > > > > > > > > > > > > message="impl:reverseResponse"/> > > > type="impl:StringUtility"> > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > > > > > > > > > binding="impl:StringUtilityPortSoapBinding"> > > > > > ------------------------------------- > 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 > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:tns="http://ws.moon.net/j2me05"> > > ABC > > > --------------- > --- 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 > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > CBA > > 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