gowsdl
gowsdl copied to clipboard
Gowsdl fails to create service
🍀 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
Same here, with error:
🍀 71:55: expected type, found ',' (and 10 more errors)
for this wsdl file: https://gist.github.com/amrnt/81cd16d1b74593acce34
I will look into this soon. Thanks for your reports.
Having the same problem.
@dnldd is it possible to provide the wsdl file you are using?
Unfortunately not.
@amrnt make sure gowsdl is able to download the schema imported by that WSDL. I personally wasn't able to access it.
@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.
same problem link to file https://tracking.russianpost.ru/tracking-web-static/rtm34_wsdl.xml
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
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 can you try using this branch instead https://github.com/hooklift/gowsdl/tree/support-for-imports?
@c4milo no luck :( same error message. did it work for you?
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) {