on 08-07-2006 7:09 PM
Hi,
in my WSDL file I can see section:
<soap:address xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" location="the URL of the server"
the URL of the server - is the <b>dev</b> server URL
when I create a web dynpro app it uses this URL
but what if I'd like to test my web dynpro
app with QAT server with new URL ?
do I need to have/import a new WSDL ?
are there any procedures on how to handle this?
- if there are no official procedures maybe
you can tell how you handle it from your own exprience ?
Thanks for your help,
Regards,
michal
Message was edited by: Michal Krawczyk
hi
You can create the alias for the wsdl file and get it from your application.
Create the alias name in the server for the WSLD file that should be point outin the server location .Create the alias in Visual Admin -> Destinations->Http
try this to call the webservice by generic
final InitialContext ctx = new InitialContext();
final DestinationService dstService = (DestinationService)ctx.lookup(DestinationService.JNDI_KEY);
if (dstService== null)
throw new NamingException ("Destination service not available");
final Destination destination = dstService.getDestination("HTTP","WEBSERVICE NAME");
final HTTPDestination httpDestination = (HTTPDestination) destination;
HttpURLConnection httpConnection = httpDestination.getURLConnection();
String xyz = String.valueOf(httpConnection.getURL());
Request_AdvLocationVer1ViDocument_getLocation obj=wdContext.currentRequest_AdvLocationVer1ViDocument_getLocationElement().modelObject();
obj._setHTTPDestinationName("WEBSERVICE NAME");
obj._setEndPoint(xyz);
obj.execute();
Pls see the thread
Kind Regards,
Mukesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.