Note that there are some explanatory texts on larger screens.

plurals
  1. POmultiRef in generated xml sending by WS
    primarykey
    data
    text
    <p>I have application that running on my local machine on jboss.<br> I downloaded wsdl file, generate java code in eclipse. Run and have exception:</p> <blockquote> <p>caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: ""</p> </blockquote> <p>(Application correctly work with another simple WS). </p> <p>After some Googling I found that code generate wrong xml:<br> <strong>expected:</strong></p> <pre class="lang-xml prettyprint-override"><code>&lt;soapenv:Body&gt; &lt;ns1:setLevel soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="###"&gt; &lt;id xsi:type="xsd:string"&gt;x2148&lt;/id&gt; &lt;level xsi:type="xsd:long"&gt;5&lt;/level&gt; &lt;/ns1:setLevel&gt; &lt;/soapenv:Body&gt; </code></pre> <p>but through TCPMon/Fiddler i found that my requests look like that: </p> <pre class="lang-xml prettyprint-override"><code>&lt;soapenv:Body&gt; &lt;ns1:setLevel soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="###"&gt; &lt;id xsi:type="xsd:string"&gt;x2148&lt;/id&gt; &lt;level href="#id0" /&gt; &lt;/ns1:setLevel&gt; &lt;multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt;5&lt;/multiRef&gt; &lt;/soapenv:Body&gt; </code></pre> <p>after googling i found that solution is change </p> <pre class="lang-xml prettyprint-override"><code>&lt;parameter name="sendMultiRefs" value="true"/&gt; </code></pre> <p>on false in server-config.wsdd file on server side. But i don't have this file.<br> Any solutions? I see only one solution - change xml file on runtime - but it's sounds not good.</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.
 

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