com.sun.xml.registry.ebxml
Class SoapMessenger

java.lang.Object
  extended bycom.sun.xml.registry.ebxml.SoapMessenger

public class SoapMessenger
extends java.lang.Object

Class is responsible for communicating w/ registry using SOAP Implementation private class


Method Summary
 void addAttachment(javax.xml.soap.SOAPMessage msg, java.lang.String id, javax.activation.DataHandler dh, java.lang.String mimeType)
           
 BulkResponseImpl sendSoapRequest(java.lang.String requestString)
          Send a SOAP request to the registry server.
 BulkResponseImpl sendSoapRequest(java.lang.String requestString, java.util.HashMap attachments)
          Send a SOAP request to the registry server.
 BulkResponseImpl sendSoapRequest(java.lang.String requestString, java.util.HashMap attachments, boolean doSignature)
          Send a SOAP request to the registry server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sendSoapRequest

public BulkResponseImpl sendSoapRequest(java.lang.String requestString)
                                 throws javax.xml.registry.JAXRException
Send a SOAP request to the registry server. Main entry point for this class.

Parameters:
requestString - String that will be placed in the body of the SOAP message to be sent to the server
Returns:
BulkResponseImpl that represents the response from the server
Throws:
javax.xml.registry.JAXRException

sendSoapRequest

public BulkResponseImpl sendSoapRequest(java.lang.String requestString,
                                        java.util.HashMap attachments)
                                 throws javax.xml.registry.JAXRException
Send a SOAP request to the registry server. Main entry point for this class.

Parameters:
requestString - String that will be placed in the body of the SOAP message to be sent to the server
attachments - HashMap consisting of entries each of which corresponds to an attachment where the entry key is the ContentId and the entry value is a javax.activation.DataHandler of the attachment. A parameter value of null means no attachments.
Returns:
BulkResponseImpl that represents the response from the server
Throws:
javax.xml.registry.JAXRException

sendSoapRequest

public BulkResponseImpl sendSoapRequest(java.lang.String requestString,
                                        java.util.HashMap attachments,
                                        boolean doSignature)
                                 throws javax.xml.registry.JAXRException
Send a SOAP request to the registry server. Main entry point for this class.

Parameters:
requestString - String that will be placed in the body of the SOAP message to be sent to the server
attachments - HashMap consisting of entries each of which corresponds to an attachment where the entry key is the ContentId and the entry value is a javax.activation.DataHandler of the attachment. A parameter value of null means no attachments.
Returns:
BulkResponseImpl that represents the response from the server
Throws:
javax.xml.registry.JAXRException

addAttachment

public void addAttachment(javax.xml.soap.SOAPMessage msg,
                          java.lang.String id,
                          javax.activation.DataHandler dh,
                          java.lang.String mimeType)
                   throws java.io.FileNotFoundException,
                          javax.mail.MessagingException,
                          com.sun.ebxml.registry.RegistryException
Throws:
java.io.FileNotFoundException
javax.mail.MessagingException
com.sun.ebxml.registry.RegistryException


Copyright © 2001-2004 OASIS. All Rights Reserved.