-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Workaround for wsdl:input message-part and namespace use wsdl:i… #1274
base: master
Are you sure you want to change the base?
Conversation
…mport WSDL server had the following multiple-import with wsdl:input part main.wsdl ```xml <wsdl:definitions name="Report" targetNamespace="2012-04-20" xmlns:i0="Other" xmlns:tns="2012-04-20"> <wsdl:import namespace="Other" location="other.wsdl" /> <wsdl:message name="InputMessage"> <wsdl:part name="parameters" element="tns:InputMessagePart" /> </wsdl:message> <wsdl:message name="OutputMessage"> <wsdl:part name="parameters" element="tns:OutputMessagePart" /> </wsdl:message> <wsdl:operation name="TestOperation"> <wsdl:input wsaw:Action="ACTX" message="tns:InputMessage" /> <wsdl:output wsaw:Action="ACTX" message="tns:OutputMessage" /> </wsdl:operation> </wsdl:definitions> ``` other.wsdl ```xml <wsdl:definitions targetNamespace="Other" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:i0="20212-04-20" xmlns:tns="Other"> <wsdl:import namespace="2012-04-20" location="main.wsdl" /> </wsdl:definitions> ``` When making call to function: client.TestOperation(...) Actual: Wraps Body with <InputMessage> Expected: Should wrap body with <i0:InputMessagePart ...>
Hi @prasad83, Code does not compile. Also, this change needs a test. Thanks. |
@w666 - when wsdl has multiple imports - operation call is loosing the bindingNamespace. I was able to get the python zeep client with such soap server but not this. The workaround devised worked for this use-case. Need to carve out time for building test case. |
Build is still broken. Also, I think your WSDL is not valid, operations should be within What do you think? |
@w666 - I updated WSDL snippets now. [main.wsdl had portType binding and other.wsdl had Secure and NonSecure endpoints variants]
|
I am not sure I understand the issue. Where did you get your WSDL from? Is it actual existing service that you need to work with? If so, why did you update original WSDL after my comment? I am not familiar with zeep client, but if it works there it does not mean that something is broken in node-soap. Currently build is broken, please fix it so we can move on. Also, it would be good if you can explain what part of the specification is not implemented. Thanks. |
WSDL server had the following multiple-import with wsdl:input part
main.wsdl
other.wsdl
When making call to function: client.TestOperation(...)
Actual: Wraps with
Expected: Should wrap with <i0:InputMessagePart ...>