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

Namespaced operations. #9

Closed
scottjbarr opened this issue Jul 8, 2016 · 2 comments
Closed

Namespaced operations. #9

scottjbarr opened this issue Jul 8, 2016 · 2 comments

Comments

@scottjbarr
Copy link
Contributor

Some endpoints require namespaced messages, for example...

<SOAP-ENV:Envelope 
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ns="http://example.com/WatWebServiceAPI?wsdl">
    <SOAP-ENV:Body>
        <mns1:watsay xmlns:mns1="http://WatWebServiceAPI/">
            <somevalue>WAT</somevalue>
        </mns1:watsay>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

instead of (note the watsay entity)

<SOAP-ENV:Envelope 
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ns="http://example.com/WatWebServiceAPI?wsdl">
    <SOAP-ENV:Body>
        <watsay xmlns="http://WatWebServiceAPI/">
            <somevalue>WAT</somevalue>
        </watsay>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

This seems to be the case when the WSDL specifies the targetNamespace and xmlns:tns in the wsdl:definitions entity. I may be wrong on the actual reason for this.

Example snippet from WSDL.

    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions 
            xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
            xmlns:tns="WatWebServiceAPI/" 
            xmlns:xs="http://www.w3.org/2001/XMLSchema" 
            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
            targetNamespace="WatWebServiceAPI/" 
            name="WatService">
        <wsdl:types>
        ...
@fiorix
Copy link
Owner

fiorix commented Feb 17, 2017

I'm not sure we can support this entirely because of how encoding/xml works. There's more explanations here: golang/go#14407

@fiorix
Copy link
Owner

fiorix commented Dec 28, 2017

Likely fixed with #75. Happy to reopen this if needed.

@fiorix fiorix closed this as completed Dec 28, 2017
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