I have this response from a UPnP device.

=====
HTTP/1.1 200 OK
CONTENT-LENGTH:448
CONTENT-TYPE: text/xml; charset="UTF-8"
SERVER: "OS/version" UPnP/1.0 "product/version"

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope
        xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/";
        soap-env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
       >
 <soap-env:Body>
    <m:ConfigurationStartedResponse
        xmlns:m="urn:SOME-ROUTER:service:DeviceConfig:1">
    </m:ConfigurationStartedResponse>
    <ResponseCode>000</ResponseCode>
</soap-env:Body>
</soap-env:Envelope>
=====

Is there a way to access the ResponseCode?
It would not be a problem if only this field was part of the 
ConfigurationStartedResponse but I don't have control over the server.

In the TEST.log I see this:
=====
End element found (level=2) 
'm:ConfigurationStartedResponse'='m:ConfigurationStartedResponse'
lookup type id='' NOT FOUND! Need to get it from xsi:type
Receiving SOAP Fault
Error: soap_get_soapfault() failed. Is this a SOAP message at all?
=====

In the generated code I found this:
=====
SOAP_FMAC3 struct m__ConfigurationStartedResponse * SOAP_FMAC4 
soap_get_m__ConfigurationStartedResponse(struct soap *soap, struct 
m__ConfigurationStartedResponse *p, const char *tag, const char *type)
{
        if ((p = soap_in_m__ConfigurationStartedResponse(soap, tag, p, type)))
                soap_getindependent(soap);
        return p;
}
=====

I don't know what soap_getindependent is trying to do in this context.

Any ideas?

ref: http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc7.1.9
ref: http://www.w3.org/TR/soap12-part1/#soapbody


Eddy Pronk


Reply via email to