-
Notifications
You must be signed in to change notification settings - Fork 191
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
Hotel and xml namespace #292
Comments
What error are you talking about? The |
after spend several hours with amadeus technical support we've discovered that this issue: #70 (comment) coming from ns1/ns2.. tag. we know that are autogenerated, but always according to amadeus technical support, other clients have our same problem with namespace prefix (that must not exist according to amadeus). The test we've done with amadeus was just sending the xml without namespace tag and....surprise it works (it's very strange) |
I found this reddit thread: https://www.reddit.com/r/PHP/comments/184ik5/soap_client_change_ns1_namespace_prefix/c8c3xhi You may want to try that? |
after several hours with amadeus support. we've discovered that's 💩 . when php load hotel load the namespace (ns1, ns2 etc..), those are errors for amadeus. we've made a call without ns and works fine! tested with: hotelMultiSingleAvailability |
any update? |
@DerMika can this be fixed ? |
we're working on, but isn't too easy. the problem itself start in amadeus |
As you may have noticed, I do not have the time to get to the bottom of this. Somehow you'll have to convince PHP's soapclient to not set the automatically generated namespaces. I don't know if this is possible, you may have to look into how the underlying XML library works. The brute force fix would be to override the SoapClient's |
Hi guys, I Think This Should do removing the namespace tags . class MySoapClient extends SoapClient |
it's not always ns:1, in fact SoapClient will generate a namespace prefix per namespace in your document. But yes, that could be a way to go. |
hi,
we have discovered that the error comes from hotel is generated by namespaces tag in xml (ns1, ns2...) how can we remove that (just for hotel messages)?
The text was updated successfully, but these errors were encountered: