public class AxisHandler extends SoapClientHandler<org.apache.axis.client.Stub>
Constructor and Description |
---|
AxisHandler(org.apache.axis.EngineConfigurationFactory engineConfigurationFactory,
RequestInfoXPathSet requestInfoXPathSet,
ResponseInfoXPathSet responseInfoXPathSet) |
Modifier and Type | Method and Description |
---|---|
void |
clearHeaders(org.apache.axis.client.Stub soapClient)
Clears all of the SOAP headers from the given SOAP client.
|
org.apache.axis.client.Stub |
createSoapClient(SoapServiceDescriptor soapServiceDescriptor)
Creates a SOAP client using a SOAP service descriptor.
|
SOAPHeaderElement |
createSoapHeaderElement(QName qName)
Creates a SOAP header element object specific to the framework that this
handler works with.
|
String |
getEndpointAddress(org.apache.axis.client.Stub soapClient)
Gets the endpoint address on the SOAP client.
|
Object |
getHeader(org.apache.axis.client.Stub soapClient,
String headerName)
Returns a SOAP header from the given SOAP client, if it exists.
|
RemoteCallReturn |
invokeSoapCall(SoapCall<org.apache.axis.client.Stub> soapCall)
Invoke a SOAP call.
|
void |
putAllHttpHeaders(org.apache.axis.client.Stub soapClient,
Map<String,String> headersMap)
Puts all headers into the existing HTTP headers of the SOAP client,
overwriting any existing header keys.
|
void |
setCompression(org.apache.axis.client.Stub soapClient,
boolean compress)
Set whether SOAP requests should use compression.
|
void |
setEndpointAddress(org.apache.axis.client.Stub soapClient,
String endpointAddress)
Sets the endpoint address of the given SOAP client.
|
void |
setHeader(org.apache.axis.client.Stub soapClient,
String namespace,
String headerName,
Object headerValue)
Sets a header on the SOAP client.
|
void |
setHeaderChild(org.apache.axis.client.Stub soapClient,
String parentHeaderName,
String childName,
Object childValue)
Updates the child attribute of headerName named childName to childValue.
|
void |
setRequestTimeout(org.apache.axis.client.Stub soapClient,
int timeout)
Sets the read timeout of the given SOAP client.
|
getSoapClientMethod, invoke, processSoapArguments
@Inject public AxisHandler(org.apache.axis.EngineConfigurationFactory engineConfigurationFactory, RequestInfoXPathSet requestInfoXPathSet, ResponseInfoXPathSet responseInfoXPathSet)
public void setEndpointAddress(org.apache.axis.client.Stub soapClient, String endpointAddress)
soapClient
- the SOAP client to set the endpoint address forendpointAddress
- the target endpoint addresspublic void setRequestTimeout(org.apache.axis.client.Stub soapClient, int timeout)
soapClient
- the SOAP client to set the read timeout fortimeout
- the timeout in millisecondspublic Object getHeader(org.apache.axis.client.Stub soapClient, String headerName)
soapClient
- the SOAP client to check for the given headerheaderName
- the name of the header being looked forpublic void clearHeaders(org.apache.axis.client.Stub soapClient)
soapClient
- the client to remove the headers frompublic void setHeader(org.apache.axis.client.Stub soapClient, String namespace, String headerName, Object headerValue)
SoapClientHandlerInterface
soapClient
- 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 setHeaderChild(org.apache.axis.client.Stub soapClient, String parentHeaderName, String childName, Object childValue)
soapClient
- the stubparentHeaderName
- the name of the parent headerchildName
- the name of the childchildValue
- the value for the childNullPointerException
- if no header exists named parentHeaderNamepublic void putAllHttpHeaders(org.apache.axis.client.Stub soapClient, Map<String,String> headersMap)
SoapClientHandlerInterface
soapClient
- 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(org.apache.axis.client.Stub soapClient, boolean compress)
soapClient
- the client to set compression settings forcompress
- whether or not to use compressionpublic org.apache.axis.client.Stub createSoapClient(SoapServiceDescriptor soapServiceDescriptor) throws ServiceException
soapServiceDescriptor
- the descriptor to use for creating a clientServiceException
- thrown if the SOAP client cannot be createdpublic RemoteCallReturn invokeSoapCall(SoapCall<org.apache.axis.client.Stub> soapCall)
soapCall
- the call to make to a SOAP web servicepublic String getEndpointAddress(org.apache.axis.client.Stub soapClient)
SoapClientHandlerInterface
SoapClientHandlerInterface.getEndpointAddress(Object)
public SOAPHeaderElement createSoapHeaderElement(QName qName)
SoapClientHandlerInterface
qName
- qualified name of the header elementSoapClientHandlerInterface.createSoapHeaderElement(QName)
Copyright © 2018. All Rights Reserved.