ActuateAPI interface extends javax.xml.rpc.Service and defines the methods that get the URL for an Actuate SOAP port. The ActuateAPILocator class implements ActuateAPI interface to bind the SOAP port to a physical address. It returns this address using getActuateSoapPortAddress( ), as shown in the following code:
public java.lang.String getActuateSoapPortAddress( ) {
return ActuateSoapPort_address;
}
ActuateAPI interface specifies two versions of getActuateSoapPort( ) method to access a physical address. ActuateAPILocator.getActuateSoapPort( ) returns the default address set using attribute, ActuateSoapPort_address, as shown in the following code:
public com.actuate.schemas.ActuateSoapPort_PortType getActuateSoapPort( )
throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(ActuateSoapPort_address);
}
catch (java.net.MalformedURLException e) {
thrownew javax.xml.rpc.ServiceException(e);
}
return getActuateSoapPort(endpoint);
}
The overloaded version of ActuateAPILocator.getActuateSoapPort(java.net.URL portAddress) accepts a URL as a parameter. This version creates the service using the URL parameter as the endpoint, as shown in the following code:
public com.actuate.schemas.ActuateSoapPort_PortType getActuateSoapPort (java.net.URL portAddress) throws javax.xml.rpc.ServiceException {