I am writing a web services client to access an external web service for some data.The URI always seems to be part of the supplied wsdl file, given to us by the external company. Is there any way, I can programmatically set this URI in my web services client,especially the IP address and the port number? Is it possible make the URI a configurable parameter in my Web Application?
I am using Weblogic 8.1, Service Pack 3, Windows 2000
Conceptually, I knew it would be possible to set it dynamically, but I am looking for a way to do it in Weblogic 8.1 Server/Workshop IDE. Weblogic Workshop is the IDE that comes along with the Weblogic Platform 8.1 kit. It allows easy creation/deployment of Web Services and Web Applications.
I am building a Web Application that accesses a Web Service Control.(the target location seems to be a property of this control), By default, the Web Service Control picks up the <wsdlsoap:address location> value from the input WSDL and assigns it to the http-url property of the Web Service Control. I would like to make this a configurable property in my project.
I guess this could be possible with Weblogic API. The WebServices Control interface extends com.bea.control.ControlExtension, com.bea.control.ServiceControl.
The code in PageFlow(Servlet) just access this control and calls the webservices methods. (a control is just the interface but at run time, it holds a reference to a valid Java WebServices Wrapper client Object).
I was wondering if somebody had encountered something similar in Weblogic 8.1 Server/Workshop.
Not sure if this question is related to the WebServices forum or Weblogic forum, but I thought I would try it here first.
I guess I didn't understand you question either, but I'll try an answer :-)
You can always configure the web Service URL in your JAX-RPC client, as it is a property assignable through a getter/setter method. So you just have to implement this simple functionnality.
Moreover, the URL itself can be stored in an URL provider, which is a J2EE compliant feature. Thus, any application server (even Weblogic) will offer you this possibility. Reading the service address from the URL povider of your J2EE server allows to change it dynamically, using the configuration interface.
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Joined: Aug 27, 2003
No worries guys, I found the answer in the BEA newsgroups at the BEA website.
This can be done programmatically by using the control.setEndPoint() method. You could have your end point available in a property files, and at run time read this files and set the endpoint.
WebServicesControl.setEndPoint(URL url)...in my calling code, would do the trick in Weblogic 8.1 using Workshop IDE!
Sorry, I posted in the wrong forum. I should have posted in the Weblogic forum as it is specific Weblogic 8.1.(Weblogic Workshop API).