Oh, I've misread you question.
Afaik, to get a WSDL by ?WSDL=1 URL from Caché web-service you already need to know the URL of service. Basically, a client needs to know there the service is to ask for it's WSDL, if you don't supply it some other way.
Then a client can send a web-service request to any URL, it does not matter what location is in in WSDL xml.
The service itself only works (natively) on /csp/csp-applicaton-name/classname.csl URL. To change it's "location", I mean, the URL on which the web-service is accessible, you need to setup rewrite or proxy rules in your production web-server which should be nginx or apache or some other external application.
But - you can change the parameter value on compile time by writing in class, if you want to.
Parameter LOCATION;
ClassMethod Location() As %Status [ CodeMode = generator ]
{
Set o=##class(%Dictionary.ParameterDefinition).%OpenId(%class_"||LOCATION")
Set o.Default="test"
Quit o.%Save()
}
пятница, 18 января 2019 г., 16:15:01 UTC+7 пользователь Rodrigo Werneck написал: