Package com.sun.xml.ws.api.model.wsdl
Interface WSDLBoundPortType
-
- All Superinterfaces:
WSDLExtensible,WSDLFeaturedObject,WSDLObject
- All Known Subinterfaces:
EditableWSDLBoundPortType
- All Known Implementing Classes:
WSDLBoundPortTypeImpl
public interface WSDLBoundPortType extends WSDLFeaturedObject, WSDLExtensible
WSDLPortTypebound with a specific binding.- Author:
- Vivek Pandey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WSDLBoundOperationget(QName operationName)Gets theWSDLBoundOperationfor a given operation nameParameterBindinggetBinding(QName operation, String part, jakarta.jws.WebParam.Mode mode)Gets theParameterBindingfor a given operation, part name and the direction - IN/OUTBindingIDgetBindingId()Returns the binding ID.Iterable<? extends WSDLBoundOperation>getBindingOperations()Gets theWSDLBoundOperationsQNamegetName()Gets the name of the wsdl:binding@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.WSDLBoundOperationgetOperation(String namespaceUri, String localName)Gets the bound operation in this port for a tag name.WSDLModelgetOwner()Gets theWSDLModelthat owns this port type.WSDLPortTypegetPortType()Gets theWSDLPortTypeassociated with the wsdl:bindingQNamegetPortTypeName()Gets the wsdl:binding@type value, same asWSDLPortType.getName()jakarta.jws.soap.SOAPBinding.StylegetStyle()Is this a document style or RPC style? Since we only support literal and not encoding, this means either doc/lit or rpc/lit.-
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLExtensible
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
-
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLFeaturedObject
addFeature, getFeature, getFeatures
-
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject
getLocation
-
-
-
-
Method Detail
-
getName
QName getName()
Gets the name of the wsdl:binding@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.
-
get
WSDLBoundOperation get(QName operationName)
Gets theWSDLBoundOperationfor a given operation name- Parameters:
operationName- non-null operationName- Returns:
- null if a
WSDLBoundOperationis not found
-
getPortTypeName
QName getPortTypeName()
Gets the wsdl:binding@type value, same asWSDLPortType.getName()
-
getPortType
WSDLPortType getPortType()
Gets theWSDLPortTypeassociated with the wsdl:binding
-
getBindingOperations
Iterable<? extends WSDLBoundOperation> getBindingOperations()
Gets theWSDLBoundOperations
-
getStyle
@NotNull jakarta.jws.soap.SOAPBinding.Style getStyle()
Is this a document style or RPC style? Since we only support literal and not encoding, this means either doc/lit or rpc/lit.
-
getBindingId
BindingID getBindingId()
Returns the binding ID. This would typically determined by the binding extension elements in wsdl:binding.
-
getOperation
@Nullable WSDLBoundOperation getOperation(String namespaceUri, String localName)
Gets the bound operation in this port for a tag name. Here the operation would be the one whose input part descriptor bound to soap:body is same as the tag name except for rpclit where the tag name would beWSDLBoundOperation.getName().If you have a
Messageand trying to figure out which operation it belongs to, always useMessage.getOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundPortType), as that performs better.For example this can be used in the case when a message receipient can get the
WSDLBoundOperationfrom the payload tag name.namespaceUri and the local name both can be null to get the WSDLBoundOperation that has empty body - there is no payload. According to BP 1.1 in a port there can be at MOST one operation with empty body. Its an error to have namespace URI non-null but local name as null.
- Parameters:
namespaceUri- namespace of the payload element.localName- local name of the payload- Returns:
- null if no operation with the given tag name is found.
- Throws:
NullPointerException- if localName is null and namespaceUri is not.
-
getBinding
ParameterBinding getBinding(QName operation, String part, jakarta.jws.WebParam.Mode mode)
Gets theParameterBindingfor a given operation, part name and the direction - IN/OUT- Parameters:
operation- wsdl:operation@name value. Must be non-null.part- wsdl:part@name such as value of soap:header@part. Must be non-null.mode-WebParam.Mode.INorWebParam.Mode.OUT. Must be non-null.- Returns:
- null if the binding could not be resolved for the part.
-
-