smartboy87
15 years agoNew Contributor
problem is with missing namespace qualifier in the response.
Problem in processing SOAP response we are receiving from web service.
The problem is with missing namespace qualifier in the response. URN (aw) is missing against the row element in response.
Request -
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inp="http://businessobjects.com/service/RTJob_DMO_PCC_WS_STD/input">
<soapenv:Header/>
<soapenv:Body>
<inp:Import>
<!--Zero or more repetitions:-->
<inp:Row>
<inp:STREET1>510 grand ave</inp:STREET1>
<inp:STREET2>?</inp:STREET2>
<inp:STREET3>?</inp:STREET3>
<inp:STREET4>?</inp:STREET4>
<inp:STREET5>?</inp:STREET5>
<inp:CITY>Kansas city</inp:CITY>
<inp:STATE>mo</inp:STATE>
<inp:ZIP>?</inp:ZIP>
<inp:ZIP_EXT>?</inp:ZIP_EXT>
</inp:Row>
</inp:Import>
</soapenv:Body>
</soapenv:Envelope>
Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<aw:Import xsi:noNamespaceSchemaLocation="C:\Users\Administrator\Documents\Pepsico\PCC_WS_std_out.xsd" xmlns:aw="http://businessobjects.com/service/RTJob_DMO_PCC_WS_STD/output">
<Row>
<STREET1>510 grand ave</STREET1>
<STREET2>?</STREET2>
<STREET3>?</STREET3>
<STREET4>?</STREET4>
<STREET5>?</STREET5>
<CITY>Kansas city</CITY>
<STATE>mo</STATE>
<ZIP>?</ZIP>
<ZIP_EXT>?</ZIP_EXT>
<STREET1_STD>510 GRAND BLVD</STREET1_STD>
<STREET2_STD>?</STREET2_STD>
<STREET3_STD>?</STREET3_STD>
<STREET4_STD>?</STREET4_STD>
<STREET5_STD>?</STREET5_STD>
<CITY_STD>KANSAS CITY</CITY_STD>
<STATE_STD>MO</STATE_STD>
<ZIP_STD>64106</ZIP_STD>
<ZIP_EXT_STD>1201</ZIP_EXT_STD>
<ERROR_CODE/>
<ERROR_MESSAGE/>
</Row>
</aw:Import>
</soapenv:Body>
</soapenv:Envelope>
Expected Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<aw:Import xsi:noNamespaceSchemaLocation="C:\Users\Administrator\Documents\Pepsico\PCC_WS_std_out.xsd" xmlns:aw="http://businessobjects.com/service/RTJob_DMO_PCC_WS_STD/output">
<aw:Row>
<STREET1>510 grand ave</STREET1>
<STREET2>?</STREET2>
<STREET3>?</STREET3>
<STREET4>?</STREET4>
<STREET5>?</STREET5>
<CITY>Kansas city</CITY>
<STATE>mo</STATE>
<ZIP>?</ZIP>
<ZIP_EXT>?</ZIP_EXT>
<STREET1_STD>510 GRAND BLVD</STREET1_STD>
<STREET2_STD>?</STREET2_STD>
<STREET3_STD>?</STREET3_STD>
<STREET4_STD>?</STREET4_STD>
<STREET5_STD>?</STREET5_STD>
<CITY_STD>KANSAS CITY</CITY_STD>
<STATE_STD>MO</STATE_STD>
<ZIP_STD>64106</ZIP_STD>
<ZIP_EXT_STD>1201</ZIP_EXT_STD>
<ERROR_CODE/>
<ERROR_MESSAGE/>
</aw:Row>
</aw:Import>
</soapenv:Body>
</soapenv:Envelope>
any help will be appreciated. thanks
The problem is with missing namespace qualifier in the response. URN (aw) is missing against the row element in response.
Request -
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inp="http://businessobjects.com/service/RTJob_DMO_PCC_WS_STD/input">
<soapenv:Header/>
<soapenv:Body>
<inp:Import>
<!--Zero or more repetitions:-->
<inp:Row>
<inp:STREET1>510 grand ave</inp:STREET1>
<inp:STREET2>?</inp:STREET2>
<inp:STREET3>?</inp:STREET3>
<inp:STREET4>?</inp:STREET4>
<inp:STREET5>?</inp:STREET5>
<inp:CITY>Kansas city</inp:CITY>
<inp:STATE>mo</inp:STATE>
<inp:ZIP>?</inp:ZIP>
<inp:ZIP_EXT>?</inp:ZIP_EXT>
</inp:Row>
</inp:Import>
</soapenv:Body>
</soapenv:Envelope>
Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<aw:Import xsi:noNamespaceSchemaLocation="C:\Users\Administrator\Documents\Pepsico\PCC_WS_std_out.xsd" xmlns:aw="http://businessobjects.com/service/RTJob_DMO_PCC_WS_STD/output">
<Row>
<STREET1>510 grand ave</STREET1>
<STREET2>?</STREET2>
<STREET3>?</STREET3>
<STREET4>?</STREET4>
<STREET5>?</STREET5>
<CITY>Kansas city</CITY>
<STATE>mo</STATE>
<ZIP>?</ZIP>
<ZIP_EXT>?</ZIP_EXT>
<STREET1_STD>510 GRAND BLVD</STREET1_STD>
<STREET2_STD>?</STREET2_STD>
<STREET3_STD>?</STREET3_STD>
<STREET4_STD>?</STREET4_STD>
<STREET5_STD>?</STREET5_STD>
<CITY_STD>KANSAS CITY</CITY_STD>
<STATE_STD>MO</STATE_STD>
<ZIP_STD>64106</ZIP_STD>
<ZIP_EXT_STD>1201</ZIP_EXT_STD>
<ERROR_CODE/>
<ERROR_MESSAGE/>
</Row>
</aw:Import>
</soapenv:Body>
</soapenv:Envelope>
Expected Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<aw:Import xsi:noNamespaceSchemaLocation="C:\Users\Administrator\Documents\Pepsico\PCC_WS_std_out.xsd" xmlns:aw="http://businessobjects.com/service/RTJob_DMO_PCC_WS_STD/output">
<aw:Row>
<STREET1>510 grand ave</STREET1>
<STREET2>?</STREET2>
<STREET3>?</STREET3>
<STREET4>?</STREET4>
<STREET5>?</STREET5>
<CITY>Kansas city</CITY>
<STATE>mo</STATE>
<ZIP>?</ZIP>
<ZIP_EXT>?</ZIP_EXT>
<STREET1_STD>510 GRAND BLVD</STREET1_STD>
<STREET2_STD>?</STREET2_STD>
<STREET3_STD>?</STREET3_STD>
<STREET4_STD>?</STREET4_STD>
<STREET5_STD>?</STREET5_STD>
<CITY_STD>KANSAS CITY</CITY_STD>
<STATE_STD>MO</STATE_STD>
<ZIP_STD>64106</ZIP_STD>
<ZIP_EXT_STD>1201</ZIP_EXT_STD>
<ERROR_CODE/>
<ERROR_MESSAGE/>
</aw:Row>
</aw:Import>
</soapenv:Body>
</soapenv:Envelope>
any help will be appreciated. thanks