where to define the type String
In wsdl :
I use gowsds to get the .go file from the wsdl .
Find the String type in the .go file because it set the Param as String type. But How can I define the String type ? or where is the String type ?
I'm sorry you are running into issues. However, I'm not sure I'm following. Would you mind elaborating a bit more?
@c4milo I'm hitting an a similar issue. I'm generating from a WSDL document and I'm ending up with a lot methods like the following:
/* (1.12) Get Events */
func (service *ApplicationServiceHttpGet) GetEvents(request *String) (*ClsEvents, error) {
response := new(ClsEvents)
err := service.client.Call("", request, response)
if err != nil {
return nil, err
}
return response, nil
}
The problem is that String type doesn't seem to be defined anywhere.
So when playing around with this my WSDL file seems to have the operations specified three times as follows:
<wsdl:portType name="ApplicationServiceSoap">
...
<wsdl:operation name="GetEvents">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">(1.12) Get Events</wsdl:documentation>
<wsdl:input message="tns:GetEventsSoapIn" />
<wsdl:output message="tns:GetEventsSoapOut" />
</wsdl:operation>
...
</wsdl:portType>
<wsdl:portType name="ApplicationServiceHttpGet">
...
<wsdl:operation name="GetEvents">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">(1.12) Get Events</wsdl:documentation>
<wsdl:input message="tns:GetEventsHttpGetIn" />
<wsdl:output message="tns:GetEventsHttpGetOut" />
</wsdl:operation>
...
</wsdl:portType>
<wsdl:portType name="ApplicationServiceHttpPost">
...
<wsdl:operation name="GetEvents">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">(1.12) Get Events</wsdl:documentation>
<wsdl:input message="tns:GetEventsHttpPostIn" />
<wsdl:output message="tns:GetEventsHttpPostOut" />
</wsdl:operation>
...
</wsdl:portType>
...
I just deleted the two additional application services (in this case ApplicationServiceHttpPost and ApplicationServiceHttpGet) from the code post generation and this appears to have fixed the problem
meet a same problem too... = =
meet the same problem, anyone who knows how to solve this problem?
I'm having the same issues as well.
I run the command gowsdl -o arws.go arwshdlr.wsdl and arws.go is successfully generated.
When I go to compile, I get the error of undefined String caused by the functions generated for each SOAP method. I.E. the error will be on afunction generated in arws.go: func (service *ArwshdlrPortType) ArwsbinqgetBill(request *String) (*String, error) {...}
same for me
I also got this problem. Seems that *String should actually be one of the generated structs?