gowsdl icon indicating copy to clipboard operation
gowsdl copied to clipboard

Gowsdl fails to create service

Open daveilers opened this issue 9 years ago • 13 comments

🍀  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

daveilers avatar Apr 24 '15 00:04 daveilers

Same here, with error:

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

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

amrnt avatar Jun 30 '15 21:06 amrnt

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

c4milo avatar Jun 30 '15 21:06 c4milo

Having the same problem.

dnldd avatar Sep 02 '15 10:09 dnldd

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

c4milo avatar Sep 02 '15 18:09 c4milo

Unfortunately not.

dnldd avatar Sep 02 '15 19:09 dnldd

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

c4milo avatar Sep 12 '15 20:09 c4milo

@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.

c4milo avatar Sep 12 '15 20:09 c4milo

same problem link to file https://tracking.russianpost.ru/tracking-web-static/rtm34_wsdl.xml

vlad-lukyanov avatar Oct 16 '15 12:10 vlad-lukyanov

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

bassu avatar Dec 16 '15 10:12 bassu

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

uccmen avatar Feb 02 '16 08:02 uccmen

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

c4milo avatar Feb 02 '16 16:02 c4milo

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

uccmen avatar Feb 03 '16 02:02 uccmen

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) {

xor-gate avatar Jan 28 '17 20:01 xor-gate