-
Notifications
You must be signed in to change notification settings - Fork 83
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
[3.3.0] Invalid namespace while parsing WS-N wsdl #56
Comments
This is a tricky issue @keltia. I haven't read the spec fully on this, but my best guess is that the br-2 namespace is brought in from the imported WSDL on line 9 of your gist. Wasabi has never had support for importing other xsd or wsdls, mainly because of the numerous challenges involved. This makes me really sad, because it's one of the most common problems people have with Savon and Wasabi, and it generates a lot of support requests. My best guess at a workaround would be to take all of the imports from your WSDL and combine them into a single WSDL, and take the combined document and feed that to Savon. |
I also tried to take your example and pare it down a bit, so it was actually runnable. Seems like the remote server is unresponsive, because all of my attempts to run this code timed out while opening a socket. https://gist.github.com/tjarratt/f9c9de9c23e96d957ca6 Anyway, hope this helps! |
To my experience, it is pretty seldom that you have a self-contained wsdl file. All the standard ones, be it OASIS or W3C, do have includes for types definitions and other stuff so supporting both XSD and WSDL inclusion is just a must otherwise we end up in that very situation. The main problem is that there are no so many SOAP client libraries out there (in fact, I only know of Savon & Wasabi) so we do not have any choice... I do not know how to fix that (and to be honest, if I could do w/o all that XML stuff I would). I'll try to see if merging everything is doable although I manage to do everything myself by manually writing the XML code. |
I think since this is such a common problem with Savon (it's actually issue #1), that I'm going to try to dedicate some time to this later this month. Some of the simple cases (e.g.: absolute URLs) should be straightforward, and adding additional cases can happen on an as-needed basis. Would love to hear how merging all the XML works, when you get a chance. |
I'm trying to send a request for a WebService Notification service (WS-N).
Using the following WSDL (which import various OASIS-based WSDL/XSD) — https://gist.github.com/keltia/8e6cb6da0521c0290cd8, an invalid namespace is used to generate the request.
The code is very basic:
the request generated is:
wsdl
should be usingb-2
and notbrw-2
. SoapUI get it right see the following screenshot:https://www.dropbox.com/s/ntyxz44se481eu1/Screenshot%202015-03-10%2015.05.31.png?dl=0
Any idea?
The text was updated successfully, but these errors were encountered: