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

Non RPC function not able to be xml encoded properly #86

Closed
adriantam opened this issue Jan 2, 2018 · 5 comments
Closed

Non RPC function not able to be xml encoded properly #86

adriantam opened this issue Jan 2, 2018 · 5 comments

Comments

@adriantam
Copy link
Contributor

After #75, the generated file contains request that cannot be properly XML encoded.

For example, see https://play.golang.org/p/1aVTcYXYb2j (which is derived from https://raw.githubusercontent.com/fiorix/wsdl2go/master/wsdlgo/testdata/data.golden) - the request cannot be XML encoded.

@kernle32dll
Copy link
Contributor

kernle32dll commented Jan 3, 2018

That is strange. I did check that this did work while doing #75 . I will look into it.

@kernle32dll
Copy link
Contributor

@adriantam Well, although your example was pointing at the wrong direction, as it points to a entirely different problem (trying to marshal a struct - which of course cannot work this way), I was able to find the problem.

Indeed, while doing #75 it seems I broke non-RPC - which is terribly bad. However, I have a fix ready, and will issue an PR. cc @fiorix

kernle32dll added a commit to kernle32dll/wsdl2go that referenced this issue Jan 3, 2018
kernle32dll added a commit to kernle32dll/wsdl2go that referenced this issue Jan 3, 2018
@fiorix
Copy link
Owner

fiorix commented Jan 3, 2018

Could you please add a test so this doesn't happen again in the future?

@kernle32dll
Copy link
Contributor

@fiorix Yes and no. This is not as simple, as we require integrative full-stack / regression tests, which we don't have at the moment. Full-stack would mean generation of a wsdl file, and using said bindings with a locally setup mock server to verify correct / expected behavior. The problem is writing simple enough wsdl files, which can be used for such tests (they must be simple, so they can be properly mocked).

I will start working on my fork on such tests. But I don't suspect that they will be ready soon.

@fiorix
Copy link
Owner

fiorix commented Jan 3, 2018

This is cool, thanks. Take your time and have fun.

kernle32dll added a commit to kernle32dll/wsdl2go that referenced this issue Jan 4, 2018
@fiorix fiorix closed this as completed in 0a23dde Jan 4, 2018
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

3 participants