Note that there are some explanatory texts on larger screens.

plurals
  1. POAm failing to transform xml to SOAP
    primarykey
    data
    text
    <p>I'm having a problem calling a webservice from Mule using Axis. I've created a fairly simple example where I have xml in a file being read by Mule, it's then transformed into a Document and sent to the webservice. The relevant code in the mule config looks like this:</p> <pre><code>&lt;inbound&gt; &lt;file:inbound-endpoint path="./files/initial" transformer-refs="FileToString xmlToDom" connector-ref="fileConnector" /&gt; &lt;/inbound&gt; &lt;outbound&gt; &lt;pass-through-router&gt; &lt;axis:outbound-endpoint address="http://localhost:8081/holidayService?method=echoXXXX" synchronous="true" style="DOCUMENT" use="LITERAL" /&gt; &lt;/pass-through-router&gt; &lt;/outbound&gt; </code></pre> <p>However the call for the webservice fails as the above config is generating a SOAP message with an <code>&lt;value0&gt;</code> tag just after the tag and closes it just before the tag. The generated SOAP message looks like this:</p> <pre><code>POST /holidayService?method=echoXXXX HTTP/1.1 Content-Type: text/xml X-MULE_ENDPOINT: http://localhost:8081/holidayService?method=echoXXXX SOAPAction: http://localhost:8081/holidayService?method=echoXXXX directory: D:\bea\weblogic92\samples\domains\wl_server\files\processed filename: HolidayRequest.xml method: echoXXXX originalFilename: HolidayRequest.xml style: document use: literal User-Agent: Jakarta Commons-HttpClient/3.1 Host: 127.0.0.1:8081 Content-Length: 1183 &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;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"&gt; &lt;soapenv:Header&gt; &lt;mule:header soapenv:actor="http://www.muleumo.org/providers/soap/1.0" soapenv:mustUnderstand="0" xmlns:mule="http://www.muleumo.org/providers/soap/1.0"&gt; &lt;mule:MULE_CORRELATION_ID&gt;D:\bea\weblogic92\samples\domains\wl_server\files\processed\HolidayRequest.xml&lt;/mule:MULE_CORRELATION_ID&gt; &lt;mule:MULE_CORRELATION_GROUP_SIZE&gt;-1&lt;/mule:MULE_CORRELATION_GROUP_SIZE&gt; &lt;mule:MULE_CORRELATION_SEQUENCE&gt;-1&lt;/mule:MULE_CORRELATION_SEQUENCE&gt; &lt;/mule:header&gt; &lt;/soapenv:Header&gt; &lt;soapenv:Body&gt; &lt;value0 xsi:type="ns1:DocumentImpl" xmlns="" xmlns:ns1="http://dom.internal.xerces.apache.org.sun.com"&gt; &lt;sch:HolidayRequest xmlns:sch="http://mycompany.com/hr/schemas"&gt; &lt;sch:Holiday&gt; &lt;sch:StartDate&gt;2009-08-13&lt;/sch:StartDate&gt; &lt;sch:EndDate&gt;1988-12-12&lt;/sch:EndDate&gt; &lt;/sch:Holiday&gt; &lt;sch:Employee&gt; &lt;sch:Number&gt;3434&lt;/sch:Number&gt; &lt;sch:FirstName&gt;John&lt;/sch:FirstName&gt; &lt;sch:LastName&gt;Smith&lt;/sch:LastName&gt; &lt;/sch:Employee&gt; &lt;/sch:HolidayRequest&gt; &lt;/value0&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <p>The webservice works fine in SOAPUI without the <code>&lt;value0&gt;</code> tag and from what I've read on the Mule website I don't know why it's being inserted.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload