axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Commented: (AXIS-1490) interoperability Sun's JSR 172 and Axis
Date Wed, 04 Aug 2004 22:04:20 GMT
The following comment has been added to this issue:

     Author: Ias
    Created: Wed, 4 Aug 2004 3:03 PM
       Body:
Here's the link to Axis tool reference containing options for Java2WSDL.
http://ws.apache.org/axis/java/reference.html


---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1490?page=comments#action_37041

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1490

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

     Status: Open
   Priority: Major

    Project: Axis

   Assignee: Ias
   Reporter: luigi coppolino

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

Description:
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
stubs.

Here is the deployed wsdl:

*************
<?xml version="1.0" encoding="UTF-8" ?> 
- <wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!-- 
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="http://www.w3.org/2001/XMLSchema">
- <element name="somma">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:int" /> 
  <element name="in1" type="xsd:int" /> 
  </sequence>
  </complexType>
  </element>
- <element name="sommaResponse">
- <complexType>
- <sequence>
  <element name="sommaReturn" type="xsd:int" /> 
  </sequence>
  </complexType>
  </element>
  </schema>
  </wsdl:types>
- <wsdl:message name="sommaRequest">
  <wsdl:part element="impl:somma" name="parameters" /> 
  </wsdl:message>
- <wsdl:message name="sommaResponse">
  <wsdl:part element="impl:sommaResponse" name="parameters" /> 
  </wsdl:message>
- <wsdl:portType name="Calculator">
- <wsdl:operation name="somma" parameterOrder="">
  <wsdl:input message="impl:sommaRequest" name="sommaRequest" /> 
  <wsdl:output message="impl:sommaResponse" name="sommaResponse" /> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="calculatorSoapBinding" type="impl:Calculator">
  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />

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





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:

>*************** 
>REQUEST: 
> 
><?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://DefaultNamespace"> 
><soap:Body> 
> <tns:Somma> 
> <tns:in0>3</tns:in0> 
> <tns:in1>7</tns:in1> 
> </tns:Somma> 
></soap:Body> 
></soap:Envelope> 
> 
>RESPONSE: 
> 
><?xml version="1.0" encoding="UTF-8"?> 
><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> 
>   <SommaResponse xmlns="http://DefaultNamespace"> 
>    <SommaReturn xmlns="">10</SommaReturn> 
>   </SommaResponse> 
>  </soapenv:Body> 
></soapenv:Envelope> 
> 
>**************** 


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


---------------------------------------------------------------------
JIRA INFORMATION:
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


Mime
View raw message