-
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
Object reference not set to an instance of an object. #8
Comments
sounds weird. you could also compare if the http header generated by savon and soapUI are the same. if you can't find the problem, you could send me the logs from a soap call request and response as well as your soap-call-code (incl. your wsdl endpoint) and i'll have a look. |
Hi, I sent you a message with some snippets of the log files (seemed a little long to post here). Cheers, |
saw it, but it looks ok to me. so i really don't know where to continue here. access to make a successful soap request might be helpful. don't know if that's possible though. |
I just saw the same error while trying to access a .Net web service. I noticed that SoapUI defined a namespace for the service and used it for every element. Savon adds a namespace called "wsdl" to the request that I needed to use on each element in my request.
|
that's correct. up until now savon does not set namespaces automatically. that's why you can use string keys to make it work. |
I think I might have found a clue to get this working for me. I followed this code snippet to make the SOAP request from ruby http://broadcast.oreilly.com/2008/12/creating-custom-soap-requests.html (it just makes the net-http request), and it failed in the same way that savon was failing. I think copied over to my manual approach everything that was in the header of the SOAP UI request, and it worked! It turned out having the 'user-agent' set was important. Would it be possible to open the http header to the end user? thanks, |
hey mike, the http object will be made public in the upcoming release. so you'll be able to set timeouts and everything else directly on the net::http instance. going to release it this weekend. cheers, |
just released version 0.7.0. please refer to the changelog and wiki for information about how to access the http object and let me know if this works for you. |
closing the issue. please reopen if this does not work. |
I'm not convinced this is an issue with Savon, but rather my struggling with the Soap in general. Maybe you will have a suggestion though.
I set up the XML and made the request using Savon. The request returned a SOAPFault, server error 500 with an error message "Object reference not set to an instance of an object." I had seen this before when i was missing required fields in the XML, so I copy and pasted the entire soap envelope into SoapUI and made the request. it worked perfectly from SoapUI though. Why would the request work in SoapUI but not through Savon? What other variables are there besides the contents of the envelope that I can use to debug this?
thanks in advance
mike
The text was updated successfully, but these errors were encountered: