Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 51174 invoked from network); 9 May 2005 07:41:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2005 07:41:01 -0000 Received: (qmail 2239 invoked by uid 500); 9 May 2005 07:43:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 2143 invoked by uid 500); 9 May 2005 07:43:28 -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 1992 invoked by uid 99); 9 May 2005 07:43:22 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Mon, 09 May 2005 00:43:18 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 04BFC2DE for ; Mon, 9 May 2005 09:40:10 +0200 (CEST) Message-ID: <1619824977.1115624410018.JavaMail.jira@ajax.apache.org> Date: Mon, 9 May 2005 09:40:10 +0200 (CEST) From: "Ephemeris Lappis (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.apache.org 1.6.2 0/1000/N [ 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 --- > > 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira