You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having issues with a SOAP client I'm writing, based on Savon, Nori, Nokogiri, HTTPi and restclient.
I've had xml parsing errors, because of line breaks in the middle of a couple of xml tags. I first reproduced the request in a bare curl invocation, to confirm that there is no line break in the response from the server.
I've tried to debug my way into restclient to find where the raw http response as processed, but I got lost and decided that 1 hour spent on this was a little too much.
I've swapped the http client from httpclient to curb and retried ; it worked.
The deepest I got is in HTTPClient#do_request() where the res variable at the end contains the XML string, with the line breaks.
I couldn't manage to go deeper and find where those line breaks com from.
Sadly, the SOAP request is not public.
The response is 38027 characters long. Line breaks are at position 16377, then 16381.
The text was updated successfully, but these errors were encountered:
Hi,
I was having issues with a SOAP client I'm writing, based on Savon, Nori, Nokogiri, HTTPi and restclient.
I've had xml parsing errors, because of line breaks in the middle of a couple of xml tags. I first reproduced the request in a bare
curl
invocation, to confirm that there is no line break in the response from the server.I've tried to debug my way into restclient to find where the raw http response as processed, but I got lost and decided that 1 hour spent on this was a little too much.
I've swapped the http client from httpclient to curb and retried ; it worked.
The deepest I got is in
HTTPClient#do_request()
where theres
variable at the end contains the XML string, with the line breaks.I couldn't manage to go deeper and find where those line breaks com from.
Sadly, the SOAP request is not public.
The response is 38027 characters long. Line breaks are at position 16377, then 16381.
The text was updated successfully, but these errors were encountered: