axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ias ." <iasan...@hotmail.com>
Subject Re: PLEASE HELP ME!!! JSR 172 and axis
Date Tue, 03 Aug 2004 21:12:11 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>Please refer to&nbsp;<A href="http://nagoya.apache.org/jira/browse/AXIS-1320">http://nagoya.apache.org/jira/browse/AXIS-1320</A>&nbsp;,
which I think might help you.</P>
<P>If you still have the problem, please report it to Jira just like the above link.</P>
<P>Regards,</P>
<P>Ias<BR></P></DIV>
<DIV></DIV>&gt;From: lcoppoli@unina.it 
<DIV></DIV>&gt;Reply-To: axis-dev@ws.apache.org 
<DIV></DIV>&gt;To: axis-dev@ws.apache.org, jkumaran@opensource.lk 
<DIV></DIV>&gt;Subject: Re: PLEASE HELP ME!!! JSR 172 and axis 
<DIV></DIV>&gt;Date: Tue,&nbsp;&nbsp;3 Aug 2004 18:59:00 +0200 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hi, 
<DIV></DIV>&gt;I have used tcpmonitor and have found the following SOAP request
and response 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;*************** 
<DIV></DIV>&gt;REQUEST: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt; 
<DIV></DIV>&gt;&lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

<DIV></DIV>&gt; xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
<DIV></DIV>&gt; xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
<DIV></DIV>&gt; xmlns:tns="http://DefaultNamespace"&gt; 
<DIV></DIV>&gt;&lt;soap:Body&gt; 
<DIV></DIV>&gt; &lt;tns:Somma&gt; 
<DIV></DIV>&gt; &lt;tns:in0&gt;3&lt;/tns:in0&gt; 
<DIV></DIV>&gt; &lt;tns:in1&gt;7&lt;/tns:in1&gt; 
<DIV></DIV>&gt; &lt;/tns:Somma&gt; 
<DIV></DIV>&gt;&lt;/soap:Body&gt; 
<DIV></DIV>&gt;&lt;/soap:Envelope&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;RESPONSE: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
<DIV></DIV>&gt;&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

<DIV></DIV>&gt;xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
<DIV></DIV>&gt;xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;

<DIV></DIV>&gt;&nbsp;&nbsp;&lt;soapenv:Body&gt; 
<DIV></DIV>&gt;&nbsp;&nbsp; &lt;SommaResponse xmlns="http://DefaultNamespace"&gt;

<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;SommaReturn
xmlns=""&gt;10&lt;/SommaReturn&gt; 
<DIV></DIV>&gt;&nbsp;&nbsp; &lt;/SommaResponse&gt; 
<DIV></DIV>&gt;&nbsp;&nbsp;&lt;/soapenv:Body&gt; 
<DIV></DIV>&gt;&lt;/soapenv:Envelope&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;**************** 
<DIV></DIV>&gt;I'm not very practice with SOAP so I haven't any idea about
actual problem 
<DIV></DIV>&gt;cause. 
<DIV></DIV>&gt;Any of you has some idea? 
<DIV></DIV>&gt;I see in SommaReturn xmlns="" and I'm not so sure that it work...

<DIV></DIV>&gt;I read on axis User Guide about the problem of untyped response...in
WTK stub 
<DIV></DIV>&gt;client there isn't a setResponseType method so can be this
the problem... 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Is it possible that I can't access to a service published with
axis by Sun's 
<DIV></DIV>&gt;Wirless Tool Kit? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;thanks for your help... 
<DIV></DIV>&gt;Luigi Coppolino 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Scrive Chandrasegaram Jeyakumaran &lt;jkumaran@opensource.lk&gt;:

<DIV></DIV>&gt; 
<DIV></DIV>&gt; &gt; Hi, 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; I couldn't really get your problem. But have you
checked the SOAP using 
<DIV></DIV>&gt; &gt; the tcpmonitor. 
<DIV></DIV>&gt; &gt; That may give you a clear idea of the problem. 
<DIV></DIV>&gt; &gt; Because you will clearly know the elements in the
response SOAP. 
<DIV></DIV>&gt; &gt; Try the tcpmonitor and check whether the expected
result with the format 
<DIV></DIV>&gt; &gt; arrives.Then only you can find whether it is a problem
with the axis 
<DIV></DIV>&gt; &gt; webservice deployment or with the stubs. 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; regards, 
<DIV></DIV>&gt; &gt; Jeyakumaran 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; I have a new problem, I don't know if it
is axis dependent but I hope to 
<DIV></DIV>&gt; &gt; &gt; found help here. 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; I'm working with WTK 2.1 and JSR 172. I
have published a service (using 
<DIV></DIV>&gt; &gt; &gt; axis 
<DIV></DIV>&gt; &gt; &gt; 1.2beta) having the following WSDL 
<DIV></DIV>&gt; &gt; &gt; **************************************************

<DIV></DIV>&gt; &gt; &gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;

<DIV></DIV>&gt; &gt; &gt; &lt;wsdl:definitions targetNamespace="http://DefaultNamespace"

<DIV></DIV>&gt; &gt; &gt; xmlns:apachesoap="http://xml.apache.org/xml-soap"

<DIV></DIV>&gt; &gt; &gt; xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace"

<DIV></DIV>&gt; &gt; &gt; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

<DIV></DIV>&gt; &gt; &gt; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"

<DIV></DIV>&gt; &gt; &gt; xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;

<DIV></DIV>&gt; &gt; &gt; &lt;!--WSDL created by Apache Axis version:
1.2beta 
<DIV></DIV>&gt; &gt; &gt; Built on Mar 31, 2004 (12:47:03 EST)--&gt;

<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&lt;wsdl:types&gt;

<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp; &lt;schema elementFormDefault="qualified"

<DIV></DIV>&gt; &gt; &gt; targetNamespace="http://DefaultNamespace"

<DIV></DIV>&gt; &gt; &gt; xmlns="http://www.w3.org/2001/XMLSchema"&gt;

<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;element
name="sayHello"&gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;complexType/&gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/element&gt;

<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;element
name="sayHelloResponse"&gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;complexType&gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;sequence&gt;

<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;element name="sayHelloReturn" type="xsd:string"/&gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/sequence&gt;

<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/complexType&gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/element&gt;

<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp; &lt;/schema&gt;

<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&lt;/wsdl:types&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:message
name="sayHelloResponse"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdl:part element="impl:sayHelloResponse" name="parameters"/&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/wsdl:message&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:message
name="sayHelloRequest"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdl:part element="impl:sayHello" name="parameters"/&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/wsdl:message&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:portType
name="EducatoInt"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdl:operation name="sayHello"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:input
message="impl:sayHelloRequest" 
<DIV></DIV>&gt; &gt; &gt; name="sayHelloRequest"/&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:output
message="impl:sayHelloResponse" 
<DIV></DIV>&gt; &gt; &gt; name="sayHelloResponse"/&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/wsdl:operation&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/wsdl:portType&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:binding
name="educatoSoapBinding" type="impl:EducatoInt"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdlsoap:binding style="document" 
<DIV></DIV>&gt; &gt; &gt; transport="http://schemas.xmlsoap.org/soap/http"/&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdl:operation name="sayHello"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdlsoap:operation
soapAction=""/&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:input
name="sayHelloRequest"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdlsoap:body use="literal"/&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/wsdl:input&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:output
name="sayHelloResponse"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdlsoap:body use="literal"/&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/wsdl:output&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/wsdl:operation&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/wsdl:binding&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdl:service
name="EducatoIntService"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;wsdl:port binding="impl:educatoSoapBinding" name="educato"&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wsdlsoap:address

<DIV></DIV>&gt; &gt; &gt; location="http://localhost/axis/services/educato"/&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/wsdl:port&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/wsdl:service&gt;

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; &lt;/wsdl:definitions&gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; *************************************************************

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; I'have generated client Stubs by using J2ME
Wireless Toolkit. Then I'have 
<DIV></DIV>&gt; &gt; &gt; generated a simple client as follow: 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; *************************************************************

<DIV></DIV>&gt; &gt; &gt; import educato.*; 
<DIV></DIV>&gt; &gt; &gt; import javax.xml.rpc.*; 
<DIV></DIV>&gt; &gt; &gt; import java.rmi.RemoteException; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; public class Client{ 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; final static String serviceURL = "http://127.0.0.1/axis/services/educato";

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; public static void main(String args[]){

<DIV></DIV>&gt; &gt; &gt; try{ 
<DIV></DIV>&gt; &gt; &gt; EducatoInt_Stub e = new EducatoInt_Stub();

<DIV></DIV>&gt; &gt; &gt; e._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,
serviceURL); 
<DIV></DIV>&gt; &gt; &gt; e._setProperty(Stub.SESSION_MAINTAIN_PROPERTY,
new Boolean(true)); 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; String risposta = e.sayHello(); 
<DIV></DIV>&gt; &gt; &gt; System.out.println("Ha risposto: " + risposta
+"!!!"); 
<DIV></DIV>&gt; &gt; &gt; }catch(Exception e){ 
<DIV></DIV>&gt; &gt; &gt; e.printStackTrace(); 
<DIV></DIV>&gt; &gt; &gt; } 
<DIV></DIV>&gt; &gt; &gt; } 
<DIV></DIV>&gt; &gt; &gt; } 
<DIV></DIV>&gt; &gt; &gt; *************************************************

<DIV></DIV>&gt; &gt; &gt; Now the problem: executing the client by

<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; java Client 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; I obtain the following error message: 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; ****************************** 
<DIV></DIV>&gt; &gt; &gt; java.rmi.MarshalException: Invalid Element
in Response: sayHelloReturn 
<DIV></DIV>&gt; &gt; &gt; at 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt;com.sun.j2mews.xml.rpc.SOAPDecoder.decode(Ljavax/microedition/xml/rpc/Type;Ljava/io/InputStream;Ljava/lang/String;J)Ljava/lang/Object;(Unknown

<DIV></DIV>&gt; &gt; &gt; Source) 
<DIV></DIV>&gt; &gt; &gt; at 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt;com.sun.j2mews.xml.rpc.OperationImpl.invoke(Ljava/lang/Object;)Ljava/lang/Object;(Unknown

<DIV></DIV>&gt; &gt; &gt; Source) 
<DIV></DIV>&gt; &gt; &gt; at 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; educato.EducatoInt_Stub.sayHello()Ljava/lang/String;(EducatoInt_Stub.java:77)

<DIV></DIV>&gt; &gt; &gt; at Client.main([Ljava/lang/String;)V(Client.java:15)

<DIV></DIV>&gt; &gt; &gt; ***************************** 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; I need help... 
<DIV></DIV>&gt; &gt; &gt; Luigi Coppolino 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; ----------------------------------------------------------------

<DIV></DIV>&gt; &gt; &gt; This message was sent using IMP, the Internet
Messaging Program. 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Lanka Software Foundation 
<DIV></DIV>&gt; &gt; Promoting opensource in Srilanka 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;----------------------------------------------------------------

<DIV></DIV>&gt;This message was sent using IMP, the Internet Messaging Program.

<DIV></DIV></div><br clear=all><hr>증권 정보 가장 빠르고
편하게 보실 수 있습니다.   <a href="http://g.msn.com/8HMBKOKR/2737??PS=47575">MSN
증권/투자 </a> </html>

Mime
View raw message