Hi all,
I am trying to send an xml file as a parameter in a web service call. This xml file is in string form. I have created the string using the XMLOutputter class from the jdom.output package. I send this to another locally hosted service, also deployed using axis, and everything works fine. I can create a jdom Document from the string. However when i send the request to a remotely hosted JWSDP deployed service i am getting an error. The error is:
deserialization error: unexpected XML reader state. expected: END but found: START: xmlFileParameter
where xmlFileParameter is the name of the Parameter added to the call.
 
I have caught the soap message arriving at the service, it is as following:
POST /LimaR/interface HTTP/1.0
Host: 127.0.0.1
Content-Type: text/xml; charset=utf-8
Content-Length: 2037
SOAPAction: ""
 
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:acceptXMLOrder xmlns:ns1="urn:Foo" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<xmlFileParameter xsi:type="xsd:string">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;PurchaseOrder xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;po.xsd&quot;&gt;
    &lt;poNumber&gt;jfd&lt;/poNumber&gt;
    &lt;shipTo&gt;
        &lt;name&gt;Alice Smith&lt;/name&gt;
        &lt;street&gt;123 Maple Street&lt;/street&gt;
        &lt;town-city&gt;Mill Valley&lt;/town-city&gt;
        &lt;state-county&gt;CA&lt;/state-county&gt;
        &lt;country&gt;USA&lt;/country&gt;
    &lt;/shipTo&gt;
    &lt;billTo&gt;
        &lt;name&gt;Robert Smith&lt;/name&gt;
        &lt;street&gt;8 Oak Avenue&lt;/street&gt;
        &lt;town-city&gt;Old Town&lt;/town-city&gt;
        &lt;state-county&gt;PA&lt;/state-county&gt;
        &lt;country&gt;USA&lt;/country&gt;
    &lt;/billTo&gt;
    &lt;comment&gt;Hurry, my lawn is going wild!&lt;/comment&gt;
    &lt;items&gt;
        &lt;item partNum=&quot;872-AA&quot;&gt;
            &lt;productName&gt;Lawnmower&lt;/productName&gt;
            &lt;quantity&gt;2&lt;/quantity&gt;
            &lt;USPrice&gt;12.12&lt;/USPrice&gt;
            &lt;comment&gt;Confirm this is electric&lt;/comment&gt;
        &lt;/item&gt;
        &lt;item partNum=&quot;926-AA&quot;&gt;
            &lt;productName&gt;Baby Monitor&lt;/productName&gt;
            &lt;quantity&gt;1&lt;/quantity&gt;
            &lt;USPrice&gt;390.98&lt;/USPrice&gt;
        &lt;/item&gt;
        &lt;totalPrice&gt;294.18&lt;/totalPrice&gt;
        &lt;shipDate&gt;2001-01-05&lt;/shipDate&gt;
    &lt;/items&gt;
&lt;/PurchaseOrder&gt;
</xmlFileParameter>
</ns1:acceptXMLOrder>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
This one is really confusing me!! anyone have any ideas?
Thanks,
Brian
 


Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Reply via email to