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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gowsdl fails to create service #28

Open
daveilers opened this issue Apr 24, 2015 · 13 comments
Open

Gowsdl fails to create service #28

daveilers opened this issue Apr 24, 2015 · 13 comments
Assignees

Comments

@daveilers
Copy link

馃崁  537:76: expected type, found ',' (and 10 more errors)

It seems like the issue occurs with empty response messages perhaps?

I'm not sure how to upload a file so I save the wsdl in the following gist
https://gist.github.com/daveilers/92b04a1445b78f67f131

@c4milo c4milo self-assigned this Apr 24, 2015
@amrnt
Copy link

amrnt commented Jun 30, 2015

Same here, with error:

馃崁  71:55: expected type, found ',' (and 10 more errors)

for this wsdl file: https://gist.github.com/amrnt/81cd16d1b74593acce34

@c4milo
Copy link
Member

c4milo commented Jun 30, 2015

I will look into this soon. Thanks for your reports.

@dnldd
Copy link

dnldd commented Sep 2, 2015

Having the same problem.

@c4milo
Copy link
Member

c4milo commented Sep 2, 2015

@dnldd is it possible to provide the wsdl file you are using?

@dnldd
Copy link

dnldd commented Sep 2, 2015

Unfortunately not.

@c4milo
Copy link
Member

c4milo commented Sep 12, 2015

@amrnt make sure gowsdl is able to download the schema imported by that WSDL. I personally wasn't able to access it.

@c4milo
Copy link
Member

c4milo commented Sep 12, 2015

@daveilers the problem gowsdl is having with your WSDL is that there are operations that are defining output messages but those messages do not have a correspondent type in the schema. I'm trying to figure out what does the Basic Profile say about that and how I should address it in the code.

@vlad-lukyanov
Copy link

@bassu
Copy link

bassu commented Dec 16, 2015

Same here.
./gowsdl esUsers.xml
馃崁 480:3: expected '}', found 'struct' (and 10 more errors)

Link to the source file
https://gist.github.com/anonymous/965a53a6ebc9fc3cec1f

@uccmen
Copy link

uccmen commented Feb 2, 2016

any update? I seem to be getting the same error.
72:43: expected type, found ',' (and 7 more errors)

link to wsdl file - http://uat.cmctos.com.my:8080/ctos/Proxy?wsdl

@c4milo
Copy link
Member

c4milo commented Feb 2, 2016

@uccmen can you try using this branch instead https://github.com/hooklift/gowsdl/tree/support-for-imports?

@uccmen
Copy link

uccmen commented Feb 3, 2016

@c4milo no luck :( same error message. did it work for you?

@xor-gate
Copy link

xor-gate commented Jan 28, 2017

WSDL: https://api.transip.nl/wsdl/?service=DomainService
I have the same error expected type, found ',' (and 10 more errors)

2017/01/28 21:10:39 [WARN] GetDomainNamesRequest message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] RegisterResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] CancelResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] TransferWithOwnerChangeResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] TransferWithoutOwnerChangeResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] SetNameserversResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] SetLockResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] UnsetLockResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] SetDnsEntriesResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] SetOwnerResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] SetContactsResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] GetAllTldInfosRequest message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] RetryCurrentDomainActionWithNewDataResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] RetryTransferWithDifferentAuthCodeResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 [WARN] CancelDomainActionResponse message doesn't have any parts, ignoring message...
2017/01/28 21:10:39 873:70: expected type, found ',' (and 10 more errors)

It seems to generate broken function output variable pointer without a type:

 873                 func (service *DomainServicePortType) Register (request *Domain) (*, error) {

It seems an empty response message is killing the generator:

504   <message name="RegisterResponse"/>

I have changed it by hand to see wat happens:

504   <message name="RegisterResponse">
505     <part name="return" type="xsd:boolean"/>
506   </message>

Then it generates non broken code:

 873                 func (service *DomainServicePortType) Register (request *Domain) (*Boolean, error) {

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

8 participants