Use a redirected web service in ColdFusion

I am provided with a WSDL file that points to a web service. I use this web service to log in and create a session. In addition to the session token, the login response provides a URL that I have to redirect to web service calls. Apart from the URL that I am addressing, the definitions are the same, so no new WSDL is provided.

What is the best way to handle this? Create your own modified WSDL? Create and / or modify a webservice object through Java? Some third option that I did not think about?

+4
source share
2 answers

This is a hack, but you can always load the WSDL as a template and refer to it as a local file. When the login call tells you which URL gets, just replace the URL in the template with a new one and continue. You might even have a different version of the WSDL for each URL that can be returned, possibly using a hash of the URL as the file name.

+1
source

Coldfusion web service calls always point to WSDL. Be it a local WSDL file or a remote WSDL file that you can access through an HTTP or HTTP connection. If the response URL does not point to a new WSDL file, it will not be so useful.

-Jay

0
source

All Articles