0

I'm just starting with golang and SOAP service. I want to connect with SOAP server using gowsdl. I've generated with gowsdl and got myservice.go. What do I need to do next?

ndmeiri
  • 4,979
  • 12
  • 37
  • 45
  • 1
    What is your problem? What errors does your code produce? Please ask an actually question instead of asking for general advise. – Daniel Schütte Jul 18 '18 at 00:37

1 Answers1

1

Make a new client based off of the myservice.go file that was generated:

client := NewSoapClient("http://yourEndPoint.svc", false, nil)

Use that client to do stuff:

resp, err := client.SomeStuffDefinedInSoapService()
if err != nil {
handle error...
}
fmt.Println(resp)
rkta
  • 3,959
  • 7
  • 25
  • 37
425devon
  • 111
  • 5