I am using gowsdl
to consume a SOAP
request in Go. I got WSDL
and generated the code using that. In the auto-generated code, it generated stub and some code snippets are mentioned below.
-
I have to make a
SOAP
call and have to passGetAllPersons struct
as an input to the service. Please help me how do we do that? I have the requestxml
but dont know how to update that inGetAllPersons struct
?persons, err := service.GetAllPersons(request) type GetAllPersons struct { XMLName xml.Name `xml:"http://service.jaxws.journaldev.com getAllPersons"` }
And as per Go specification, a variable is declared using the sybtax
VariableName Type
. What is the 3rd valuexml:"http://service.jaxws.journaldev.com getAllPersons"
in abovestruct
?