dims 2003/07/08 11:27:58
Modified: java/src/javax/xml/soap AttachmentPart.java
MessageFactory.java Node.java SOAPBody.java
SOAPElement.java SOAPFault.java SOAPHeader.java
SOAPMessage.java SOAPPart.java Text.java
java/src/org/apache/axis Message.java SOAPPart.java
java/src/org/apache/axis/message MessageElement.java
SOAPBody.java SOAPFault.java SOAPHeader.java
Text.java
Log:
Initial check-in for SAAJ 1.2
(http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr067/SAAJ1_2ChangeLogFinal1.html)
Note:
- Checking in changes to the class hierarchy and stubs/placeholder for methods
Revision Changes Path
1.6 +3 -3 xml-axis/java/src/javax/xml/soap/AttachmentPart.java
Index: AttachmentPart.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/AttachmentPart.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- AttachmentPart.java 22 Apr 2003 19:33:54 -0000 1.5
+++ AttachmentPart.java 8 Jul 2003 18:27:57 -0000 1.6
@@ -273,7 +273,7 @@
String as[] = getMimeHeader("Content-Id");
- if (as != null) {
+ if (as != null && as.length > 0) {
return as[0];
} else {
return null;
@@ -291,7 +291,7 @@
String as[] = getMimeHeader("Content-Location");
- if (as != null) {
+ if (as != null && as.length > 0) {
return as[0];
} else {
return null;
@@ -308,7 +308,7 @@
String as[] = getMimeHeader("Content-Type");
- if (as != null) {
+ if (as != null && as.length > 0) {
return as[0];
} else {
return null;
1.7 +0 -3 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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- MessageFactory.java 22 Apr 2003 19:33:55 -0000 1.6
+++ MessageFactory.java 8 Jul 2003 18:27:57 -0000 1.7
@@ -200,9 +200,6 @@
throws IOException, SOAPException;
/** */
- static Class clz = null;
-
- /** */
private static final String DEFAULT_MESSAGE_FACTORY =
"org.apache.axis.soap.MessageFactoryImpl";
1.4 +3 -1 xml-axis/java/src/javax/xml/soap/Node.java
Index: Node.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/Node.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Node.java 22 Apr 2003 19:33:55 -0000 1.3
+++ Node.java 8 Jul 2003 18:27:57 -0000 1.4
@@ -60,7 +60,7 @@
* This interface provides methods for getting the value of a node, for
* getting and setting the parent of a node, and for removing a node.
*/
-public interface Node {
+public interface Node extends org.w3c.dom.Node {
/**
* Returns the the value of the immediate child of this <code>Node</code>
@@ -113,4 +113,6 @@
* <code>detachNode</code> has been called previously.
*/
public abstract void recycleNode();
+
+ public abstract void setValue(String s);
}
1.5 +11 -1 xml-axis/java/src/javax/xml/soap/SOAPBody.java
Index: SOAPBody.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPBody.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SOAPBody.java 22 Apr 2003 19:33:55 -0000 1.4
+++ SOAPBody.java 8 Jul 2003 18:27:57 -0000 1.5
@@ -54,6 +54,10 @@
*/
package javax.xml.soap;
+import org.w3c.dom.Document;
+
+import java.util.Locale;
+
/**
* An object that represents the contents of the SOAP body
* element in a SOAP message. A SOAP body element consists of XML data
@@ -102,4 +106,10 @@
*/
public abstract SOAPBodyElement addBodyElement(Name name)
throws SOAPException;
-}
+
+ public abstract SOAPFault addFault(Name name, String s, Locale locale) throws
SOAPException;
+
+ public abstract SOAPFault addFault(Name name, String s) throws SOAPException;
+
+ public abstract SOAPBodyElement addDocument(Document document) throws
SOAPException;
+ }
1.6 +5 -1 xml-axis/java/src/javax/xml/soap/SOAPElement.java
Index: SOAPElement.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPElement.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SOAPElement.java 22 Apr 2003 19:33:55 -0000 1.5
+++ SOAPElement.java 8 Jul 2003 18:27:57 -0000 1.6
@@ -65,7 +65,7 @@
* the base class for all of the classes that represent the SOAP objects as
* defined in the SOAP specification.
*/
-public interface SOAPElement extends Node {
+public interface SOAPElement extends Node, org.w3c.dom.Element {
/**
* Creates a new <code>SOAPElement</code> object initialized with the
@@ -303,4 +303,8 @@
* @see #setEncodingStyle(java.lang.String) setEncodingStyle(java.lang.String)
*/
public abstract String getEncodingStyle();
+
+ public abstract void removeContents();
+
+ public abstract Iterator getVisibleNamespacePrefixes();
}
1.5 +10 -0 xml-axis/java/src/javax/xml/soap/SOAPFault.java
Index: SOAPFault.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPFault.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SOAPFault.java 22 Apr 2003 19:33:55 -0000 1.4
+++ SOAPFault.java 8 Jul 2003 18:27:57 -0000 1.5
@@ -54,6 +54,8 @@
*/
package javax.xml.soap;
+import java.util.Locale;
+
/**
* An element in the <CODE>SOAPBody</CODE> object that contains
* error and/or status information. This information may relate to
@@ -173,4 +175,12 @@
* <CODE>Detail</CODE> object
*/
public abstract Detail addDetail() throws SOAPException;
+
+ public abstract void setFaultCode(Name name) throws SOAPException;
+
+ public abstract Name getFaultCodeAsName();
+
+ public abstract void setFaultString(String s, Locale locale) throws
SOAPException;
+
+ public abstract Locale getFaultStringLocale();
}
1.3 +6 -0 xml-axis/java/src/javax/xml/soap/SOAPHeader.java
Index: SOAPHeader.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPHeader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SOAPHeader.java 22 Apr 2003 19:33:55 -0000 1.2
+++ SOAPHeader.java 8 Jul 2003 18:27:57 -0000 1.3
@@ -149,4 +149,10 @@
* @see #examineHeaderElements(java.lang.String)
examineHeaderElements(java.lang.String)
*/
public abstract Iterator extractHeaderElements(String actor);
+
+ public abstract Iterator examineMustUnderstandHeaderElements(String s);
+
+ public abstract Iterator examineAllHeaderElements();
+
+ public abstract Iterator extractAllHeaderElements();
}
1.6 +11 -0 xml-axis/java/src/javax/xml/soap/SOAPMessage.java
Index: SOAPMessage.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPMessage.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SOAPMessage.java 22 Apr 2003 19:33:55 -0000 1.5
+++ SOAPMessage.java 8 Jul 2003 18:27:57 -0000 1.6
@@ -338,4 +338,15 @@
*/
public abstract void writeTo(OutputStream out)
throws SOAPException, IOException;
+
+ public abstract SOAPBody getSOAPBody() throws SOAPException;
+
+ public abstract SOAPHeader getSOAPHeader() throws SOAPException;
+
+ public abstract void setProperty(String s, Object obj) throws SOAPException;
+
+ public abstract Object getProperty(String s) throws SOAPException;
+
+ public static final String CHARACTER_SET_ENCODING =
"javax.xml.soap.character-set-encoding";
+ public static final String WRITE_XML_DECLARATION =
"javax.xml.soap.write-xml-declaration";
}
1.6 +3 -3 xml-axis/java/src/javax/xml/soap/SOAPPart.java
Index: SOAPPart.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPPart.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SOAPPart.java 22 Apr 2003 19:33:55 -0000 1.5
+++ SOAPPart.java 8 Jul 2003 18:27:57 -0000 1.6
@@ -95,7 +95,7 @@
* The <CODE>SOAPPart</CODE> method <CODE>getEnvelope</CODE> can
* be used to retrieve the <CODE>SOAPEnvelope</CODE> object.</P>
*/
-public abstract class SOAPPart {
+public abstract class SOAPPart implements org.w3c.dom.Document {
/** */
public SOAPPart() {}
@@ -121,7 +121,7 @@
String as[] = getMimeHeader("Content-Id");
- if (as != null) {
+ if (as != null && as.length > 0) {
return as[0];
} else {
return null;
@@ -139,7 +139,7 @@
String as[] = getMimeHeader("Content-Location");
- if (as != null) {
+ if (as != null && as.length > 0) {
return as[0];
} else {
return null;
1.4 +1 -1 xml-axis/java/src/javax/xml/soap/Text.java
Index: Text.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/Text.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Text.java 22 Apr 2003 19:33:55 -0000 1.3
+++ Text.java 8 Jul 2003 18:27:57 -0000 1.4
@@ -59,7 +59,7 @@
* Text</CODE> object may represent text that is content or text
* that is a comment.
*/
-public interface Text extends Node {
+public interface Text extends Node, org.w3c.dom.Text {
/**
* Retrieves whether this <CODE>Text</CODE> object
1.100 +18 -0 xml-axis/java/src/org/apache/axis/Message.java
Index: Message.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Message.java,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- Message.java 19 Jun 2003 04:51:57 -0000 1.99
+++ Message.java 8 Jul 2003 18:27:58 -0000 1.100
@@ -67,6 +67,8 @@
import javax.xml.soap.AttachmentPart;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPHeader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
@@ -449,6 +451,22 @@
log.error(Messages.getMessage("exception00"), e);
}
}
+ }
+
+ public SOAPBody getSOAPBody() throws SOAPException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public SOAPHeader getSOAPHeader() throws SOAPException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void setProperty(String s, Object obj) throws SOAPException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Object getProperty(String s) throws SOAPException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
}
/**
1.56 +183 -0 xml-axis/java/src/org/apache/axis/SOAPPart.java
Index: SOAPPart.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/SOAPPart.java,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- SOAPPart.java 22 Apr 2003 19:34:00 -0000 1.55
+++ SOAPPart.java 8 Jul 2003 18:27:58 -0000 1.56
@@ -68,6 +68,21 @@
import org.apache.commons.logging.Log;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
+import org.w3c.dom.DOMImplementation;
+import org.w3c.dom.DocumentFragment;
+import org.w3c.dom.DocumentType;
+import org.w3c.dom.Element;
+import org.w3c.dom.Attr;
+import org.w3c.dom.DOMException;
+import org.w3c.dom.CDATASection;
+import org.w3c.dom.Comment;
+import org.w3c.dom.EntityReference;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+import org.w3c.dom.ProcessingInstruction;
+import org.w3c.dom.Document;
+import org.w3c.dom.NamedNodeMap;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPException;
@@ -805,6 +820,174 @@
} catch (AxisFault af) {
throw new SOAPException(af);
}
+ }
+
+ public DOMImplementation getImplementation() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public DocumentFragment createDocumentFragment() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public DocumentType getDoctype() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Element getDocumentElement() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Attr createAttribute(String name) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public CDATASection createCDATASection(String data) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Comment createComment(String data) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Element createElement(String tagName) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Element getElementById(String elementId) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public EntityReference createEntityReference(String name) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node importNode(Node importedNode, boolean deep) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public NodeList getElementsByTagName(String tagname) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Text createTextNode(String data) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws
DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Element createElementNS(String namespaceURI, String qualifiedName)
throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public NodeList getElementsByTagNameNS(String namespaceURI, String localName) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public ProcessingInstruction createProcessingInstruction(String target, String
data) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public short getNodeType() {
+ return 0; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void normalize() {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public boolean hasAttributes() {
+ return false; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public boolean hasChildNodes() {
+ return false; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getLocalName() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getNamespaceURI() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getNodeName() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getNodeValue() throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getPrefix() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void setNodeValue(String nodeValue) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void setPrefix(String prefix) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Document getOwnerDocument() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public NamedNodeMap getAttributes() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getFirstChild() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getLastChild() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getNextSibling() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getParentNode() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getPreviousSibling() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node cloneNode(boolean deep) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public NodeList getChildNodes() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public boolean isSupported(String feature, String version) {
+ return false; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node appendChild(Node newChild) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node removeChild(Node oldChild) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node insertBefore(Node newChild, Node refChild) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node replaceChild(Node newChild, Node oldChild) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
}
}
1.156 +172 -1 xml-axis/java/src/org/apache/axis/message/MessageElement.java
Index: MessageElement.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/MessageElement.java,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -r1.155 -r1.156
--- MessageElement.java 27 Jun 2003 14:54:51 -0000 1.155
+++ MessageElement.java 8 Jul 2003 18:27:58 -0000 1.156
@@ -69,6 +69,11 @@
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Text;
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Attr;
+import org.w3c.dom.NamedNodeMap;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.InputSource;
@@ -312,7 +317,55 @@
public String getHref() { return href; }
- public Attributes getAttributes() { return attributes; }
+ public Attributes getAttributesEx() { return attributes; }
+
+ public Node getFirstChild() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getLastChild() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getNextSibling() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getParentNode() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node getPreviousSibling() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node cloneNode(boolean deep) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public NodeList getChildNodes() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public boolean isSupported(String feature, String version) {
+ return false; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node appendChild(Node newChild) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node removeChild(Node oldChild) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node insertBefore(Node newChild, Node refChild) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Node replaceChild(Node newChild, Node oldChild) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
/**
* Obtain an Attributes collection consisting of all attributes
@@ -350,9 +403,51 @@
}
public String getPrefix() { return( prefix ); }
+
+ public void setNodeValue(String nodeValue) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
public void setPrefix(String prefix) { this.prefix = prefix; }
+ public Document getOwnerDocument() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public NamedNodeMap getAttributes() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public short getNodeType() {
+ return 0; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void normalize() {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public boolean hasAttributes() {
+ return false; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public boolean hasChildNodes() {
+ return false; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getLocalName() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
public String getNamespaceURI() { return( namespaceURI ); }
+
+ public String getNodeName() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getNodeValue() throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
public void setNamespaceURI(String nsURI) { namespaceURI = nsURI; }
public QName getType() {
@@ -388,6 +483,14 @@
return encodingStyle;
}
+ public void removeContents() {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Iterator getVisibleNamespacePrefixes() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
/**
* Sets the encoding style for this <CODE>SOAPElement</CODE>
* object to one specified. The semantics of a null value,
@@ -918,6 +1021,10 @@
*/
public void recycleNode() {}
+ public void setValue(String s) {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
// JAXM SOAPElement methods...
public SOAPElement addChildElement(Name name) throws SOAPException {
@@ -1093,6 +1200,70 @@
}
}
return c.iterator();
+ }
+
+ public String getTagName() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void removeAttribute(String name) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public boolean hasAttribute(String name) {
+ return false; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getAttribute(String name) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void removeAttributeNS(String namespaceURI, String localName) throws
DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void setAttribute(String name, String value) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public boolean hasAttributeNS(String namespaceURI, String localName) {
+ return false; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Attr getAttributeNode(String name) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Attr removeAttributeNode(Attr oldAttr) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Attr setAttributeNode(Attr newAttr) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Attr setAttributeNodeNS(Attr newAttr) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public NodeList getElementsByTagName(String name) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getAttributeNS(String namespaceURI, String localName) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void setAttributeNS(String namespaceURI, String qualifiedName, String
value) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Attr getAttributeNodeNS(String namespaceURI, String localName) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public NodeList getElementsByTagNameNS(String namespaceURI, String localName) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
}
// setEncodingStyle implemented above
1.45 +15 -1 xml-axis/java/src/org/apache/axis/message/SOAPBody.java
Index: SOAPBody.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPBody.java,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- SOAPBody.java 29 Jun 2003 19:03:16 -0000 1.44
+++ SOAPBody.java 8 Jul 2003 18:27:58 -0000 1.45
@@ -65,6 +65,7 @@
import org.apache.commons.logging.Log;
import org.xml.sax.Attributes;
import org.w3c.dom.Element;
+import org.w3c.dom.Document;
import javax.xml.namespace.QName;
import javax.xml.soap.Name;
@@ -73,6 +74,7 @@
import java.util.Enumeration;
import java.util.Vector;
import java.util.ArrayList;
+import java.util.Locale;
/**
* Holder for body elements.
@@ -167,7 +169,7 @@
// Output <SOAP-ENV:Body>
context.startElement(new QName(soapConstants.getEnvelopeURI(),
- Constants.ELEM_BODY), getAttributes());
+ Constants.ELEM_BODY), getAttributesEx());
Enumeration enum = bodyElements.elements();
while (enum.hasMoreElements()) {
SOAPBodyElement body = (SOAPBodyElement)enum.nextElement();
@@ -255,6 +257,18 @@
SOAPBodyElement bodyElement = new SOAPBodyElement(name);
addBodyElement(bodyElement);
return bodyElement;
+ }
+
+ public javax.xml.soap.SOAPFault addFault(Name name, String s, Locale locale)
throws SOAPException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public javax.xml.soap.SOAPFault addFault(Name name, String s) throws
SOAPException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public javax.xml.soap.SOAPBodyElement addDocument(Document document) throws
SOAPException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
}
public javax.xml.soap.SOAPFault addFault() throws SOAPException {
1.22 +17 -0 xml-axis/java/src/org/apache/axis/message/SOAPFault.java
Index: SOAPFault.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPFault.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- SOAPFault.java 12 Jun 2003 12:36:03 -0000 1.21
+++ SOAPFault.java 8 Jul 2003 18:27:58 -0000 1.22
@@ -71,8 +71,10 @@
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.DetailEntry;
+import javax.xml.soap.Name;
import java.io.IOException;
import java.util.ArrayList;
+import java.util.Locale;
/** A Fault body element.
*
@@ -362,6 +364,21 @@
return detail;
}
+ public void setFaultCode(Name name) throws SOAPException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Name getFaultCodeAsName() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void setFaultString(String s, Locale locale) throws SOAPException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Locale getFaultStringLocale() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
/**
* Convert the details in an AxisFault to a Detail object
1.75 +12 -0 xml-axis/java/src/org/apache/axis/message/SOAPHeader.java
Index: SOAPHeader.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPHeader.java,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- SOAPHeader.java 18 Jun 2003 23:01:51 -0000 1.74
+++ SOAPHeader.java 8 Jul 2003 18:27:58 -0000 1.75
@@ -162,6 +162,18 @@
return results.iterator();
}
+ public Iterator examineMustUnderstandHeaderElements(String s) {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Iterator examineAllHeaderElements() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public Iterator extractAllHeaderElements() {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
Vector getHeaders() {
return headers;
}
1.6 +37 -0 xml-axis/java/src/org/apache/axis/message/Text.java
Index: Text.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/Text.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Text.java 22 Apr 2003 19:35:17 -0000 1.5
+++ Text.java 8 Jul 2003 18:27:58 -0000 1.6
@@ -56,6 +56,7 @@
package org.apache.axis.message;
import org.apache.axis.InternalException;
+import org.w3c.dom.DOMException;
/**
* A representation of a node whose value is text. A <CODE>
@@ -86,5 +87,41 @@
if(temp.startsWith("<!--") && temp.endsWith("-->"))
return true;
return false;
+ }
+
+ public org.w3c.dom.Text splitText(int offset) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public int getLength() {
+ return 0; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void deleteData(int offset, int count) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String getData() throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public String substringData(int offset, int count) throws DOMException {
+ return null; //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void replaceData(int offset, int count, String arg) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void insertData(int offset, String arg) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void appendData(String arg) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
+ }
+
+ public void setData(String data) throws DOMException {
+ //TODO: Fix this for SAAJ 1.2 Implementation
}
}