<div dir="ltr">Hi,<div><br></div><div>If I understand correctly, you are using the library to implement a SOAP client. </div><div><br></div><div>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.</div><div><br></div><div>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)?</div><div><br></div><div>Regards,</div><div>Willem</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 10, 2016 at 1:14 PM, semmit mondo <span dir="ltr"><<a href="mailto:semmitmondo@freemail.hu" target="_blank">semmitmondo@freemail.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I use this Erlang SOAP library<br>
<br>
<a href="https://github.com/bet365/soap" rel="noreferrer" target="_blank">https://github.com/bet365/soap</a><br>
<br>
from an Elixir application. Everything works fine up until I try to<br>
send strings with accents (or other unusal characters) in it.<br>
<br>
This is what I get:<br>
<br>
{:fault, 500,<br>
[{'connection', 'close'}, {'date', 'Fri, 10 Jun 2016 10:18:53 GMT'},<br>
{'server', 'Apache/2.4.18 (Unix) OpenSSL/1.0.2g'}, {'content-length', '278'},<br>
{'content-type', 'text/xml; charset=utf-8'}], [],<br>
{:soap_fault_1_1,<br>
{:faultcode, '<a href="http://schemas.xmlsoap.org/soap/envelope/" rel="noreferrer" target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>', 'Client',<br>
:undefined}, 'Bad Request', :undefined, []}, [],<br>
"<?xml version="1.0" encoding="UTF-8"?>n<SOAP-ENV:Envelope xmlns:SOAP-ENV="<a href="http://schemas.xmlsoap.org/soap/envelope/" rel="noreferrer" target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>"><S<br>
OAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Bad Request</faultstring></SOAP-ENV:Fault></SOAP<br>
-ENV:Body></SOAP-ENV:Envelope>n"}<br>
<br>
<br>
...and the way I convert utf8 binaries to char lists is simply using<br>
the '#{some_utf8_binary_string}' Elixir syntax. (I believe this is the<br>
same as to_char_list(some_utf8_binary).<br>
<br>
Can anybody give me at least tips what to check and how to solve this issue?<br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>