axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Updated: (AXIS-1490) interoperability Sun's JSR 172 and Axis
Date Wed, 04 Aug 2004 10:51:19 GMT
The following issue has been updated:

    Updater: luigi coppolino (
       Date: Wed, 4 Aug 2004 3:50 AM
server side
             Attachment changed to
For a full history of the issue, see:

View the issue:

Here is an overview of the issue:
        Key: AXIS-1490
    Summary: interoperability Sun's JSR 172 and Axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis

   Reporter: luigi coppolino

    Created: Wed, 4 Aug 2004 1:17 AM
    Updated: Wed, 4 Aug 2004 3:50 AM
Environment: Sun's WTK 2.1 and axis 1.2beta

I have generated a simple service it make the sum between two integer.
I used Java2WSDL and WSDL2Java to obtain the wsdd. Now I have edited the .wsdd to:
1- change the implementation class to my class
2- change rpc/encoded to wrapped/literal (required by Sun's WTK)

I deployed the service and I can see the service endpoint with its WSDL.

I have generated client's stubs with the Wireless Toolkit and a simple client that uses those

Here is the deployed wsdl:

<?xml version="1.0" encoding="UTF-8" ?> 
- <wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns:apachesoap=""
xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace" xmlns:wsdl=""
xmlns:wsdlsoap="" xmlns:xsd="">
- <!-- 
WSDL created by Apache Axis version: 1.2beta
Built on Mar 31, 2004 (12:47:03 EST)

- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://DefaultNamespace" xmlns="">
- <element name="somma">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:int" /> 
  <element name="in1" type="xsd:int" /> 
- <element name="sommaResponse">
- <complexType>
- <sequence>
  <element name="sommaReturn" type="xsd:int" /> 
- <wsdl:message name="sommaRequest">
  <wsdl:part element="impl:somma" name="parameters" /> 
- <wsdl:message name="sommaResponse">
  <wsdl:part element="impl:sommaResponse" name="parameters" /> 
- <wsdl:portType name="Calculator">
- <wsdl:operation name="somma" parameterOrder="">
  <wsdl:input message="impl:sommaRequest" name="sommaRequest" /> 
  <wsdl:output message="impl:sommaResponse" name="sommaResponse" /> 
- <wsdl:binding name="calculatorSoapBinding" type="impl:Calculator">
  <wsdlsoap:binding style="document" transport="" />

- <wsdl:operation name="somma">
  <wsdlsoap:operation soapAction="" /> 
- <wsdl:input name="sommaRequest">
  <wsdlsoap:body use="literal" /> 
- <wsdl:output name="sommaResponse">
  <wsdlsoap:body use="literal" /> 
- <wsdl:service name="CalculatorService">
- <wsdl:port binding="impl:calculatorSoapBinding" name="calculator">
  <wsdlsoap:address location="http://localhost/axis/services/calculator" /> 

Executing the client I obtain the following message:

Invalid Element in Response: sommaReturn
java.rmi.MarshalException: Invalid Element in Response: sommaReturn
        at calcolatore.Calculator_Stub.somma(+89)
        at CalculatorClient.startApp(+26)
        at javax.microedition.midlet.MIDletProxy.startApp(+7)
        at com.sun.midp.midlet.Scheduler.schedule(+266)
        at com.sun.midp.main.Main.runLocalClass(+28)
        at com.sun.midp.main.Main.main(+116)

I have used the tcpmonitor and here are the request and response:

><?xml version="1.0" encoding="utf-8"?> 
><soap:Envelope xmlns:xsi="" 
> xmlns:xsd="" 
> xmlns:soap="" 
> xmlns:tns="http://DefaultNamespace"> 
> <tns:Somma> 
> <tns:in0>3</tns:in0> 
> <tns:in1>7</tns:in1> 
> </tns:Somma> 
><?xml version="1.0" encoding="UTF-8"?> 
><soapenv:Envelope xmlns:soapenv="" 
>  <soapenv:Body> 
>   <SommaResponse xmlns="http://DefaultNamespace"> 
>    <SommaReturn xmlns="">10</SommaReturn> 
>   </SommaResponse> 
>  </soapenv:Body> 

I'm not very practical with SOAP but it seems as the response (Somma return) missing something...
I have seen a service deployed by sun (the example in WTK) and its response is untyped. I
think the problem is ' xmlns="" ' but I don't know how I can resolve it
Thanks for your help

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message