public class JaxWsHandler extends SoapClientHandler<javax.xml.ws.BindingProvider>
| Modifier | Constructor and Description | 
|---|---|
| protected  | JaxWsHandler(JaxWsSoapContextHandlerFactory contextHandlerFactory)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clearHeaders(javax.xml.ws.BindingProvider soapClient)Clears all of the SOAP headers from the given SOAP client. | 
| javax.xml.ws.BindingProvider | createSoapClient(SoapServiceDescriptor soapServiceDescriptor)Creates a SOAP client using a SOAP service descriptor. | 
| javax.xml.soap.SOAPHeaderElement | createSoapHeaderElement(QName qName)JAX-WS does not support use of this method. | 
| String | getEndpointAddress(javax.xml.ws.BindingProvider soapClient)Gets the endpoint address on the SOAP client. | 
| Object | getHeader(javax.xml.ws.BindingProvider soapClient,
         String headerName)Returns a SOAP header from the given SOAP client, if it exists. | 
| SoapCallReturn | invokeSoapCall(SoapCall<javax.xml.ws.BindingProvider> soapCall)Invoke a SOAP call. | 
| void | putAllHttpHeaders(javax.xml.ws.BindingProvider soapClient,
                 Map<String,String> headersMap)Puts all headers into the existing HTTP headers of the SOAP client,
 overwriting any existing header keys. | 
| void | setCompression(javax.xml.ws.BindingProvider soapClient,
              boolean compress)Set whether SOAP requests should use compression. | 
| void | setEndpointAddress(javax.xml.ws.BindingProvider soapClient,
                  String endpointAddress)Sets the endpoint address of the given SOAP client. | 
| void | setHeader(javax.xml.ws.BindingProvider soapClient,
         String namespace,
         String headerName,
         Object headerValue)Sets a header on the SOAP client. | 
| void | setHeaderChildString(javax.xml.ws.BindingProvider soapClient,
                    String headerName,
                    String childNamespace,
                    String childName,
                    String childValue)Adds a child text node named childName to the existing header named headerName. | 
getSoapClientMethod, invoke, processSoapArguments@Inject protected JaxWsHandler(JaxWsSoapContextHandlerFactory contextHandlerFactory)
contextHandlerFactory - a factory which produces context handlerspublic void setEndpointAddress(javax.xml.ws.BindingProvider soapClient, String endpointAddress)
soapClient - the SOAP client to set the endpoint address forendpointAddress - the target endpoint addresspublic Object getHeader(javax.xml.ws.BindingProvider soapClient, String headerName)
soapClient - the SOAP client to check for the given headerheaderName - the name of the header being looked forpublic void clearHeaders(javax.xml.ws.BindingProvider soapClient)
soapClient - the client to remove the headers frompublic void setHeader(javax.xml.ws.BindingProvider soapClient, String namespace, String headerName, Object headerValue)
SoapClientHandlerInterfacesoapClient - the SOAP client to set the header ofnamespace - the namespace of the headerheaderName - the name of the headerheaderValue - the value of the headerSoapClientHandlerInterface.setHeader(Object, String, String, Object)public void setHeaderChildString(javax.xml.ws.BindingProvider soapClient, String headerName, String childNamespace, String childName, String childValue)
soapClient - the binding providerheaderName - the name of the existing headerchildNamespace - the namespace of the new childchildName - the name of the new childchildValue - the value of the new childNullPointerException - if no header exists named headerNamepublic void putAllHttpHeaders(javax.xml.ws.BindingProvider soapClient, Map<String,String> headersMap)
SoapClientHandlerInterfacesoapClient - the SOAP client to set the headers onheadersMap - the map of headers in the form of header name to valueSoapClientHandlerInterface.putAllHttpHeaders(Object, Map)public void setCompression(javax.xml.ws.BindingProvider soapClient, boolean compress)
soapClient - the client to set compression settings forcompress - whether or not to use compressionpublic javax.xml.ws.BindingProvider createSoapClient(SoapServiceDescriptor soapServiceDescriptor) throws ServiceException
soapServiceDescriptor - the descriptor to use for creating a clientServiceException - thrown if the SOAP client cannot be createdpublic SoapCallReturn invokeSoapCall(SoapCall<javax.xml.ws.BindingProvider> soapCall)
soapCall - the call to make to a SOAP web servicepublic String getEndpointAddress(javax.xml.ws.BindingProvider soapClient)
SoapClientHandlerInterfaceSoapClientHandlerInterface.getEndpointAddress(Object)public javax.xml.soap.SOAPHeaderElement createSoapHeaderElement(QName qName)
qName - qualified name of the header elementSoapClientHandlerInterface.createSoapHeaderElement(QName)Copyright © 2015. All Rights Reserved.