-
Notifications
You must be signed in to change notification settings - Fork 382
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
xsd:integer as int / string #58
Comments
What about using |
Yeah, that sounds even better than a string, and I'll give it a try when I get back to work in a few days. |
|
@danielkwinsor Can you be more specific about what generates that error and what you did? |
It looks like |
Yeah sure so, originally I changed line 405 of gowsdl.go in the support-for-imports branch -- to Tried
|
@danielkwinsor It looks like the problem you're seeing here is that |
Now code generates:
Expected
|
This xsd generates the following golang code, which fails to compile with the following reason.
What I see is xsd:integer is different from xsd:int and xsd:integer could probably be a string, since it is unbounded.
myservice/myservice.go:105: cannot convert "0" to type XyzTypee
myservice/myservice.go:107: cannot convert "1" to type XyzTypee
myservice/myservice.go:109: cannot convert "2" to type XyzTypee
myservice/myservice.go:111: cannot convert "3" to type XyzTypee
The text was updated successfully, but these errors were encountered: