Re: How to send complicated Objects using SOAP over http
Jonathan Roberts <[email protected]> Sun, 29 May 2005 21:49:15 +0100 (BST)
| Newsgroups | gmane.text.xml.soap.user |
|---|---|
| Message-ID | <[email protected]> |
Hi. As long as you are going java to java then this is fairly simple. However: 1. you need to declare/describe the objects you are passing in xml, this needs to be demployed using the admin console. 2. you need to make sure they are serialisible 3. you need to ensure any components are serialisable - eg use a vector not an array. > Another question is, Is it really possible to send any given object? Yes as long as you define it in the XML. Jonathan ------------------------------ XML <isd:service xmlns:isd= "http://xml.apache.org/xml-soap/deployment" id="urn:xml-IVR-App"> <isd:provider type="java" scope="Application" methods="fetchAllUsingAccountNoLogs fetchAllUsingAccountNo"> <isd:java class="com.X.Y"/> </isd:provider> <isd:mappings> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="urn:xml-App" qname="x:com.X.Y.VO" javaType="com.X.Y.VO" java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer" /> </isd:mappings> <isd:faultListener> org.apache.soap.server.DOMFaultListener </isd:faultListener> </isd:service> -------------------------------------------------------------------------- DEPLOY set JAVA_HOME=C:\jdk1.3.1 set CLASSPATH=C:\soap-2_2\lib\soap.jar set CLASSPATH=%CLASSPATH%;C:\soap-2_2\javamail-1.3\mail.jar set CLASSPATH=%CLASSPATH%;C:\soap-2_2\jaf-1.0.2\activation.jar set CLASSPATH=%CLASSPATH%;C:\soap-2_2\xerces-1_2_3\xerces.jar set CLASSPATH=%CLASSPATH%;C:\jakarta-tomcat-3.2.3\lib\servlet.jar java org.apache.soap.server.ServiceManagerClient http://SERVERNAME:PORT/soap/servlet/rpcrouter deploy .\ServerDeploy.xml Good luck!! any problems - email me. Jon > Hello, > We want to send some complicated datastructured object using SOAP. > I think we have to worry about the bean serialiser, is there some good > book, > tutorial/s which tells how to do it? > Another question is, Is it really possible to send any given object? > > I have to work in Java platform. > > Please help. > > Thanks in advance. > > Would this not > With Regs > Rahul Saley > > > --------------------------------- How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos