com.ibm.websphere.srm
Interface EndpointReferenceHelper
- public interface EndpointReferenceHelper
An interface to a helper class that can be used to manipulate EndpointReferences,
and to create other objects, such as objects that can be used to invoke services
on the endpoint defined by the EndpointReference. Use the EndpointReferenceHelperFactory
to obtain an concrete implementation of this interface.
createWSIFService
public org.apache.wsif.WSIFService createWSIFService(javax.wsdl.Definition wsdlDefinition,
EndpointReferenceType endpointReference)
throws InvalidWSDLDefinitionException,
InvalidEndpointReferenceException,
WSDLDefinitionEndpointReferenceMismatchException,
WSIFServiceCreationFailedException
- Method createWSIFService. This method is used to create an invokeable org.apache.WSIFService
from an EndpointReference and a template (partial) javax.wsdl.Definition object.
The Function/Exception scenarios are assuming that the javax.wsdl.Definition Object is from a
partial WSDL or full WSDL which will be narrowed.. This will change when further functional scenarios are incorporated into
this method (noted 11/07/2003).
If no Service/Port specified in the javax.wsdl.Definition (partial WSDL) then a "defaultService"
and "defaultPort" are created for the WSIFService.
- Parameters:
wsdlDefinition
- A template (partial) WSDL documentendpointReference
- An EndpointReference used to qualify the partial wsdlDefinition
- Returns:
- WSIFService
- Throws:
InvalidWSDLDefinitionException
- thrown if the WSDL Definition does not contain a PortType
and also if the WSDL Definition does not contain a Binding (SOAP binding required by default)
InvalidEndpointReferenceException
- thrown if the EndpointReference is invalid (has null
or empty Address)
WSDLDefinitionEndpointReferenceMismatchException
- thrown if the EndpointReference and
Definition Objects supplied are incompatible. This could be because:
(a) A PortType corresponding to the EndpointReference specified PortType could not
be found in the Definition
(b) A PortType was not specified in the EndpointReference when multiple PortTypes were
specified in the Definition
(c) A Service corresponding to the EndpointReference specified Service could not
be found in the Definition
(d) A Service was not specified in the EndpointReference when multiple Services were
specified in the Definition
WSIFServiceCreationFailedException
- thrown if there was a problem creating the WSIFService
to be returned, the underlying WSIFException message is sent as the message in this
WSIFServiceCreationFailedException