Skip to content
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

Soap11Client.soapRequest mixes namespaces #298

Open
malaverdiere opened this issue Nov 18, 2014 · 2 comments
Open

Soap11Client.soapRequest mixes namespaces #298

malaverdiere opened this issue Nov 18, 2014 · 2 comments

Comments

@malaverdiere
Copy link

Problem
Using ScalaXB with jSeduite, I was getting a "cannot find dispatch method" consistently. Upon investigation, I noticed that the namespace was incorrect. I eventually tracked it to the merging of namespace binding in Soap11Client.soapRequest

This is the namespace binding before the merging with SOAP11

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns2="http://absence.news.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns9="http://pictogram.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns8="http://registry.image.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns7="http://plannings.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns6="http://promos.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns5="http://sources.profiles.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns4="http://profiles.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns34="http://videopublisher.technical.jSeduite.montreal.m1.ca/"
xmlns:tns33="http://time.helpers.technical.jSeduite.modails.i3s.unice.fr/"
xmlns:tns32="http://feeds.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns31="http://helper.image.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns30="http://modalis.i3s.unice.fr/jSeduite/ws/technical/hyperlocator"
xmlns:tns3="http://summon.news.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns29="http://hello.sandbox.technicals.jseduite.modalis.i3s.unice.fr/"
xmlns:tns28="http://files.upload.jseduite.modalis.i3s.unice.fr/"
xmlns:tns27="http://error.logger.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns26="http://cache.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns25="http://alarms.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns24="http://apal.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns23="http://breaks.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns22="http://breaktime.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns21="http://breaking.news.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns20="http://devices.profiles.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns19="http://Ephemerides.time.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns18="http://registry.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns17="http://flickr.image.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns16="http://modalis.i3s.unice.fr/jSeduite/ws/technical/hypermachin"
xmlns:tns15="http://calendar.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns14="http://internal.news.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns13="http://restaurant.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns12="http://params.profiles.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns11="http://partners.registry.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns10="http://picasa.image.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns1="http://tv.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns0="http://videopublisher.technical.jSeduite.montreal.m1.ca/"
xmlns:tns="http://twitter.messaging.technical.jSeduite.modalis.i3s.unice.fr/"

Note that tns2 points to http://absence.news.technical.jSeduite.modalis.i3s.unice.fr/

After the merging, we have this:

xmlns:tns0="http://absence.news.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns1="http://alarms.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns2="http://apal.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns3="http://breaks.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns4="http://breaktime.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns5="http://breaking.news.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns6="http://restaurant.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns7="http://cache.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns8="http://devices.profiles.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns9="http://Ephemerides.time.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns10="http://error.logger.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns11="http://registry.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns12="http://files.upload.jseduite.modalis.i3s.unice.fr/"
xmlns:tns13="http://flickr.image.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns14="http://hello.sandbox.technicals.jseduite.modalis.i3s.unice.fr/"
xmlns:tns15="http://modalis.i3s.unice.fr/jSeduite/ws/technical/hyperlocator"
xmlns:tns17="http://calendar.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns18="http://internal.news.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns19="http://params.profiles.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns20="http://partners.registry.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns21="http://picasa.image.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns22="http://pictogram.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns23="http://registry.image.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns24="http://helper.image.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns25="http://plannings.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns26="http://promos.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns27="http://feeds.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns28="http://sources.profiles.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns29="http://profiles.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns30="http://summon.news.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns31="http://time.helpers.technical.jSeduite.modails.i3s.unice.fr/"
xmlns:tns32="http://tv.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns33="http://twitter.messaging.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns="http://twitter.messaging.technical.jSeduite.modalis.i3s.unice.fr/"
xmlns:tns16="http://modalis.i3s.unice.fr/jSeduite/ws/technical/hypermachin"
xmlns:tns34="http://videopublisher.technical.jSeduite.montreal.m1.ca/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"

Now, tns2 points to http://apal.technical.jSeduite.modalis.i3s.unice.fr/.

Expectation
The namespace associations should not change after the message is created.

@eed3si9n
Copy link
Owner

Thanks for the report. Could you post all required wsdl/xsd somewhere on Github so I can reproduce this?

@malaverdiere
Copy link
Author

Thanks for looking into this issue. I just pushed them here:
https://github.com/malaverdiere/scalaxb-bug-data

Note that the endpoint URL is hardcoded to my system's name - that's what Glassfish generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants