You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Alex Cruise <ac...@infowave.com> on 2001/01/10 00:03:18 UTC
Talking to MS SOAP Server with Apache SOAP (Java) client
Hey folks,
I've actually got things very close to working. The call works, and now I
need to figure out how to deserialize the response.
It looks something like this:
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP:Body>
<MethodResponse>
<return>
<ITEM id="foo1" attr1="bar1" attr2="" attr3="baz1" attr4=""/>
<ITEM id="foo2" attr1="bar2" attr2="" attr3="baz2" attr4=""/>
</return>
<param1>p1val</param1>
<param2>p2val</param2>
</MethodResponse>
</SOAP:Body>
</SOAP:Envelope>
Ideally, I'd like to be able to unmarshall the whole damned thing at once
into one problem domain object; how would I go about doing it?
Thanks,
Alex.
RE: Talking to MS SOAP Server with Apache SOAP (Java) client
Posted by Johann Dumser <jd...@techmetrix.net>.
# Apache SOAP Client -> MS SOAPTollkit2.0 Beta1 Server (sample of the
toolkit : Echostring)
I need to include an attribute to my client envelope as the error message
says
[SOAPException: faultCode=SOAP-ENV:Client; msg=The
'http://www.w3.org/1999/XMLSc
hema-instance:type' attribute must be specified for every parameter.;
targetExce
ption=java.lang.IllegalArgumentException: The
'http://www.w3.org/1999/XMLSchema-
instance:type' attribute must be specified for every parameter.]
at org.apache.soap.rpc.Call.invoke(Call.java:187)
at MathMSlocal.MathMS(MathMSlocal.java:22)
at MathMSlocal.main(MathMSlocal.java:38)
If you know how to include it in the XML payload, it interest me a lot,
Thanks
Johann
----------------------------------------------
Johann DUMSER
R&D Consultant
Techmetrix Research US
-----Original Message-----
From: Alex Cruise [mailto:acruise@infowave.com]
Sent: Tuesday, January 09, 2001 6:03 PM
To: 'soap-dev@xml.apache.org'
Subject: Talking to MS SOAP Server with Apache SOAP (Java) client
Hey folks,
I've actually got things very close to working. The call works, and now I
need to figure out how to deserialize the response.
It looks something like this:
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP:Body>
<MethodResponse>
<return>
<ITEM id="foo1" attr1="bar1" attr2="" attr3="baz1" attr4=""/>
<ITEM id="foo2" attr1="bar2" attr2="" attr3="baz2" attr4=""/>
</return>
<param1>p1val</param1>
<param2>p2val</param2>
</MethodResponse>
</SOAP:Body>
</SOAP:Envelope>
Ideally, I'd like to be able to unmarshall the whole damned thing at once
into one problem domain object; how would I go about doing it?
Thanks,
Alex.