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:Body>
<xmlFileParameter xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8"?>
<PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="po.xsd">
<poNumber>jfd</poNumber>
<shipTo>
<name>Alice Smith</name>
<street>123 Maple Street</street>
<town-city>Mill Valley</town-city>
<state-county>CA</state-county>
<country>USA</country>
</shipTo>
<billTo>
<name>Robert Smith</name>
<street>8 Oak Avenue</street>
<town-city>Old Town</town-city>
<state-county>PA</state-county>
<country>USA</country>
</billTo>
<comment>Hurry, my lawn is going wild!</comment>
<items>
<item partNum="872-AA">
<productName>Lawnmower</productName>
<quantity>2</quantity>
<USPrice>12.12</USPrice>
<comment>Confirm this is electric</comment>
</item>
<item partNum="926-AA">
<productName>Baby Monitor</productName>
<quantity>1</quantity>
<USPrice>390.98</USPrice>
</item>
<totalPrice>294.18</totalPrice>
<shipDate>2001-01-05</shipDate>
</items>
</PurchaseOrder>
</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!