File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservices URL in wsdl - configurable?

 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 906
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic