Note that there are some explanatory texts on larger screens.

plurals
  1. POMove namespace declaration from payload to envelope on an axis created web service
    primarykey
    data
    text
    <p>I just created a web service client using axis and eclipse that does not work with my web service provider. The message created by the web service client looks like this:</p> <pre><code>&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:Body&gt; &lt;enviarMensajeRequest xmlns="http://www.springframework.org/spring-ws/Imk-Zenkiu-Services"&gt; &lt;usuario&gt;someuser&lt;/usuario&gt; &lt;clave&gt;somepassword&lt;/clave&gt; &lt;mensaje&gt;somemessage&lt;/mensaje&gt; &lt;contacto&gt; &lt;buzonSMS&gt;somenumber&lt;/buzonSMS&gt; &lt;primerNombre&gt;somefirstname&lt;/primerNombre&gt; &lt;primerApellido&gt;somelastname&lt;/primerApellido&gt; &lt;/contacto&gt; &lt;/enviarMensajeRequest&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <p>I see nothing wrong with the message but my provider insists the message should be:</p> <pre><code>&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" xmlns:imk="http://www.springframework.org/spring-ws/Imk-Zenkiu-Services"&gt; &lt;soapenv:Body&gt; &lt;imk:enviarMensajeRequest&gt; &lt;imk:usuario&gt;someuser&lt;/imk:usuario&gt; &lt;imk:clave&gt;somepassword&lt;/imk:clave&gt; &lt;imk:mensaje&gt;somemessage&lt;/imk:mensaje&gt; &lt;imk:contacto&gt; &lt;imk:buzonSMS&gt;somenumber&lt;/imk:buzonSMS&gt; &lt;imk:primerNombre&gt;somefirstname&lt;/imk:primerNombre&gt; &lt;imk:primerApellido&gt;somelastname&lt;/imk:primerApellido&gt; &lt;/imk:contacto&gt; &lt;/imk:enviarMensajeRequest&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <p>Notice the namespace declaration moving from the <code>enviarMensajeRequest</code> to the <code>soapenv:Envelope</code> and the qualification with <code>imk:</code> on the parameters. I've tried many combinations on the process but my web service, wsdl and xml knowledge is very limited. The provider says that they can't help beyond telling me this. Any ideas? Perhaps a different framework that I can use to create the correct client.</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.
 

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