Dynamic URL for webservice callout
Author: martinandheather@gmail.com (byjones)
Currently, I have an application which calls out to webservices on a server.
However, if this server changes, do I have to regenerate all of the signatures in order to use this new server?
If it is a matter of regenerating, would it be possible to add a feature to allow the base URL to be specified somewhere, and then simply change this and recompile the signatures in order to make the changes?
Martin
5 Comments
Local Administrator
Hi Martin,
Just an idea:
Do not specify the URL of the WSDL directly in the SOAP Properties of the Web Service Call-Out signature, but only refer to a local WSDL file. In case you would like to use a different server then you only have to change the local copy of the WSDL and there's no need to regenerate the related signature.
Hope this helps.
Best regards,
Daniel
*** Usual disclaimer ***
Author: diseli (daniel.iseli@uniface.com)
Local Administrator
i use the same workaround and it works fine.
Author: rgi.hup (rgi@hup.de)
Local Administrator
So do you just load the WSDL in from C:\somefile.wsdl or do you put it on http://localhost/somefile.wsdl?
Martin
Author: byjones (martinandheather@gmail.com)
Local Administrator
You can use
C:\somefile.wsdl
We use the technique and it works fine.
Author: None (None)
Local Administrator
How do tell Uniface where the path of the webservice is at runtime - does this go in the wsdl file?
Thanks,
Anthony
Author: awiddowson (a.widdowson@midlandhr.co.uk)