-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colon in XML results in Error #143
Comments
first of all, why are you sending only a colon? anyway ... i honestly don't think that's the problem. you're receiving an http error, which means your server response code is not within 200..299. |
I'm not sending just a colon. That was an example. It happens whenever there is a colon in the XML. You're quite right the server's response was 400. However, I'm trying to figure out what is causing this bad request. For some reason it works fine when there is no colon in the XML. |
I used to do this: With 0.8.4 I can do this which is great:
However, now I can't put a colon anywhere in the soap XML without that error being displayed. Meaning the first example now falls over. |
could you please compare the xml generated for the request and check to see if both requests are actually the same? |
I have confirmed that the XML is the same as the XML I am sending using soapUI which returns a valid response. |
Never mind, downgraded to 0.8.3 and all works now. |
Not sure I completely follow the discussion above but this sounds like the elementFormDefault change in 0.8.4. See https://github.com/rubiii/savon/pull/155 |
this should be fixed with v0.9.6. |
I seem to be having problems whenever there is a colon present in the XML e.g "xs:schema". Removing the colon sends the request fine. I've tried to isolate an example of this below.
Code:
response = client.request :action do
soap.xml = ':'
end
Result:
/Library/Ruby/Gems/1.8/gems/savon-0.8.4/lib/savon/soap/response.rb:75:in
raise_errors': Savon::HTTP::Error from /Library/Ruby/Gems/1.8/gems/savon-0.8.4/lib/savon/soap/response.rb:16:in
initialize'from /Library/Ruby/Gems/1.8/gems/savon-0.8.4/lib/savon/soap/request.rb:43:in
new' from /Library/Ruby/Gems/1.8/gems/savon-0.8.4/lib/savon/soap/request.rb:43:in
with_logging'from /Library/Ruby/Gems/1.8/gems/savon-0.8.4/lib/savon/soap/request.rb:25:in
response' from /Library/Ruby/Gems/1.8/gems/savon-0.8.4/lib/savon/client.rb:78:in
request'I don't think this happened prior to version 0.8.4?
The text was updated successfully, but these errors were encountered: