• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webservices URL in wsdl - configurable?

 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Right! We're on it! Let's get to work tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic