[erlang-questions] soap and utf8 problem

Willem de Jong w.a.de.jong@REDACTED
Fri Jun 10 13:58:58 CEST 2016


If I understand correctly, you are using the library to implement a SOAP

The response that you are quoting is the translation of a SOAP fault.
Apparently the server is not accepting your request. Probably because
something went wrong with the encoding, as you are suggesting.

Could you give some additional information on how you are calling the
service from within your Elixir application? And perhaps show the message
that is sent to the server (as it is sent over the wire)?


On Fri, Jun 10, 2016 at 1:14 PM, semmit mondo <semmitmondo@REDACTED>

> Hi,
> I use this Erlang SOAP library
> https://github.com/bet365/soap
> from an Elixir application.  Everything works fine up until I try to
> send strings with accents (or other unusal characters) in it.
> This is what I get:
> {:fault, 500,
>  [{'connection', 'close'}, {'date', 'Fri, 10 Jun 2016 10:18:53 GMT'},
>   {'server', 'Apache/2.4.18 (Unix) OpenSSL/1.0.2g'}, {'content-length',
> '278'},
>   {'content-type', 'text/xml; charset=utf-8'}], [],
>  {:soap_fault_1_1,
>   {:faultcode, 'http://schemas.xmlsoap.org/soap/envelope/', 'Client',
>    :undefined}, 'Bad Request', :undefined, []}, [],
>  "<?xml version="1.0" encoding="UTF-8"?>n<SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><S
> OAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Bad
> Request</faultstring></SOAP-ENV:Fault></SOAP
> -ENV:Body></SOAP-ENV:Envelope>n"}
> ...and the way I convert utf8 binaries to char lists is simply using
> the '#{some_utf8_binary_string}' Elixir syntax.  (I believe this is the
> same as to_char_list(some_utf8_binary).
> Can anybody give me at least tips what to check and how to solve this
> issue?
> _______________________________________________
> 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/20160610/e10e7278/attachment.htm>

More information about the erlang-questions mailing list