March 08, 2002
Updated April 15, 2002
Description
Maintenance revision of the JavaTM API for XML Messaging, version 1.1.
Specification Lead
Nicholas Kassem, Sun Microsystems, Inc.
Feedback
This minor maintenance release has two main goals. The first is to increase the usage and applicability of javax.xml.soap package and the second is to enhance the XML fragment model of the JAXM 1.0 specification.
Accepted changes
In order to accomplish the stated goals, the following changes were accepted:
public abstract SOAPMessage call(SOAPMessage request,Object to) throws SOAPException
Sends the given message to the specified endpoint and blocks until a response is received.
Parameters:
request - the SOAPMessage object to be sent
to - an Object that identifies where the message should be sent - objects of type java.lang.String and java.net.URL must be supported.Returns:
the SOAPMessage object that is the response to the message that was sent
Throws:
SOAPException if there is a SOAP error
In addition it was accepted that the newInstance method of SOAPConnectionFactory throw an UnsupportedOperationException in order to handle cases where an implementation chooses not to support the SOAPConnection.call() functionality.
The URLEndpoint object from the javax.xml.messaging package was retained for compatibility reasons. The JAXM 1.1 specification will require that the SOAPConnectionFactory produce SOAPConnection objects that support URLEndpoint objects.
The class details are as follows:
SOAPFactory is a factory for creating various objects that exist in the SOAP XML tree. SOAPFactory can be used to create XML fragments that will eventually be associated with the SOAPPart of a message. These fragments can be inserted as children of the SOAPHeaderElement or SOAPBodyElement or SOAPEnvelope. SOAPFactory also has methods to create javax.xml.soap.Detail objects as well as java.xml.soap.Name objects.The SOAPFactory class will support the following methods:
- public abstract SOAPElement createElement(Name name) throws SOAPException
Create a SOAPElement object initialized with the given Name object.
Parameters:
name - a Name object with the XML name for the new element
Returns:
the new SOAPElement object that was created
Throws:
SOAPException - if there is an error in creating the SOAPElement object- public abstract SOAPElement createElement(java.lang.String localName) throws SOAPExceptionCreate
a SOAPElement object initialized with the given local name.
Parameters:
localName - a String giving the local name for the new element
Returns:
the new SOAPElement object that was created
Throws:
SOAPException - if there is an error in creating the SOAPElement object- public abstract SOAPElement createElement(java.lang.String localName,java.lang.String prefix,java.lang.String uri) throws SOAPException
Create a new SOAPElement object with the given local name, prefix and uri.
Parameters:
localName - a String giving the local name for the new element
prefix - the prefix for this SOAPElement
uri - a String giving the URI of the namespace to which the new element belongs
Throws:
SOAPException - if there is an error in creating the SOAPElement object- public abstract Detail createDetail()
throws SOAPExceptionCreates a new Detail object which serves as a container for DetailEntry objects. This factory method creates Detail objects for use in situations where it is not practical to use the SOAPFault abstraction.
Returns:
a Detail object
Throws:
SOAPException - if there is a SOAP error- public abstract Name createName(java.lang.String localName,
java.lang.String prefix,java.lang.String uri)throws SOAPExceptionCreates a new Name object initialized with the given local name, namespace prefix, and namespace URI.
This factory method creates Name objects for use in situations where it is not practical to use the SOAPEnvelope abstraction.Parameters:
localName - a String giving the local name
prefix - a String giving the prefix of the namespace
uri - a String giving the URI of the namespace
Returns:
a Name object initialized with the given local name, namespace prefix, and namespace URI
Throws:
SOAPException - if there is a SOAP error- public abstract Name createName(java.lang.String localName)
throws SOAPExceptionCreates a new Name object initialized with the given local name.
This factory method creates Name objects for use in situations where it is not practical to use the SOAPEnvelope abstraction.Parameters:
localName - a String giving the local name
Returns:
a Name object initialized with the given local name
Throws:
SOAPException - if there is a SOAP error- public static SOAPFactory newInstance()
throws SOAPExceptionCreates a new instance of SOAPFactory.
Returns:
a new instance of a SOAPFactory
Throws:
SOAPException - if there was an error creating the default SOAPFactory
Deferred Changes
The following change requests have been noted but were deferred for this maintenance release cycle: