public class WSHandlerBean
extends java.lang.Object
implements javax.ejb.SessionBean
Constructor and Description |
---|
WSHandlerBean() |
Modifier and Type | Method and Description |
---|---|
void |
ejbActivate() |
void |
ejbCreate() |
void |
ejbPassivate() |
void |
ejbRemove() |
byte[] |
invoke(byte[] payload,
java.lang.String serviceName,
java.lang.String epURL,
java.lang.String action,
java.lang.String soapVersion,
java.lang.String httpUser,
java.lang.String httpPassword,
java.lang.String mep,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> httpHeaders,
int readTimeout,
java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> soapHeaders,
java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> responseSOAPHeaders)
Invoke the target web service.
|
void |
setSessionContext(javax.ejb.SessionContext ctx) |
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
public byte[] invoke(byte[] payload, java.lang.String serviceName, java.lang.String epURL, java.lang.String action, java.lang.String soapVersion, java.lang.String httpUser, java.lang.String httpPassword, java.lang.String mep, java.util.Map<java.lang.String,java.util.List<java.lang.String>> httpHeaders, int readTimeout, java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> soapHeaders, java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> responseSOAPHeaders)
payload
- - the xml payload for the SOAP messageserviceName
- - the name of the target web serviceepURL
- - the endpoint url for the target web serviceaction
- - the soap action value to be used for the invocationsoapVersion
- - the soap version - SOAP11 or SOAP12httpUser
- - the http user namehttpPassword-
- the http passwordmep
- - the message exchange patternhttpHeaders
- - the http headersreadTimeout
- - the http read timeoutjava.lang.Exception