it.eng.rdlab.soa3.pm.connector.utils
Class SoapUtils

java.lang.Object
  extended by it.eng.rdlab.soa3.pm.connector.utils.SoapUtils

public class SoapUtils
extends Object

Utilities to manage soap messages

Author:
Ciro Formisano (ENG)

Constructor Summary
SoapUtils()
           
 
Method Summary
static SOAPMessage generateSoapMessage(Document document)
          Generates a SOAP Message object starting from a dom object
static void main(String[] args)
           
static SOAPMessage performCall(SOAPMessage message, String url)
          Executes a SOAP call
static String soapMessage2String(SOAPMessage soapMessage)
          Translates a soap message object into string
 
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

soapMessage2String

public static String soapMessage2String(SOAPMessage soapMessage)
                                 throws Exception
Translates a soap message object into string

Parameters:
soapMessage - a SOAP message object
Returns:
a String representing the message
Throws:
Exception - if something goes wrong

generateSoapMessage

public static SOAPMessage generateSoapMessage(Document document)
                                       throws Exception
Generates a SOAP Message object starting from a dom object

Parameters:
document - the dom object
Returns:
the SOAP message object
Throws:
SOAPException - if it is impossible to generate the SOAP object
Exception - if something goes wrong

performCall

public static SOAPMessage performCall(SOAPMessage message,
                                      String url)
                               throws UnsupportedOperationException,
                                      SOAPException
Executes a SOAP call

Parameters:
message - the message
url - the target url
Returns:
the response message
Throws:
UnsupportedOperationException
SOAPException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.