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 SoapVersion deduceSoapVersion(java.lang.String requestContentType, java.lang.String requestContent)
           
static SoapVersion deduceSoapVersion(java.lang.String contentType, org.apache.xmlbeans.XmlObject xmlObject)
          Init soapversion from content-type header.. should envelope be checked and/or override?
static WsdlOperation findOperationForRequest(SoapVersion soapVersion, java.lang.String soapAction, org.apache.xmlbeans.XmlObject requestContent, java.util.List<WsdlOperation> operations, boolean requireSoapVersionMatch, boolean requireSoapActionMatch, Attachment[] attachments)
           
static WsdlOperation findOperationForResponse(SoapVersion soapVersion, java.lang.String soapAction, org.apache.xmlbeans.XmlObject responseContent, java.util.List<WsdlOperation> operations, 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 org.apache.xmlbeans.XmlObject getHeaderElement(org.apache.xmlbeans.XmlObject messageObject, SoapVersion soapVersion, boolean create)
           
static java.lang.String getSoapAction(SoapVersion soapVersion, StringToStringMap headers)
           
static boolean isSoapFault(java.lang.String responseContent, SoapVersion soapVersion)
           
static java.lang.String removeEmptySoapHeaders(java.lang.String content, SoapVersion soapVersion)
           
static java.lang.String transferSoapHeaders(java.lang.String requestContent, java.lang.String newRequest, 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

deduceSoapVersion

public static SoapVersion deduceSoapVersion(java.lang.String contentType,
                                            org.apache.xmlbeans.XmlObject xmlObject)
Init soapversion from content-type header.. should envelope be checked and/or override?

Parameters:
xmlObject -

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

getHeaderElement

public static org.apache.xmlbeans.XmlObject getHeaderElement(org.apache.xmlbeans.XmlObject messageObject,
                                                             SoapVersion soapVersion,
                                                             boolean create)
                                                      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<WsdlOperation> operations,
                                                    boolean requireSoapVersionMatch,
                                                    boolean requireSoapActionMatch,
                                                    Attachment[] attachments)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

findOperationForResponse

public static WsdlOperation findOperationForResponse(SoapVersion soapVersion,
                                                     java.lang.String soapAction,
                                                     org.apache.xmlbeans.XmlObject responseContent,
                                                     java.util.List<WsdlOperation> operations,
                                                     boolean requireSoapVersionMatch,
                                                     boolean requireSoapActionMatch)
                                              throws java.lang.Exception
Throws:
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

deduceSoapVersion

public static SoapVersion deduceSoapVersion(java.lang.String requestContentType,
                                            java.lang.String requestContent)

transferSoapHeaders

public static java.lang.String transferSoapHeaders(java.lang.String requestContent,
                                                   java.lang.String newRequest,
                                                   SoapVersion soapVersion)


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