-
Notifications
You must be signed in to change notification settings - Fork 115
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
WSDL Response decoding does not seem to work #74
Comments
I admit I haven't even manually tested this part of the generated code very thoroughly. Would you happen to have a WSDL endpoint in mind that we can use as an example? |
I'm new to the world of WSDL, so don't have any examples to test against. IIUC it's because the Envelope Body is an |
Ah, it looks like the tests I have in wsdlgen/examples/* only test marshalling. I think the gentests/_testgen can be easily extended to generate tests for wsdlgen if there is a *.wsdl file, and mock responses if there is a *.sample file in the relevant directory, with some inspiration from the links you gave me in #25. |
Ok, I 've got some rudimentary tests pushed in the WSDL:
Go:
I'll need to check the soap spec again to see what the correct behavior is here. |
Ok, the relevant portion of the WSDL spec is https://www.w3.org/TR/2001/NOTE-wsdl-20010315#_porttypes and it does seem like I have a few too many layers here. |
OK, reading the specs a bit more I'm beginning to understand. https://www.w3.org/TR/2001/NOTE-wsdl-20010315#_soap:operation
https://www.w3.org/TR/2001/NOTE-wsdl-20010315#_soap:body
Relevant portions of the SOAP spec: rpc style: https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383533 So next steps would be:
I opened #76 for the related goal of generating error types for soap faults. |
Thanks for looking into this in such detail! In the interim I've switched to xsdgen, and manually built the soap envelope handling for my service. I'm working with an operation which binds input and output to the SOAP body: <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output> |
I cannot, despite my best efforts, find a way to decode the response body.
The envelope is processed fine, just the contents of the Body is not decoded.
I think we need a test case for the generated code, as #25 calls for
The text was updated successfully, but these errors were encountered: