You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2002/05/29 19:00:01 UTC
cvs commit: xml-axis/java/src/org/apache/axis/soap MessageFactoryImpl.java SOAPConnectionFactoryImpl.java SOAPConnectionImpl.java SOAPElementFactoryImpl.java
dims 02/05/29 10:00:01
Modified: java/src/javax/xml/soap MessageFactory.java
SOAPConnectionFactory.java SOAPElementFactory.java
java/src/org/apache/axis/message SOAPFaultElement.java
Added: java/src/org/apache/axis/message Detail.java
DetailEntry.java SOAPFault.java Text.java
java/src/org/apache/axis/soap MessageFactoryImpl.java
SOAPConnectionFactoryImpl.java
SOAPConnectionImpl.java SOAPElementFactoryImpl.java
Log:
- Adding Stubs/PlaceHolders (for concrete implementations) of the following javax.xml.soap interfaces and abstract classes.
javax.xml.soap.Detail
javax.xml.soap.DetailEntry
javax.xml.soap.SOAPFault
javax.xml.soap.Text
javax.xml.soap.MessageFactory
javax.xml.soap.SOAPConnection
javax.xml.soap.SOAPConnectionFactory
javax.xml.soap.SOAPElementFactory
Revision Changes Path
1.4 +1 -1 xml-axis/java/src/javax/xml/soap/MessageFactory.java
Index: MessageFactory.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/MessageFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- MessageFactory.java 22 Mar 2002 16:28:48 -0000 1.3
+++ MessageFactory.java 29 May 2002 17:00:00 -0000 1.4
@@ -204,7 +204,7 @@
/** */
private static final String DEFAULT_MESSAGE_FACTORY =
- "com.sun.xml.messaging.soap.MessageFactoryImpl";
+ "org.apache.axis.soap.MessageFactoryImpl";
/** */
private static final String MESSAGE_FACTORY_PROPERTY =
1.3 +1 -1 xml-axis/java/src/javax/xml/soap/SOAPConnectionFactory.java
Index: SOAPConnectionFactory.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPConnectionFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SOAPConnectionFactory.java 22 Mar 2002 16:28:48 -0000 1.2
+++ SOAPConnectionFactory.java 29 May 2002 17:00:00 -0000 1.3
@@ -89,7 +89,7 @@
/** */
private static final String DEFAULT_SOAP_CONNECTION_FACTORY =
- "com.sun.xml.messaging.client.p2p.HttpSOAPConnectionFactory";
+ "org.apache.axis.soap.SOAPConnectionFactoryImpl";
/** */
private static final String SF_PROPERTY =
1.4 +1 -1 xml-axis/java/src/javax/xml/soap/SOAPElementFactory.java
Index: SOAPElementFactory.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPElementFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SOAPElementFactory.java 22 Mar 2002 16:28:48 -0000 1.3
+++ SOAPElementFactory.java 29 May 2002 17:00:00 -0000 1.4
@@ -138,5 +138,5 @@
/** */
private static final String DEFAULT_SEF =
- "com.sun.xml.messaging.soap.SOAPElementFactoryImpl";
+ "org.apache.axis.soap.SOAPElementFactoryImpl";
}
1.22 +1 -1 xml-axis/java/src/org/apache/axis/message/SOAPFaultElement.java
Index: SOAPFaultElement.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPFaultElement.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- SOAPFaultElement.java 3 Dec 2001 22:49:23 -0000 1.21
+++ SOAPFaultElement.java 29 May 2002 17:00:00 -0000 1.22
@@ -70,7 +70,7 @@
* @author Glen Daniels (gdaniels@macromedia.com)
* @author Tom Jordahl (tomj@macromedia.com)
*/
-public class SOAPFaultElement extends SOAPBodyElement
+public class SOAPFaultElement extends SOAPBodyElement implements javax.xml.soap.SOAPFaultElement
{
protected AxisFault fault;
1.1 xml-axis/java/src/org/apache/axis/message/Detail.java
Index: Detail.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.axis.message;
import org.apache.axis.AxisFault;
import org.apache.axis.encoding.DeserializationContext;
import org.xml.sax.Attributes;
import javax.xml.soap.DetailEntry;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPException;
import java.util.Iterator;
/**
* Detail Container implementation
*
* @author Davanum Srinivas (dims@yahoo.com)
*/
public class Detail extends SOAPFaultElement implements javax.xml.soap.Detail {
public Detail(String namespace, String localName, String prefix,
Attributes attrs, DeserializationContext context) {
super(namespace, localName, prefix, attrs, context);
}
public Detail(AxisFault fault) {
super(fault);
}
/**
* Creates a new <code>DetailEntry</code> object with the given
* name and adds it to this <code>Detail</code> object.
* @param name a <code>Name</code> object identifying the new <code>DetailEntry</code> object
* @return DetailEntry.
* @throws SOAPException thrown when there is a problem in adding a DetailEntry object to this Detail object.
*/
public DetailEntry addDetailEntry(Name name) throws SOAPException {
//TODO: Flesh this out.
return null;
}
/**
* Gets a list of the detail entries in this <code>Detail</code> object.
* @return an <code>Iterator</code> object over the <code>DetailEntry</code>
* objects in this <code>Detail</code> object
*/
public Iterator getDetailEntries() {
//TODO: Flesh this out.
return null;
}
}
1.1 xml-axis/java/src/org/apache/axis/message/DetailEntry.java
Index: DetailEntry.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.axis.message;
/**
* Detail Entry implementation
*
* @author Davanum Srinivas (dims@yahoo.com)
*/
public class DetailEntry extends MessageElement implements javax.xml.soap.DetailEntry {
}
1.1 xml-axis/java/src/org/apache/axis/message/SOAPFault.java
Index: SOAPFault.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.axis.message;
import javax.xml.soap.Detail;
import javax.xml.soap.SOAPException;
/**
* SOAP Fault implementation
*
* @author Davanum Srinivas (dims@yahoo.com)
*/
public class SOAPFault extends MessageElement implements javax.xml.soap.SOAPFault {
/**
* Sets this <CODE>SOAPFaultException</CODE> object with the given
* fault code.
*
* <P>Fault codes, which given information about the fault,
* are defined in the SOAP 1.1 specification.</P>
* @param faultCode a <CODE>String</CODE> giving
* the fault code to be set; must be one of the fault codes
* defined in the SOAP 1.1 specification
* @throws SOAPException if there was an error in
* adding the <CODE>faultCode</CODE> to the underlying XML
* tree.
*/
public void setFaultCode(String faultCode) throws SOAPException {
//TODO: Flesh this out.
}
/**
* Gets the fault code for this <CODE>SOAPFaultException</CODE>
* object.
* @return a <CODE>String</CODE> with the fault code
*/
public String getFaultCode() {
//TODO: Flesh this out.
return null;
}
/**
* Sets this <CODE>SOAPFaultException</CODE> object with the given
* fault actor.
*
* <P>The fault actor is the recipient in the message path who
* caused the fault to happen.</P>
* @param faultActor a <CODE>String</CODE>
* identifying the actor that caused this <CODE>
* SOAPFaultException</CODE> object
* @throws SOAPException if there was an error in
* adding the <CODE>faultActor</CODE> to the underlying XML
* tree.
*/
public void setFaultActor(String faultActor) throws SOAPException {
//TODO: Flesh this out.
}
/**
* Gets the fault actor for this <CODE>SOAPFaultException</CODE>
* object.
* @return a <CODE>String</CODE> giving the actor in the message
* path that caused this <CODE>SOAPFaultException</CODE> object
* @see #setFaultActor(java.lang.String) setFaultActor(java.lang.String)
*/
public String getFaultActor() {
//TODO: Flesh this out.
return null;
}
/**
* Sets the fault string for this <CODE>SOAPFaultException</CODE>
* object to the given string.
*
* @param faultString a <CODE>String</CODE>
* giving an explanation of the fault
* @throws SOAPException if there was an error in
* adding the <CODE>faultString</CODE> to the underlying XML
* tree.
* @see #getFaultString() getFaultString()
*/
public void setFaultString(String faultString)
throws SOAPException {
//TODO: Flesh this out.
}
/**
* Gets the fault string for this <CODE>SOAPFaultException</CODE>
* object.
* @return a <CODE>String</CODE> giving an explanation of the
* fault
*/
public String getFaultString() {
//TODO: Flesh this out.
return null;
}
/**
* Returns the detail element for this <CODE>SOAPFaultException</CODE>
* object.
*
* <P>A <CODE>Detail</CODE> object carries
* application-specific error information related to <CODE>
* SOAPBodyElement</CODE> objects.</P>
* @return a <CODE>Detail</CODE> object with
* application-specific error information
*/
public Detail getDetail() {
//TODO: Flesh this out.
return null;
}
/**
* Creates a <CODE>Detail</CODE> object and sets it as the
* <CODE>Detail</CODE> object for this <CODE>SOAPFaultException</CODE>
* object.
*
* <P>It is illegal to add a detail when the fault already
* contains a detail. Therefore, this method should be called
* only after the existing detail has been removed.</P>
* @return the new <CODE>Detail</CODE> object
* @throws SOAPException if this
* <CODE>SOAPFaultException</CODE> object already contains a valid
* <CODE>Detail</CODE> object
*/
public Detail addDetail() throws SOAPException {
//TODO: Flesh this out.
return null;
}
}
1.1 xml-axis/java/src/org/apache/axis/message/Text.java
Index: Text.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.axis.message;
/**
* A representation of a node whose value is text. A <CODE>
* Text</CODE> object may represent text that is content or text
* that is a comment.
*
* @author Davanum Srinivas (dims@yahoo.com)
*/
public class Text extends MessageElement implements javax.xml.soap.Text {
/**
* Retrieves whether this <CODE>Text</CODE> object
* represents a comment.
* @return <CODE>true</CODE> if this <CODE>Text</CODE> object is
* a comment; <CODE>false</CODE> otherwise
*/
public boolean isComment() {
//TODO: Flesh this out.
return false;
}
}
1.1 xml-axis/java/src/org/apache/axis/soap/MessageFactoryImpl.java
Index: MessageFactoryImpl.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.axis.soap;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import java.io.IOException;
import java.io.InputStream;
/**
* Message Factory implementation
*
* @author Davanum Srinivas (dims@yahoo.com)
*/
public class MessageFactoryImpl extends javax.xml.soap.MessageFactory {
/**
* Creates a new <CODE>SOAPMessage</CODE> object with the
* default <CODE>SOAPPart</CODE>, <CODE>SOAPEnvelope</CODE>,
* <CODE>SOAPBody</CODE>, and <CODE>SOAPHeader</CODE> objects.
* Profile-specific message factories can choose to
* prepopulate the <CODE>SOAPMessage</CODE> object with
* profile-specific headers.
*
* <P>Content can be added to this message's <CODE>
* SOAPPart</CODE> object, and the message can be sent "as is"
* when a message containing only a SOAP part is sufficient.
* Otherwise, the <CODE>SOAPMessage</CODE> object needs to
* create one or more <CODE>AttachmentPart</CODE> objects and
* add them to itself. Any content that is not in XML format
* must be in an <CODE>AttachmentPart</CODE> object.</P>
* @return a new <CODE>SOAPMessage</CODE> object
* @throws SOAPException if a SOAP error occurs
*/
public SOAPMessage createMessage() throws SOAPException {
//TODO:Flesh this out.
return null;
}
/**
* Internalizes the contents of the given <CODE>
* InputStream</CODE> object into a new <CODE>SOAPMessage</CODE>
* object and returns the <CODE>SOAPMessage</CODE> object.
* @param mimeheaders the transport-specific headers
* passed to the message in a transport-independent fashion
* for creation of the message
* @param inputstream the <CODE>InputStream</CODE> object
* that contains the data for a message
* @return a new <CODE>SOAPMessage</CODE> object containing the
* data from the given <CODE>InputStream</CODE> object
* @throws IOException if there is a
* problem in reading data from the input stream
* @throws SOAPException if the message is invalid
*/
public SOAPMessage createMessage(
MimeHeaders mimeheaders, InputStream inputstream)
throws IOException, SOAPException {
//TODO:Flesh this out.
return null;
}
}
1.1 xml-axis/java/src/org/apache/axis/soap/SOAPConnectionFactoryImpl.java
Index: SOAPConnectionFactoryImpl.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.axis.soap;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPException;
/**
* SOAP Connection Factory implementation
*
* @author Davanum Srinivas (dims@yahoo.com)
*/
public class SOAPConnectionFactoryImpl extends javax.xml.soap.SOAPConnectionFactory {
/**
* Create a new <CODE>SOAPConnection</CODE>.
* @return the new <CODE>SOAPConnection</CODE> object.
* @throws SOAPException if there was an exception
* creating the <CODE>SOAPConnection</CODE> object.
*/
public SOAPConnection createConnection() throws SOAPException {
//TODO:Flesh this out.
return null;
}
}
1.1 xml-axis/java/src/org/apache/axis/soap/SOAPConnectionImpl.java
Index: SOAPConnectionImpl.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.axis.soap;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPException;
import javax.xml.messaging.Endpoint;
/**
* SOAP Connection implementation
*
* @author Davanum Srinivas (dims@yahoo.com)
*/
public class SOAPConnectionImpl extends javax.xml.soap.SOAPConnection {
/**
* Sends the given message to the specified endpoint and
* blocks until it has returned the response.
* @param request the <CODE>SOAPMessage</CODE>
* object to be sent
* @param endpoint a <CODE>URLEndpoint</CODE>
* object giving the URL to which the message should be
* sent
* @return the <CODE>SOAPMessage</CODE> object that is the
* response to the message that was sent
* @throws SOAPException if there is a SOAP error
*/
public SOAPMessage call(SOAPMessage request, Endpoint endpoint)
throws SOAPException {
//TODO: Flesh this out.
return null;
}
/**
* Closes this <CODE>SOAPConnection</CODE> object.
* @throws SOAPException if there is a SOAP error
*/
public void close() throws SOAPException {
//TODO: Flesh this out.
}
}
1.1 xml-axis/java/src/org/apache/axis/soap/SOAPElementFactoryImpl.java
Index: SOAPElementFactoryImpl.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.axis.soap;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPException;
/**
* SOAP Element Factory implementation
*
* @author Davanum Srinivas (dims@yahoo.com)
*/
public class SOAPElementFactoryImpl extends javax.xml.soap.SOAPElementFactory {
/**
* Create a <CODE>SOAPElement</CODE> object initialized with
* the given <CODE>Name</CODE> object.
* @param name a <CODE>Name</CODE> object with
* the XML name for the new element
* @return the new <CODE>SOAPElement</CODE> object that was
* created
* @throws SOAPException if there is an error in
* creating the <CODE>SOAPElement</CODE> object
*/
public SOAPElement create(Name name) throws SOAPException {
//TODO: Flesh this out.
return null;
}
/**
* Create a <CODE>SOAPElement</CODE> object initialized with
* the given local name.
* @param localName a <CODE>String</CODE> giving
* the local name for the new element
* @return the new <CODE>SOAPElement</CODE> object that was
* created
* @throws SOAPException if there is an error in
* creating the <CODE>SOAPElement</CODE> object
*/
public SOAPElement create(String localName) throws SOAPException {
//TODO: Flesh this out.
return null;
}
/**
* Create a new <CODE>SOAPElement</CODE> object with the
* given local name, prefix and uri.
* @param localName a <CODE>String</CODE> giving
* the local name for the new element
* @param prefix the prefix for this <CODE>
* SOAPElement</CODE>
* @param uri a <CODE>String</CODE> giving the
* URI of the namespace to which the new element
* belongs
* @return the new <CODE>SOAPElement</CODE> object that was
* created
* @throws SOAPException if there is an error in
* creating the <CODE>SOAPElement</CODE> object
*/
public SOAPElement create(
String localName, String prefix, String uri) throws SOAPException {
//TODO: Flesh this out.
return null;
}
}