xsul.invoker.soap_over_http
Class SoapHttpDynamicInfosetInvoker

java.lang.Object
  extended byxsul.invoker.http.HttpDynamicInfosetInvoker
      extended byxsul.invoker.soap_over_http.SoapHttpDynamicInfosetInvoker
All Implemented Interfaces:
DynamicInfosetInvoker, MessageInvoker
Direct Known Subclasses:
CapabilityInvoker, PasswordInvoker, SecurityRequestorInvoker, SignatureInvoker, XBeansDocumentInvoker

public class SoapHttpDynamicInfosetInvoker
extends HttpDynamicInfosetInvoker
implements MessageInvoker

This class allows to send SOAP (by default 1.1) to HTTP endpoint. Simply set endpoint location and execute invoke*(). Easy to change to use SOAP 1.2 by calling one methos.

Version:
$Revision: 1.10 $
Author:
Aleksander Slominski

Constructor Summary
SoapHttpDynamicInfosetInvoker()
           
SoapHttpDynamicInfosetInvoker(HttpClientConnectionManager connMgr)
           
SoapHttpDynamicInfosetInvoker(java.lang.String locationUrl)
           
 
Method Summary
 XmlElement extractBodyContent(XmlDocument respDoc)
           
 SoapUtil getSoapFragrance()
           
 XmlElement invokeMessage(XmlElement message)
          Message must contain exact XML to put inside SOAP 1.1 Body that is sent inside SOAP 1.1 Envelope to XML Web Service, the method returns result of service invocation as first child of returned Envelope/Body (or null if one-way operation).
 void setSoapFragrance(SoapUtil soapFragrance)
          Set what SOAP utility to use for wrapping message into SOAP Envelope Body If itis null no wrapping is done.
 XmlDocument wrapAsSoapDocument(XmlElement message)
           
 
Methods inherited from class xsul.invoker.http.HttpDynamicInfosetInvoker
getConnectionManager, getLocation, getSecureConnectionManager, invokeXml, setKeepAlive, setLocation, setSecureConnectionManager, setSoapAction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapHttpDynamicInfosetInvoker

public SoapHttpDynamicInfosetInvoker()

SoapHttpDynamicInfosetInvoker

public SoapHttpDynamicInfosetInvoker(java.lang.String locationUrl)
                              throws DynamicInfosetInvokerException

SoapHttpDynamicInfosetInvoker

public SoapHttpDynamicInfosetInvoker(HttpClientConnectionManager connMgr)
                              throws DynamicInfosetInvokerException
Method Detail

wrapAsSoapDocument

public XmlDocument wrapAsSoapDocument(XmlElement message)
                               throws DynamicInfosetInvokerException
Throws:
DynamicInfosetInvokerException

extractBodyContent

public XmlElement extractBodyContent(XmlDocument respDoc)

getSoapFragrance

public SoapUtil getSoapFragrance()

setSoapFragrance

public void setSoapFragrance(SoapUtil soapFragrance)
Set what SOAP utility to use for wrapping message into SOAP Envelope Body If itis null no wrapping is done.


invokeMessage

public XmlElement invokeMessage(XmlElement message)
                         throws DynamicInfosetInvokerException
Message must contain exact XML to put inside SOAP 1.1 Body that is sent inside SOAP 1.1 Envelope to XML Web Service, the method returns result of service invocation as first child of returned Envelope/Body (or null if one-way operation). Input message must be a standalone fragment (message.getParent() == null).

Specified by:
invokeMessage in interface MessageInvoker
Throws:
DynamicInfosetInvokerException


IU Extreme! Lab (http://www.extreme.indiana.edu)