Skip to Content

WSDL address - dev, qat, prd - upd

Hi,

in my WSDL file I can see section:

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 08, 2006 at 06:47 AM

    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

    web-services-http-destination-not-getting-resloved

    Kind Regards,

    Mukesh.

    Add comment
    10|10000 characters needed characters exceeded