com.eviware.soapui.impl.wsdl.support.soap
Class SoapUtils

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.support.soap.SoapUtils

public class SoapUtils
extends java.lang.Object

SOAP-related utility-methods..

Author:
ole.matzura

Constructor Summary
SoapUtils()
           
 
Method Summary
static WsdlOperation findOperationForRequest(SoapVersion soapVersion, java.lang.String soapAction, org.apache.xmlbeans.XmlObject requestContent, java.util.List<Interface> interfaces, boolean requireSoapVersionMatch, boolean requireSoapActionMatch)
           
static org.apache.xmlbeans.XmlObject getBodyElement(org.apache.xmlbeans.XmlObject messageObject, SoapVersion soapVersion)
           
static org.apache.xmlbeans.XmlObject getContentElement(org.apache.xmlbeans.XmlObject messageObject, SoapVersion soapVersion)
           
static java.lang.String getSoapAction(SoapVersion soapVersion, StringToStringMap headers)
           
static SoapVersion initSoapVersion(java.lang.String contentType)
          Init soapversion from content-type header.. should envelope be checked and/or override?
static boolean isSoapFault(java.lang.String responseContent, SoapVersion soapVersion)
           
static java.lang.String removeEmptySoapHeaders(java.lang.String content, SoapVersion soapVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapUtils

public SoapUtils()
Method Detail

isSoapFault

public static boolean isSoapFault(java.lang.String responseContent,
                                  SoapVersion soapVersion)
                           throws org.apache.xmlbeans.XmlException
Throws:
org.apache.xmlbeans.XmlException

initSoapVersion

public static SoapVersion initSoapVersion(java.lang.String contentType)
Init soapversion from content-type header.. should envelope be checked and/or override?


getSoapAction

public static java.lang.String getSoapAction(SoapVersion soapVersion,
                                             StringToStringMap headers)

getBodyElement

public static org.apache.xmlbeans.XmlObject getBodyElement(org.apache.xmlbeans.XmlObject messageObject,
                                                           SoapVersion soapVersion)
                                                    throws org.apache.xmlbeans.XmlException
Throws:
org.apache.xmlbeans.XmlException

getContentElement

public static org.apache.xmlbeans.XmlObject getContentElement(org.apache.xmlbeans.XmlObject messageObject,
                                                              SoapVersion soapVersion)
                                                       throws org.apache.xmlbeans.XmlException
Throws:
org.apache.xmlbeans.XmlException

findOperationForRequest

public static WsdlOperation findOperationForRequest(SoapVersion soapVersion,
                                                    java.lang.String soapAction,
                                                    org.apache.xmlbeans.XmlObject requestContent,
                                                    java.util.List<Interface> interfaces,
                                                    boolean requireSoapVersionMatch,
                                                    boolean requireSoapActionMatch)
                                             throws org.apache.xmlbeans.XmlException,
                                                    DispatchException,
                                                    java.lang.Exception
Throws:
org.apache.xmlbeans.XmlException
DispatchException
java.lang.Exception

removeEmptySoapHeaders

public static java.lang.String removeEmptySoapHeaders(java.lang.String content,
                                                      SoapVersion soapVersion)
                                               throws org.apache.xmlbeans.XmlException
Throws:
org.apache.xmlbeans.XmlException


Copyright © 2005-2008 eviware.com. All Rights Reserved.