com.bowstreet.util.soap
Class SOAPRequest

java.lang.Object
  extended by com.bowstreet.util.soap.GenericSoapRequest
      extended by com.bowstreet.util.soap.SOAPRequest

public class SOAPRequest
extends com.bowstreet.util.soap.GenericSoapRequest

Utility service for issuing a SOAP request. This is a utility class for making a SOAP request over HTTP using Apache SOAP. It is used by the WebApp ServiceCall builder (see com.bowstreet.builders.webapp.methods.ServiceCallMethods for how it drives this class). Here's a typical example of how to drive this class:

      SOAPRequest soapRequest = new SOAPRequest();
      soapRequest.setURL("http://hosting.msugs.ch/aravindc/BookPriceComparison.asmx");
      soapRequest.setMethodName("GetISBNForBookTitle");
      soapRequest.setMethodNamespaceURI("http://aravindcorera.org/webservices/");
      soapRequest.setSOAPAction("http://aravindcorera.org/webservices/GetISBNForBookTitle");
      IXml harry = XmlUtil.parseXml("" +
           "Harry Potter and the Sorcerer's Stone");
      soapRequest.addArgument("parameters", "com.bowstreet.util.IXml", harry);
      soapRequest.setStyle(SOAPRequest.STYLE_DOCUMENT_STYLE);
      IXml result = (IXml)soapRequest.invoke();
   


Field Summary
 
Fields inherited from class com.bowstreet.util.soap.GenericSoapRequest
SOAP_LITERAL_ENCODING, SOAP_SECTION5_ENCODING, STYLE_DOCUMENT_STYLE, STYLE_RPC_STYLE
 
Constructor Summary
SOAPRequest()
          Constructor
 
Method Summary
 void clear()
           
 java.lang.String getRequestEnvelope()
           
 java.lang.String getResponseEnvelope()
           
 java.lang.Object invoke()
           
 
Methods inherited from class com.bowstreet.util.soap.GenericSoapRequest
addArgument, addCookie, addHeader, getAdditionalReplyValues, getInstance, getReplyHeaders, getResponseCookies, overrideHost, overridePort, saveResponseHeaders, setComplexReplyNamespace, setComplexReplyType, setDoStats, setEncodingStyle, setForceStringReturnToIXML, setHTTPHeader, setLogLevel, setMethodName, setMethodNamespaceURI, setOperationInfo, setPassword, setProxyHost, setProxyPassword, setProxyPort, setProxyUser, setReplyName, setReplyType, setSchemaNamespaceURI, setSOAPAction, setStyle, setTimeout, setURL, setUsername
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPRequest

public SOAPRequest()
Constructor

Method Detail

clear

public void clear()
Specified by:
clear in class com.bowstreet.util.soap.GenericSoapRequest

getRequestEnvelope

public java.lang.String getRequestEnvelope()
Specified by:
getRequestEnvelope in class com.bowstreet.util.soap.GenericSoapRequest

getResponseEnvelope

public java.lang.String getResponseEnvelope()
Specified by:
getResponseEnvelope in class com.bowstreet.util.soap.GenericSoapRequest

invoke

public java.lang.Object invoke()
Specified by:
invoke in class com.bowstreet.util.soap.GenericSoapRequest


Copyright © 2009 IBM. All Rights Reserved.