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

Is there some way to store namespace at struct`s field level? #54

Open
arkadyb opened this issue Apr 19, 2016 · 0 comments
Open

Is there some way to store namespace at struct`s field level? #54

arkadyb opened this issue Apr 19, 2016 · 0 comments

Comments

@arkadyb
Copy link

arkadyb commented Apr 19, 2016

Hi, Ive come with the problem of getting proper structs when wsdl has more than one namespace (therefor prefix).

Considering my expected XML should looks like:

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header xmlns="http://schemas.xmlsoap.org/soap/envelope/"/>
<Body xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<MyRequest xmlns="http://somthin1"
<SubTag xmlns="http://somethin2"/>
</MyRequest>
</Body>
</Header>
</Envelope>

I have a respective WSDL file that describes a a model to be:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:prefix1="http://somethin1" xmlns:prefix2="http://somethin2">
<soapenv:Header>
<soapenv:Body>
<prefix1:MyRequest>
<prefix2:SubTag/>
</MyRequest>
</Body>
</Header>
</Envelope>

Having go not working with multiple prefexis i would be fine to have namespaces written inline (expected XML - see above).
Is it possible to do with gowsdl package? In case its not, what would be my change to have it?

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

1 participant