V
VGE
We are consuming a web service and we receive the following response soap:
ResponseCode: 200 (OK)
X-SOAP-Server:NuSOAP/0.7.2 (1.6)
Keep-Alive:timeout=15, max=100
Connection:Keep-Alive
Content-Length:1540
Content-Type:text/xml; charset=ISO-8859-1
Date:Thu, 10 Apr 2008 01:29:51 GMT
Server:Apache
X-Powered-ByHP/5.2.5
<?xml version="1.0" encoding="utf-16"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<getQuoteResponse xmlns="urnngwsdl">
<quoteResponse>
<pngRequestId>VGE0409200813976API674700055047</pngRequestId>
<site>
<street>2520 Whitehall Park Dr</street>
<city>Charlotte</city>
<state>NC</state>
<zip>28273</zip>
<npa>704</npa>
<nxx>555</nxx>
</site>
<quotes>
<item>
<quoteId>VGETB00409200813977API021200129473</quoteId>
<carrier>Broadwing</carrier>
<term>12</term>
<expirationDate>2008-05-09</expirationDate>
<loopMRC>308</loopMRC>
<loopNRC>0</loopNRC>
<portMRC>358</portMRC>
<portNRC>0</portNRC>
</item>
<item>
<quoteId>VGETB00409200813983API023600182299</quoteId>
<carrier>Broadwing</carrier>
<term>36</term>
<expirationDate>2008-05-09</expirationDate>
<loopMRC>272</loopMRC>
<loopNRC>0</loopNRC>
<portMRC>287</portMRC>
<portNRC>0</portNRC>
</item>
<item>
<quoteId>VGETB00409200813982API022400121435</quoteId>
<carrier>Broadwing</carrier>
<term>24</term>
<expirationDate>2008-05-09</expirationDate>
<loopMRC>281</loopMRC>
<loopNRC>0</loopNRC>
<portMRC>310</portMRC>
<portNRC>0</portNRC>
</item>
</quotes>
<message>Verizon, Paetec, XO, Qwest failed to return valid
pricing or support the service type and bandwidth of this request.</message>
</quoteResponse>
</getQuoteResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
However the object as created by the Framework contains all nulls and
has the following hierarchy:
getQuote
Headers
Body
quoteResponse
pngResultId = null
site = null
siteZ = null
quotes = null
message = null
If I manually deserialize the soap response it creates the object with
the above structure except with the appropriate data. How do I fix this
so that the object generated by the framework will populate correctly
with the data when the response is received?
I hope that explains the question.
Thanks,
Neville Kelly
VGE
ResponseCode: 200 (OK)
X-SOAP-Server:NuSOAP/0.7.2 (1.6)
Keep-Alive:timeout=15, max=100
Connection:Keep-Alive
Content-Length:1540
Content-Type:text/xml; charset=ISO-8859-1
Date:Thu, 10 Apr 2008 01:29:51 GMT
Server:Apache
X-Powered-ByHP/5.2.5
<?xml version="1.0" encoding="utf-16"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<getQuoteResponse xmlns="urnngwsdl">
<quoteResponse>
<pngRequestId>VGE0409200813976API674700055047</pngRequestId>
<site>
<street>2520 Whitehall Park Dr</street>
<city>Charlotte</city>
<state>NC</state>
<zip>28273</zip>
<npa>704</npa>
<nxx>555</nxx>
</site>
<quotes>
<item>
<quoteId>VGETB00409200813977API021200129473</quoteId>
<carrier>Broadwing</carrier>
<term>12</term>
<expirationDate>2008-05-09</expirationDate>
<loopMRC>308</loopMRC>
<loopNRC>0</loopNRC>
<portMRC>358</portMRC>
<portNRC>0</portNRC>
</item>
<item>
<quoteId>VGETB00409200813983API023600182299</quoteId>
<carrier>Broadwing</carrier>
<term>36</term>
<expirationDate>2008-05-09</expirationDate>
<loopMRC>272</loopMRC>
<loopNRC>0</loopNRC>
<portMRC>287</portMRC>
<portNRC>0</portNRC>
</item>
<item>
<quoteId>VGETB00409200813982API022400121435</quoteId>
<carrier>Broadwing</carrier>
<term>24</term>
<expirationDate>2008-05-09</expirationDate>
<loopMRC>281</loopMRC>
<loopNRC>0</loopNRC>
<portMRC>310</portMRC>
<portNRC>0</portNRC>
</item>
</quotes>
<message>Verizon, Paetec, XO, Qwest failed to return valid
pricing or support the service type and bandwidth of this request.</message>
</quoteResponse>
</getQuoteResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
However the object as created by the Framework contains all nulls and
has the following hierarchy:
getQuote
Headers
Body
quoteResponse
pngResultId = null
site = null
siteZ = null
quotes = null
message = null
If I manually deserialize the soap response it creates the object with
the above structure except with the appropriate data. How do I fix this
so that the object generated by the framework will populate correctly
with the data when the response is received?
I hope that explains the question.
Thanks,
Neville Kelly
VGE