dcsimg
Problem with returning an object from SOAP Server
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   preeti_b
Posted On:   Friday, May 10, 2002 12:37 PM

Whenever I try to return an object (Vector or Bean etc.) from the SOAP Server. I get the exception listed below. If the SOAP server return the primitive type instead, everything seems to work fine. What could be the problem? Thanks in advance for the help. preeti [SOAPException: faultCode=SOAP-ENV:Client; msg=A 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode' elem ent.; targetException=java.lang.IllegalArgumentException: A 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode' element.] at org.apache.soap.rpc.Call.invoke(Unknown Source) at sa   More>>

Whenever I try to return an object (Vector or Bean etc.)
from the SOAP Server. I get the exception listed below.

If the SOAP server return the primitive type instead, everything seems to
work fine.


What could be the problem?

Thanks in advance for the help.
preeti





[SOAPException: faultCode=SOAP-ENV:Client;
msg=A 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
elem
ent.; targetException=java.lang.IllegalArgumentException:
A 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode' element.]

at org.apache.soap.rpc.Call.invoke(Unknown Source)

at samples.soap.cart.client.CartSession.addToSession(CartSession.java:100)

at samples.soap.cart.client.CartClient.main(CartClient.java:99)

   <<Less

Re: Problem with returning an object from SOAP Server

Posted By:   Ranapratap_Vedre  
Posted On:   Monday, May 27, 2002 09:12 PM

checkout http://jmvidal.cse.sc.edu/csce590/index.html
for a better view of a code snippet to send Beans


It has code to call google service which sends complex objects


you need to use SOAPMappingRegistry and BeanSerializer
and then register the type with the created registry.
All this is on client side.


on the server side u need to specify the serialiser in the
deployment descriptor.


please post if u figure out could send vector of objects.
i know we can send vector of primitive types and i guess VectorSerializer or a customserializer has to used for vector of Objects.



Hope this helps..



e-mail: rvedre@hotmail.com
About | Sitemap | Contact