This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes Webservices URL in wsdl - configurable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservices URL in wsdl - configurable?" Watch "Webservices URL in wsdl - configurable?" New topic
Author

Webservices URL in wsdl - configurable?

Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
Hi,

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

thanks,
Vishwa
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
IMHO, As you are generating the client code, you can always set them as dynamic variable and supply them via command prompt or so.

Guess I didn't understood your question clearly.


Spritle Software Blogs
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
Balaji,

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.
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Hi,

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
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
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).

Regds,
-Vishwa
 
GeeCON Prague 2014
 
subject: Webservices URL in wsdl - configurable?