I do not understand why it is not accepted (because I am a newbie) 1) Does the ns:GetAdapInfoResponse need to have the same namespace prefix as the request (ns1)? 2) Does the ns:GetAdapInfoResponse need to have a type like xsi:type="ns:GetAdapInfoResponse" 3) Does the ns:GetAdapInfoResponse need to have a namespace specifier like xmlns:ns1="urn:remote-adap" 4) Does the response structure need to match the Java class name (it doesn't do that in the examples)
I have done #1 & #2 and am trying to figure out how to do #3 in gSOAP. Here is the current response that also fails: <ns1:GetAdapInfoResponse xsi:type="ns1:GetAdapInfoResponse"> <QueryError xsi:type="xsd:int">0</QueryError> <AdapterID xsi:type="xsd:int">1</AdapterID> <MemBase xsi:type="xsd:int">-100663296</MemBase> <IoBase xsi:type="xsd:int">-68173824</IoBase> </ns1:GetAdapInfoResponse> Remember, my mapTypes maps my AdapterInfo class to ("urn:remote-adap", "GetAdapInfoResponse") Doug "Scott Nichol" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Just as the element > > <ns1:GetAdapterInfo xmlns:ns1="urn:remote-adap" > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> > > is used to wrap the parameters for the method call, > > <ns:GetAdapInfoResponse> > > is used to wrap the return value and output parameters. In other > words, this element is not part of the return value, so you cannot > use this element as part of deserializing the return. If QueryError, > AdapterID, MemBase and IoBase are supposed to be members of a > structure, then they should be wrapped in an additional XML element, > such as > > <ns:GetAdapInfoResponse> > <AdapterInfo xsi:type="ns:AdapterInfo"> > <QueryError xsi:type="xsd:int">0</QueryError> > <AdapterID xsi:type="xsd:int">1</AdapterID> > <MemBase xsi:type="xsd:int">-100663296</MemBase> > <IoBase xsi:type="xsd:int">-68173824</IoBase> > </AdapterInfo> > </ns:GetAdapInfoResponse> > >