Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 41632 invoked from network); 26 Jan 2005 15:56:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Jan 2005 15:56:51 -0000 Received: (qmail 36917 invoked by uid 500); 26 Jan 2005 15:56:26 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 36816 invoked by uid 500); 26 Jan 2005 15:56:25 -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 36779 invoked by uid 99); 26 Jan 2005 15:56:25 -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; Wed, 26 Jan 2005 07:56:24 -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 j0QFuLgN005411 for ; Wed, 26 Jan 2005 16:56:21 +0100 Message-ID: <1548528837.1106754981820.JavaMail.jira@ajax.apache.org> Date: Wed, 26 Jan 2005 16:56:21 +0100 (CET) From: "Paul Meier (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS-1781) MarshalException, when calling AXIS webservice function from J2ME In-Reply-To: <1038823578.1106754981326.JavaMail.jira@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-1781?page=history ] Paul Meier updated AXIS-1781: ----------------------------- Attachment: hallo.jws > MarshalException, when calling AXIS webservice function from J2ME > ----------------------------------------------------------------- > > Key: AXIS-1781 > URL: http://issues.apache.org/jira/browse/AXIS-1781 > Project: Axis > Type: Bug > Components: WSDL processing > Versions: 1.1 > Environment: Windows XP SP1, Tomcat 5, Sun WTK 2.1, Axis 1.1, J2ME, JSR-172 > Reporter: Paul Meier > Attachments: WSTest WTKProject.rar, hallo.class, hallo.jws, hallo.wsdl > > Hallo, > I'm a beginner to webservices with Apache Axis. For a project with J2ME that should use webservice functions I wanted to test an little webservice with Axis and the Sun WTK 2.1. > The name of the test class is hallo.java and was renamed to hallo.jws and placed in the webapps\axis folder of Tomcat. > It contains following code: > public class hallo { > public int hallo2(String input, int i) { > System.out.println("input " + input + " " + i); > return (i); > } > } > Nothing special as you see. The testing of this service in a java client on pc worked fine, after creating the needed stubs of course. > To generate the doc/lit style WSDL file for the Sun WTK 2.1 stub generator I used folowing command > java -cp ".\axis.jar;.\commons-logging.jar;.\commons-discovery.jar;.\saaj.jar;.\wsdl4j.jar;.\jaxrpc.jar;." org.apache.axis.wsdl.Java2WSDL -l "http://localhost:8080/axis/hallo.jws" -y WRAPPED -u LITERAL hallo > That worked fine and the wsdl file with following content was created: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The stub generation generated the needed stubs for the midlet, but 2 errors occured: > warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "hallo2" > warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "hallo2" > The deletion of " namespace="http://DefaultNamespace" " in the wsdl file led to stub generation of "hallostub" in src folder without am error message. > The midlet source WSTest.java is almost the same like the example of AxisUserTest last year. The only changes are the > import of the hallostub package, the creation of an object of class Hallo named hallo and initialized with hallo = new Hallo_Stub(); and the function call > int result = hallo.hallo2("GoodMorning!", 6); > System.out.println("Ergebnis: " + result); > String text = "Result is " + result + "."; > Alert a = new Alert("Result", text, null, AlertType.CONFIRMATION); . > The compilation and packaging (with j2me-ws.jar in lib) worked fine but in neither the SUN emulator or other emulators like Siemens CX65 or Nokia S40 or S60, the response to the webservice could be received. > For instance the Sun emulator sais after calling the service: > java.rmi.MarshalException: Invalid Element in Response: hallo2Return > at hallostub.Hallo_Stub.hallo2(+82) > at WSTest.run(+13) > The tomcat output windows shows after calling the service: > input GoodMorning! 6 > I conclude that the webservice has been called correctly, but the answer can not be understood by the midlet. > How can this be solved? > Thank you very much for your help. > Paul -- 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