axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Titus Jakob" <titus.ja...@fh-aargau.ch>
Subject RE: Serializing/Deserializing complex objects
Date Wed, 04 Aug 2004 12:07:05 GMT
Hi Samisa
Problem is solved. ( had a good colleague ). The problem was a clean
deplyment of the java web-service. C++-Client side was ok
I thank you very much for your help. It allowed me to show precisely the
error to my colleague.
Titus

-----Original Message-----
From: axis-c-user-return-769-titus.jakob=fh-aargau.ch@ws.apache.org
[mailto:axis-c-user-return-769-titus.jakob=fh-aargau.ch@ws.apache.org]
On Behalf Of Samisa Abeysinghe
Sent: Mittwoch, 4. August 2004 04:03
To: Apache AXIS C User List
Subject: RE: Serializing/Deserializing complex objects


Hi Titus,
> Do I have to set a classpath specially for tomcat?
	I do not think so. However it picks the classpath that you have
alredy set. May be some jars are missing in the class path.

BTW: As this is not related to Axis C++ others may complain discussing
Java stuff on Axis C++ mail list ;-)

Thanks,
Samisa...

-----Original Message-----
From: Titus Jakob [mailto:titus.jakob@fh-aargau.ch] 
Sent: Tuesday, August 03, 2004 6:13 PM
To: 'Apache AXIS C User List'
Subject: RE: Serializing/Deserializing complex objects

Hi Samisa
I have Point3.class in:
C:\tomcat\jakarta-tomcat-4.1.30\webapps\axis\WEB-INF\classes
Do I have to set a classpath specially for tomcat?
Titus

-----Original Message-----
From: axis-c-user-return-764-titus.jakob=fh-aargau.ch@ws.apache.org
[mailto:axis-c-user-return-764-titus.jakob=fh-aargau.ch@ws.apache.org]
On Behalf Of Samisa Abeysinghe
Sent: Dienstag, 3. August 2004 13:49
To: Apache AXIS C User List
Subject: RE: Serializing/Deserializing complex objects


Hi Titus,
    To me the sent message looks fine.
    But the server cannot deserialize the struct. May be the server
cannot locate the class file for Point3. Looks like this is s server
side problems rather than a client side problem. Please check your class
path. Also you may try this with a simple Axis Java client.

Thanks,
Samisa...

--- Titus Jakob <titus.jakob@fh-aargau.ch> wrote:

> Hi Samisa
> here what I see in tcpmon
> 1) SendMessage
> 2) Answer
> Titus
> 
> 
> 1)SendMessage
> POST /axis/Currency3.jws HTTP/1.1 Host: 127.0.0.1 Content-Type:
> text/xml; charset=UTF-8 SOAPAction: "" Content-Length: 492  <?xml 
> version='1.0' encoding='utf-8' ?><SOAP-ENV:Envelope 
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><
> ns
> 1:registerPoint
> xmlns:ns1="http://localhost:8080/axis/Currency3.jws"><Point3
> xsi:type="ns2:Point3" xmlns:ns2="http://DefaultNamespace"><x
> xsi:type="xsd:int">100</x><y
>
xsi:type="xsd:int">200</y></Point3></ns1:registerPoint></SOAP-ENV:Body><
> /SOAP-ENV:Envelope>
> 
> 2) Answer from Service
> HTTP/1.1 500 Internal Server Error Set-Cookie:
> JSESSIONID=2B6C1FC43F111E6DF33B7663A832D5D5; Path=/axis Content-Type: 
> text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Tue, 03 Aug 
> 2004 11:15:29 GMT Server: Apache-Coyote/1.1 Connection: close  21e 
> <?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>
>   <soapenv:Fault>
>    <faultcode>soapenv:Server.userException</faultcode>
>    <faultstring>org.xml.sax.SAXException: Deserializing parameter
> &apos;Point3&apos;:  could not find deserializer for type
> {http://DefaultNamespace}Point3</faultstring>
>    <detail/>
>   </soapenv:Fault>
>  </soapenv:Body>
> </soapenv:Envelope> 0  
> 
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: axis-c-user-return-760-titus.jakob=fh-aargau.ch@ws.apache.org
> [mailto:axis-c-user-return-760-titus.jakob=fh-aargau.ch@ws.apache.org]
> On Behalf Of Samisa Abeysinghe
> Sent: Dienstag, 3. August 2004 13:01
> To: Apache AXIS C User List
> Subject: RE: Serializing/Deserializing complex objects
> 
> 
> Hi Titus,
>     I am behind a proxy, so I am not sure if I would be able to use
> your service.
> 
>     I am more of a C++ guy and have little idea on Beans.
>     However, if you could send the SOAP messages (got using tcpmon)
> then it would help locate the problems. Thanks,
> Samisa...    
> 
> --- Titus Jakob <titus.jakob@fh-aargau.ch> wrote:
> 
> > Hi Samisa
> > 
> > I can also sucseefully compile the client side but then I run in an 
> > access violation.
> > 
> > 1) shall I start my service and send you the URL?
> > 
> > 2) I used tcpmon and had the impression that the service is called, 
> > but there where errors in the answer. Maybe I have a problem
deploying
> 
> > the service, specially the class "Point3" with the BeanSerializer.
> > Do
> > you have experience with that?
> > 
> > Thanks anyway
> > Titus
> > 
> > -----Original Message-----
> > From: axis-c-user-return-757-titus.jakob=fh-aargau.ch@ws.apache.org
> > [mailto:axis-c-user-return-757-titus.jakob=fh-aargau.ch@ws.apache.or
> > g]
> > On Behalf Of Samisa Abeysinghe
> > Sent: Dienstag, 3. August 2004 12:18
> > To: Apache AXIS C User List
> > Subject: RE: Serializing/Deserializing complex objects
> > 
> > 
> > Hi Titus,
> >     I generated the code from your WSDL file and compiled the source

> > generated, and got no problems.
> > 
> >     Have you tried using tcpmon (that comes with Axis Java) to
> > monitor
> 
> > the messages sent and received by the client?
> >     As I do not have a server to test againt, I cannot test this 
> > further. However, please, if possible send the SOAP messages sent
and 
> > received by the client wehn calling 'registerPoint'
> > 
> > Thanks,
> > Samisa...
> > 
> > --- Titus Jakob <titus.jakob@fh-aargau.ch> wrote:
> > 
> > > Hi Samisa
> > > thanks for your help, here you get:
> > >  1) the relevant java-code snippet and
> > >  2) the WSDL
> > > thanks
> > > Titus
> > > 
> > > 1) Java-Server: as soon as I have Point3 in the argument-list of
> > > registerPoint() I run into troubles.
> > > 
> > > public class Currency3 {
> > > 
> > > public void registerPoint( Point3 p )		
> > > {
> > > 	System.out.println("start,");
> > > }
> > > }
> > > 
> > > 
> > > 2)WSDL:
> > > 
> > >   <?xml version="1.0" encoding="UTF-8" ?>
> > > - <wsdl:definitions 
> > > targetNamespace="http://localhost:8080/axis/Currency3.jws"
> > > xmlns="http://schemas.xmlsoap.org/wsdl/"
> > > xmlns:apachesoap="http://xml.apache.org/xml-soap"
> > > xmlns:impl="http://localhost:8080/axis/Currency3.jws"
> > > xmlns:intf="http://localhost:8080/axis/Currency3.jws"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> > > xmlns:tns1="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:types>
> > > - <schema targetNamespace="http://DefaultNamespace"
> > > xmlns="http://www.w3.org/2001/XMLSchema">
> > >   <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
> > > - <complexType name="Point3">
> > > - <sequence>
> > >   <element name="x" type="xsd:int" /> 
> > >   <element name="y" type="xsd:int" /> 
> > >   </sequence>
> > >   </complexType>
> > >   </schema>
> > >   </wsdl:types>
> > > - <wsdl:message name="getDoubleResponse">
> > >   <wsdl:part name="getDoubleReturn" type="xsd:double" /> 
> > >   </wsdl:message>
> > > - <wsdl:message name="multiplyRequest">
> > >   <wsdl:part name="i" type="xsd:int" /> 
> > >   </wsdl:message>
> > > - <wsdl:message name="registerPointRequest">
> > >   <wsdl:part name="p" type="tns1:Point3" /> 
> > >   </wsdl:message>
> > > - <wsdl:message name="multiplyResponse">
> > >   <wsdl:part name="multiplyReturn" type="xsd:int" /> 
> > >   </wsdl:message>
> > >   <wsdl:message name="funRequest" /> 
> > >   <wsdl:message name="getCharRequest" /> 
> > >   <wsdl:message name="funResponse" /> 
> > >   <wsdl:message name="getDoubleRequest" />
> > > - <wsdl:message name="getCharResponse">
> > >   <wsdl:part name="getCharReturn" type="xsd:string" /> 
> > >   </wsdl:message>
> > >   <wsdl:message name="registerPointResponse" /> 
> > > - <wsdl:portType name="Currency3">
> > > - <wsdl:operation name="multiply" parameterOrder="i">
> > >   <wsdl:input message="impl:multiplyRequest"
name="multiplyRequest"
> />
> > 
> > >   <wsdl:output message="impl:multiplyResponse" 
> > > name="multiplyResponse" />
> > >   </wsdl:operation>
> > > - <wsdl:operation name="getChar">
> > >   <wsdl:input message="impl:getCharRequest" name="getCharRequest"
/>
> 
> > >   <wsdl:output message="impl:getCharResponse"
> > > name="getCharResponse"
> > />
> > >   </wsdl:operation>
> > > - <wsdl:operation name="getDouble">
> > >   <wsdl:input message="impl:getDoubleRequest" 
> > > name="getDoubleRequest"
> > />
> > > 
> > >   <wsdl:output message="impl:getDoubleResponse"
> > > name="getDoubleResponse" />
> > >   </wsdl:operation>
> > > - <wsdl:operation name="fun">
> > >   <wsdl:input message="impl:funRequest" name="funRequest" /> 
> > >   <wsdl:output message="impl:funResponse" name="funResponse" /> 
> > >   </wsdl:operation>
> 
=== message truncated ===



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 



------------------------------------------------------------------------
--------------------------
This message, including any attachments, contains confidential
information intended for a specific individual and purpose, and is
intended for the addressee only.  Any unauthorized disclosure, use,
dissemination, copying, or distribution of this message or any of its
attachments or the information contained in this e-mail, or the taking
of any action based on it, is strictly prohibited.  If you are not the
intended recipient, please notify the sender immediately by return
e-mail and delete this message. 


Mime
View raw message