web services - gsoap: how to make it configurable? -
i've implemented client web service. auto-generated files each web method contain hardcoded bindings web service end point:
soap_endpoint = "http://localhost/myservice.asmx"; it fine development purposes, before pushing prod need replace string prod web service address.
is possible manage gsoap in order generated string putted in 'external' variable?
or should replace end-point value each time before deployment?
thanks.
the functions generated gsoap compiler looking like:
soap_call_ns1__foo(struct soap* soap, char *url, char *action, char *symbol, resulttype &result); the argument url endpoint adress. if pass null, endpoint wsdl file used. client can call function other endpoint -- example defined within clients configuration file.
if client using -- gsoap compiler generated -- proxy class, possible set endpoint. proxy class has member called endpoint can set before calling service methods.
Comments
Post a Comment