org.weblab_project.core.util
Class ServiceUtil

java.lang.Object
  extended by org.weblab_project.core.util.ServiceUtil

public class ServiceUtil
extends java.lang.Object

Util class for changing the generated web services client address.

Author:
EADS 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 ContentConsumer getContentConsumerService(java.net.URL WSDLLocation, java.net.URL contentConsumerEndpointAddress)
          Build a ContentConsumer service from WSDL and web Service URL.
static ContentProvider getContentProviderService(java.net.URL WSDLLocation, java.net.URL contentProviderEndpointAddress)
          Build a ContentProvider 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 Searcher getSearcherService(java.net.URL WSDLLocation, java.net.URL searcherEndpointAddress)
          Build a Searcher 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).

getContentConsumerService

public static ContentConsumer getContentConsumerService(java.net.URL WSDLLocation,
                                                        java.net.URL contentConsumerEndpointAddress)
Build a ContentConsumer service from WSDL and web Service URL.

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

getContentProviderService

public static ContentProvider getContentProviderService(java.net.URL WSDLLocation,
                                                        java.net.URL contentProviderEndpointAddress)
Build a ContentProvider service from WSDL and web Service URL.

Parameters:
WSDLLocation - The WSDL Location.
contentProviderEndpointAddress - The new endpoint address to be affected (using setEndpointAddress(Object, String, String).
Returns:
The ContentProvider stub using right SOAP action, WSDL location and endpoint address.
WARNING:
Will not work if your ContentProvider 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).


Copyright © 2004-2010. All Rights Reserved.