axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Shields <>
Subject Re: sending xml files as string parameters
Date Tue, 03 Feb 2004 15:40:13 GMT
How? that is an automatically generated SOAP message. I am simple creating a parameter...("xmlFileParameter,
String.class, xmlFile, Constants.NS_URI_SOAP_ENC); where xmlFile is the string containing
the xml file! II presume ns1 is a default namespace??

Jeff <> wrote:
Try using:
<ns1:xmlFileParameter ...
----- Original Message ----- 
From: Brian Shields 
Sent: Tuesday, February 03, 2004 10:11 AM
Subject: sending xml files as string parameters

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
Content-Type: text/xml; charset=utf-8
Content-Length: 2037
SOAPAction: ""

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsi=""
<ns1:acceptXMLOrder xmlns:ns1="urn:Foo" SOAP-ENV:encodingStyle="">
<xmlFileParameter xsi:type="xsd:string">&lt;?xml version=&quot;1.0&quot;
&lt;PurchaseOrder xmlns:xsi=&quot;;
        &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;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;comment&gt;Hurry, my lawn is going wild!&lt;/comment&gt;
        &lt;item partNum=&quot;872-AA&quot;&gt;
            &lt;comment&gt;Confirm this is electric&lt;/comment&gt;
        &lt;item partNum=&quot;926-AA&quot;&gt;
            &lt;productName&gt;Baby Monitor&lt;/productName&gt;

This one is really confusing me!! anyone have any ideas?

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

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