Changing End point address of web service in ADF

ADF, Java, Webservice By Jun 22, 2013 No Comments

Below code explains how to change the web service end point through program. 
serviceRequestService = new ServiceRequestService();
serviceRequestPortType =
BindingProvider bp =
 Here is the explanation for
this code.
  • Get port object of the web service
  • Type cast the port object to
    BindingProvider object 
  • BindingProvider class provides
    a member method getRequestContext() which returns a map
  • This map holds all the
    attributes of the request context
  • Overwrite end point with new
    web service url which will replace the new end point with the old one.

Note: This code works only if the client style is RPC.

(Visited 1 times, 1 visits today)

No Comments

Leave a comment