cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL address - dev, qat, prd - upd

MichalKrawczyk
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.