[erlang-questions] bet365/soap ignores namespace-prefix on elements of type "sequence"

Willem de Jong w.a.de.jong@REDACTED
Thu May 24 19:53:36 CEST 2018


Hello Luca,

It is hard to say what the code should do without knowing the WSDL. If you
can share it with me I can take a look.

In general it is a good idea to use a tool like SoapUI to make sure that
the WSDL is correct and to see some example messages.

Regards,
Willem

2018-05-24 16:44 GMT+02:00 Luca Bormann <lubormann@REDACTED>:

> Hi everyone,
>
>
>
> i am using the following erlang-package to work with some WSDL-Services.
>
>
>
> https://github.com/bet365/soap
>
>
>
> the most part is working fine!
>
> …but my WSDL-service expect that elements of type „sequence“ (including
> all sub-elements) have an existing namespace-prefix in the xml.
>
> The problem is that the „bet365/soap“-package is ignoring this, when i try
> to request with the generated client.
>
>
>
> Please look at my simple examples:
>
>
>
> ------------------------------------------------------------
> --------------------------
>
> Simple Example for what is needed):
>
> ------------------------------------------------------------
> --------------------------
>
>
>
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
> xmlns:urn="urn:s:v2">
>
>    <soap:Header/>
>
>    <soap:Body>
>
>       <urn:getArticles>
>
>          <client>my-client</client>
>
>          <articleRequest Id="99999">
>
>
>
> *            <!-- List 1 to 50 elements:-->*
>
> *            <urn:article>*
>
> *               <urn:id>1234</urn:id >*
>
> *               <urn:quantity>4</urn:quantity >*
>
> *            </urn:article >*
>
>
>
>          </articleRequest >
>
>       </urn:getArticles >
>
>    </soap:Body>
>
> </soap:Envelope>
>
>
>
> ------------------------------------------------------------
> --------------------------
>
> Simple Example for what is generated by the „bet365/soap“-package:
>
> ------------------------------------------------------------
> --------------------------
>
>
>
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
> xmlns:urn="urn:s:v2">
>
>    <soap:Header/>
>
>    <soap:Body>
>
>       <urn:getArticles>
>
>          <client>my-client</client>
>
>          <articleRequest Id="99999">
>
>
>
> *            <!-- List 1 to 50 elements:-->*
>
> *            <article>*
>
> *               <id>1234</id >*
>
> *               <quantity>4</quantity >*
>
> *            </article >*
>
>
>
>          </articleRequest >
>
>       </urn:getArticles >
>
>    </soap:Body>
>
> </soap:Envelope>
>
>
>
> ------------------------------------------------------------
> --------------------------
>
> Can someone help?
>
> Maybe there is an option to pass to „bet365/soap“-package when generating
> the client?
>
> Maybe there is a code-change needed in „bet365/soap“-package?
>
>
>
> Many thanks!
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180524/dae87a12/attachment.htm>


More information about the erlang-questions mailing list