org.ow2.weblab.core.extended.util
Class ServiceUtil

java.lang.Object
  extended by org.ow2.weblab.core.extended.util.ServiceUtil

public class ServiceUtil
extends java.lang.Object

Util class for changing the generated web services client address.

Author:
Cassidian WebLab Team
Date:
2008-07-28

Method Summary
static Analyser getAnalyserService(java.net.URL WSDLLocation, java.net.URL analyserEndpointAddress)
          Build a Analyser service from WSDL and web Service URL.
static Indexer getIndexerService(java.net.URL WSDLLocation, java.net.URL indexerEndpointAddress)
          Build a Indexer service from WSDL and web Service URL.
static QueueManager getQueueManagerService(java.net.URL WSDLLocation, java.net.URL queueManagerEndpointAddress)
          Build a QueueManager service from WSDL and web Service URL.
static Searcher getSearcherService(java.net.URL WSDLLocation, java.net.URL searcherEndpointAddress)
          Build a Searcher service from WSDL and web Service URL.
static SourceReader getSourceReaderService(java.net.URL WSDLLocation, java.net.URL searcherEndpointAddress)
          Build a SourceReader service from WSDL and web Service URL.
static void setEndpointAddress(java.lang.Object port, java.lang.String newAddress, java.lang.String SOAPAction)
          Replaces the SOAPAction and endpoint address of port by SOAPAction and newAddress.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setEndpointAddress

public static void setEndpointAddress(java.lang.Object port,
                                      java.lang.String newAddress,
                                      java.lang.String SOAPAction)
Replaces the SOAPAction and endpoint address of port by SOAPAction and newAddress.

Parameters:
port - An instance of BindingProvider to have it's SOAPAction and endpoint address changed.
newAddress - The endpoint address to be used.
SOAPAction - The SOAPAction to be used.

getAnalyserService

public static Analyser getAnalyserService(java.net.URL WSDLLocation,
                                          java.net.URL analyserEndpointAddress)
Build a Analyser service from WSDL and web Service URL.

Parameters:
WSDLLocation - The WSDL Location.
analyserEndpointAddress - The new endpoint address to be affected (using setEndpointAddress(Object, String, String).
Returns:
The Analyser stub using right SOAP action, WSDL location and endpoint address.
WARNING:
Will not work if your Analyser contains more than one exposed method (SOAP Action).

getQueueManagerService

public static QueueManager getQueueManagerService(java.net.URL WSDLLocation,
                                                  java.net.URL queueManagerEndpointAddress)
Build a QueueManager service from WSDL and web Service URL.

Parameters:
WSDLLocation - The WSDL Location.
queueManagerEndpointAddress - The new endpoint address to be affected (using setEndpointAddress(Object, String, String).
Returns:
The QueueManager stub using right SOAP action, WSDL location and endpoint address.
WARNING:
Will not work if your QueueManager contains more than one exposed method (SOAP Action).

getIndexerService

public static Indexer getIndexerService(java.net.URL WSDLLocation,
                                        java.net.URL indexerEndpointAddress)
Build a Indexer service from WSDL and web Service URL.

Parameters:
WSDLLocation - The WSDL Location.
indexerEndpointAddress - The new endpoint address to be affected (using setEndpointAddress(Object, String, String).
Returns:
The Indexer stub using right SOAP action, WSDL location and endpoint address.
WARNING:
Will not work if your Indexer contains more than one exposed method (SOAP Action).

getSearcherService

public static Searcher getSearcherService(java.net.URL WSDLLocation,
                                          java.net.URL searcherEndpointAddress)
Build a Searcher service from WSDL and web Service URL.

Parameters:
WSDLLocation - The WSDL Location.
searcherEndpointAddress - The new endpoint address to be affected (using setEndpointAddress(Object, String, String).
Returns:
The Searcher stub using right SOAP action, WSDL location and endpoint address.
WARNING:
Will not work if your Searcher contains more than one exposed method (SOAP Action).

getSourceReaderService

public static SourceReader getSourceReaderService(java.net.URL WSDLLocation,
                                                  java.net.URL searcherEndpointAddress)
Build a SourceReader service from WSDL and web Service URL.

Parameters:
WSDLLocation - The WSDL Location.
searcherEndpointAddress - The new endpoint address to be affected (using setEndpointAddress(Object, String, String).
Returns:
The SourceReader stub using right SOAP action, WSDL location and endpoint address.
WARNING:
Will not work if your SourceReader contains more than one exposed method (SOAP Action).


Copyright © 2004-2010. All Rights Reserved.