axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa_abeysin...@yahoo.com>
Subject Re: Serializing/Deserializing complex objects: Java > C++
Date Thu, 05 Aug 2004 13:32:58 GMT

> I can now successfully send an object from the C++-client to the
> java-WS-Server. But when I try to send an object in the reverse

Great! What was the solution to the problem?

> direction (from java-ws to the C++-client) the members (of type integer)
> of the object are '0'. Do you have an idea what that could be. The java
> code is added below.
I am using C++ server side very little. However, what are the tcpmon SOAP messages to and
from
server?

Samisa...


> Thanks
> Titus
> 
> 
> public Point5 receivePoint()	
> {
>       System.out.println("1 receivePoint()");
> 	Point5 p11 = new Point5();
> 	p11.setX( 7);
> 	p11.setY( 8);
> 	System.out.println(" y_p11: " + p11.getY());
> 	
> 	return p11;
> } 
> 
> -----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.
> > > > 
> 
=== message truncated ===



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

Mime
View raw message