public class JaxWsHandler extends SoapClientHandler<BindingProvider>
| Modifier | Constructor and Description |
|---|---|
protected |
JaxWsHandler(com.google.inject.Provider<JaxWsSoapContextHandler> contextHandlerProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearHeaders(BindingProvider soapClient)
Clears all of the SOAP headers from the given SOAP client.
|
BindingProvider |
createSoapClient(SoapServiceDescriptor soapServiceDescriptor)
Creates a SOAP client using a SOAP service descriptor.
|
SOAPHeaderElement |
createSoapHeaderElement(QName qName)
JAX-WS does not support use of this method.
|
String |
getEndpointAddress(BindingProvider soapClient) |
Object |
getHeader(BindingProvider soapClient,
String headerName)
Returns a SOAP header from the given SOAP client, if it exists.
|
RemoteCallReturn |
invokeSoapCall(SoapCall<BindingProvider> soapCall)
Invoke a SOAP call.
|
void |
putAllHttpHeaders(BindingProvider soapClient,
Map<String,String> headersMap) |
void |
setCompression(BindingProvider soapClient,
boolean compress)
Set whether SOAP requests should use compression.
|
void |
setEndpointAddress(BindingProvider soapClient,
String endpointAddress)
Sets the endpoint address of the given SOAP client.
|
void |
setHeader(BindingProvider soapClient,
String namespace,
String headerName,
Object headerValue) |
void |
setHeaderChildString(BindingProvider soapClient,
String headerName,
String childNamespace,
String childName,
String childValue)
Adds a child text node named childName to the existing header named headerName.
|
void |
setRequestTimeout(BindingProvider bindingProvider,
int timeout)
Sets properties into the message context to alter the timeout on App Engine.
|
getSoapClientMethod, invoke, processSoapArguments@Inject protected JaxWsHandler(com.google.inject.Provider<JaxWsSoapContextHandler> contextHandlerProvider)
contextHandlerProvider - a provider which produces context handlerspublic void setEndpointAddress(BindingProvider soapClient, String endpointAddress)
soapClient - the SOAP client to set the endpoint address forendpointAddress - the target endpoint addresspublic Object getHeader(BindingProvider soapClient, String headerName)
soapClient - the SOAP client to check for the given headerheaderName - the name of the header being looked forpublic void clearHeaders(BindingProvider soapClient)
soapClient - the client to remove the headers frompublic void setHeader(BindingProvider soapClient, String namespace, String headerName, Object headerValue)
public void setHeaderChildString(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(BindingProvider soapClient, Map<String,String> headersMap)
public void setCompression(BindingProvider soapClient, boolean compress)
soapClient - the client to set compression settings forcompress - whether or not to use compressionpublic BindingProvider createSoapClient(SoapServiceDescriptor soapServiceDescriptor) throws ServiceException
soapServiceDescriptor - the descriptor to use for creating a clientServiceException - thrown if the SOAP client cannot be createdpublic void setRequestTimeout(BindingProvider bindingProvider, int timeout)
public RemoteCallReturn invokeSoapCall(SoapCall<BindingProvider> soapCall)
soapCall - the call to make to a SOAP web servicepublic String getEndpointAddress(BindingProvider soapClient)
public SOAPHeaderElement createSoapHeaderElement(QName qName)
Copyright © 2023. All rights reserved.