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 gd...@apache.org on 2005/07/11 19:49:08 UTC
svn commit: r210165 [16/20] - in /webservices/axis/trunk/java/modules:
addressing/src/org/apache/axis2/handlers/addressing/
addressing/test/org/apache/axis2/handlers/addressing/
addressing/test/org/apache/axis2/handlers/util/ core/src/org/apache/axis2/...
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAP12BuilderHelper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAP12BuilderHelper.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAP12BuilderHelper.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAP12BuilderHelper.java Mon Jul 11 10:48:55 2005
@@ -3,7 +3,11 @@
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
import org.apache.axis2.om.impl.llom.exception.OMBuilderException;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPFault;
+import org.apache.axis2.soap.SOAPFaultCode;
+import org.apache.axis2.soap.SOAPFaultReason;
+import org.apache.axis2.soap.SOAPFaultSubCode;
import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants;
@@ -50,182 +54,264 @@
factory = OMAbstractFactory.getSOAP12Factory();
}
- public OMElement handleEvent(XMLStreamReader parser, OMElement parent, int elementLevel) throws SOAPProcessingException {
+ public OMElement handleEvent(XMLStreamReader parser,
+ OMElement parent,
+ int elementLevel) throws SOAPProcessingException {
this.parser = parser;
OMElement element = null;
if (elementLevel == 4) {
- if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME)) {
+ if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME)) {
if (codePresent) {
- throw new OMBuilderException("Multiple Code element encountered");
+ throw new OMBuilderException(
+ "Multiple Code element encountered");
} else {
- element = factory.createSOAPFaultCode((SOAPFault) parent, builder);
+ element =
+ factory.createSOAPFaultCode((SOAPFault) parent,
+ builder);
codePresent = true;
codeprocessing = true;
}
- } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME)) {
+ } else if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME)) {
if (!codeprocessing && !subCodeProcessing) {
if (codePresent) {
if (reasonPresent) {
- throw new OMBuilderException("Multiple Reason Element encountered");
+ throw new OMBuilderException(
+ "Multiple Reason Element encountered");
} else {
- element = factory.createSOAPFaultReason((SOAPFault) parent, builder);
+ element =
+ factory.createSOAPFaultReason(
+ (SOAPFault) parent, builder);
reasonPresent = true;
reasonProcessing = true;
}
} else {
- throw new OMBuilderException("Wrong element order encountred at " + parser.getLocalName());
+ throw new OMBuilderException(
+ "Wrong element order encountred at " +
+ parser.getLocalName());
}
} else {
if (codeprocessing) {
- throw new OMBuilderException("Code doesn't have a value");
+ throw new OMBuilderException(
+ "Code doesn't have a value");
} else {
- throw new OMBuilderException("A subcode doesn't have a Value");
+ throw new OMBuilderException(
+ "A subcode doesn't have a Value");
}
}
- } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME)) {
+ } else if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME)) {
if (!reasonProcessing) {
if (reasonPresent && !rolePresent && !detailPresent) {
if (nodePresent) {
- throw new OMBuilderException("Multiple Node element encountered");
+ throw new OMBuilderException(
+ "Multiple Node element encountered");
} else {
- element = factory.createSOAPFaultNode((SOAPFault) parent, builder);
+ element =
+ factory.createSOAPFaultNode(
+ (SOAPFault) parent, builder);
nodePresent = true;
}
} else {
- throw new OMBuilderException("wrong element order encountered at " + parser.getLocalName());
+ throw new OMBuilderException(
+ "wrong element order encountered at " +
+ parser.getLocalName());
}
} else {
- throw new OMBuilderException("Reason element Should have a text");
+ throw new OMBuilderException(
+ "Reason element Should have a text");
}
- } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME)) {
+ } else if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME)) {
if (!reasonProcessing) {
if (reasonPresent && !detailPresent) {
if (rolePresent) {
- throw new OMBuilderException("Multiple Role element encountered");
+ throw new OMBuilderException(
+ "Multiple Role element encountered");
} else {
- element = factory.createSOAPFaultRole((SOAPFault) parent, builder);
+ element =
+ factory.createSOAPFaultRole(
+ (SOAPFault) parent, builder);
rolePresent = true;
}
} else {
- throw new OMBuilderException("Wrong element order encountered at " + parser.getLocalName());
+ throw new OMBuilderException(
+ "Wrong element order encountered at " +
+ parser.getLocalName());
}
} else {
- throw new OMBuilderException("Reason element should have a text");
+ throw new OMBuilderException(
+ "Reason element should have a text");
}
- } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME)) {
+ } else if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME)) {
if (!reasonProcessing) {
if (reasonPresent) {
if (detailPresent) {
- throw new OMBuilderException("Multiple detail element encountered");
+ throw new OMBuilderException(
+ "Multiple detail element encountered");
} else {
- element = factory.createSOAPFaultDetail((SOAPFault) parent, builder);
+ element =
+ factory.createSOAPFaultDetail(
+ (SOAPFault) parent, builder);
detailPresent = true;
}
} else {
- throw new OMBuilderException("wrong element order encountered at " + parser.getLocalName());
+ throw new OMBuilderException(
+ "wrong element order encountered at " +
+ parser.getLocalName());
}
} else {
- throw new OMBuilderException("Reason element should have a text");
+ throw new OMBuilderException(
+ "Reason element should have a text");
}
} else {
- throw new OMBuilderException(parser.getLocalName() + " unsupported element in SOAPFault element");
+ throw new OMBuilderException(
+ parser.getLocalName() +
+ " unsupported element in SOAPFault element");
}
} else if (elementLevel == 5) {
- if (parent.getLocalName().equals(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME)) {
- if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME)) {
+ if (parent.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME)) {
+ if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME)) {
if (!valuePresent) {
- element = factory.createSOAPFaultValue((SOAPFaultCode) parent, builder);
+ element =
+ factory.createSOAPFaultValue(
+ (SOAPFaultCode) parent, builder);
valuePresent = true;
codeprocessing = false;
} else {
- throw new OMBuilderException("Multiple value Encountered in code element");
+ throw new OMBuilderException(
+ "Multiple value Encountered in code element");
}
- } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) {
+ } else if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) {
if (!subcodePresent) {
if (valuePresent) {
- element = factory.createSOAPFaultSubCode((SOAPFaultCode) parent, builder);
+ element =
+ factory.createSOAPFaultSubCode(
+ (SOAPFaultCode) parent, builder);
subcodePresent = true;
subCodeProcessing = true;
} else {
- throw new OMBuilderException("Value should present before the subcode");
+ throw new OMBuilderException(
+ "Value should present before the subcode");
}
} else {
- throw new OMBuilderException("multiple subcode Encountered in code element");
+ throw new OMBuilderException(
+ "multiple subcode Encountered in code element");
}
} else {
- throw new OMBuilderException(parser.getLocalName() + " is not supported inside the code element");
+ throw new OMBuilderException(
+ parser.getLocalName() +
+ " is not supported inside the code element");
}
- } else if (parent.getLocalName().equals(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME)) {
- if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME)) {
- element = factory.createSOAPFaultText((SOAPFaultReason) parent, builder);
+ } else if (parent.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME)) {
+ if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME)) {
+ element =
+ factory.createSOAPFaultText(
+ (SOAPFaultReason) parent, builder);
element.setComplete(false);
reasonProcessing = false;
builder.setBooleanProcessingMandatoryFaultElements(false);
} else {
- throw new OMBuilderException(parser.getLocalName() + " is not supported inside the reason");
+ throw new OMBuilderException(
+ parser.getLocalName() +
+ " is not supported inside the reason");
}
- } else if (parent.getLocalName().equals(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME)) {
- element = OMAbstractFactory.getOMFactory().createOMElement(parser.getLocalName(), null, parent, builder);
+ } else if (parent.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME)) {
+ element =
+ OMAbstractFactory.getOMFactory().createOMElement(
+ parser.getLocalName(), null, parent, builder);
builder.setProcessingDetailElements(true);
detailElementNames = new Vector();
detailElementNames.add(parser.getLocalName());
} else {
- throw new OMBuilderException(parent.getLocalName() + " should not have child element");
+ throw new OMBuilderException(
+ parent.getLocalName() +
+ " should not have child element");
}
} else if (elementLevel > 5) {
- if (parent.getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) {
- if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME)) {
+ if (parent.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) {
+ if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME)) {
if (subcodeValuePresent) {
- throw new OMBuilderException("multiple subCode value encountered");
+ throw new OMBuilderException(
+ "multiple subCode value encountered");
} else {
- element = factory.createSOAPFaultValue((SOAPFaultSubCode) parent, builder);
+ element =
+ factory.createSOAPFaultValue(
+ (SOAPFaultSubCode) parent, builder);
subcodeValuePresent = true;
subSubcodePresent = false;
subCodeProcessing = false;
}
- } else if (parser.getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) {
+ } else if (parser.getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME)) {
if (subcodeValuePresent) {
if (!subSubcodePresent) {
- element = factory.createSOAPFaultSubCode((SOAPFaultSubCode) parent, builder);
+ element =
+ factory.createSOAPFaultSubCode(
+ (SOAPFaultSubCode) parent,
+ builder);
subcodeValuePresent = false;
subSubcodePresent = true;
subCodeProcessing = true;
} else {
- throw new OMBuilderException("multiple subcode encountered");
+ throw new OMBuilderException(
+ "multiple subcode encountered");
}
} else {
- throw new OMBuilderException("Value should present before the subcode");
+ throw new OMBuilderException(
+ "Value should present before the subcode");
}
} else {
- throw new OMBuilderException(parser.getLocalName() + " is not supported inside the subCode element");
+ throw new OMBuilderException(
+ parser.getLocalName() +
+ " is not supported inside the subCode element");
}
} else if (builder.isProcessingDetailElements()) {
int detailElementLevel = 0;
boolean localNameExist = false;
for (int i = 0; i < detailElementNames.size(); i++) {
- if (parent.getLocalName().equals((String) detailElementNames.get(i))) {
+ if (parent.getLocalName().equals(
+ (String) detailElementNames.get(i))) {
localNameExist = true;
detailElementLevel = i + 1;
}
}
if (localNameExist) {
detailElementNames.setSize(detailElementLevel);
- element = OMAbstractFactory.getOMFactory().createOMElement(parser.getLocalName(), null, parent, builder);
+ element =
+ OMAbstractFactory.getOMFactory().createOMElement(
+ parser.getLocalName(),
+ null,
+ parent,
+ builder);
detailElementNames.add(parser.getLocalName());
}
} else {
- throw new OMBuilderException(parent.getLocalName() + " should not have child at element level " + elementLevel);
+ throw new OMBuilderException(
+ parent.getLocalName() +
+ " should not have child at element level " +
+ elementLevel);
}
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAPBuilderHelper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAPBuilderHelper.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAPBuilderHelper.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAPBuilderHelper.java Mon Jul 11 10:48:55 2005
@@ -35,13 +35,15 @@
this.builder = builder;
}
- public abstract OMElement handleEvent(XMLStreamReader parser, OMElement element, int elementLevel) throws SOAPProcessingException;
+ public abstract OMElement handleEvent(XMLStreamReader parser,
+ OMElement element,
+ int elementLevel) throws SOAPProcessingException;
protected void processNamespaceData(OMElement node, boolean isSOAPElement) {
int namespaceCount = parser.getNamespaceCount();
for (int i = 0; i < namespaceCount; i++) {
node.declareNamespace(parser.getNamespaceURI(i),
- parser.getNamespacePrefix(i));
+ parser.getNamespacePrefix(i));
}
// set the own namespace
@@ -71,7 +73,11 @@
// throw new OMException("All elements must be namespace qualified!");
// }
if (isSOAPElement) {
- if (node.getNamespace() != null && !node.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI) && !node.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)) {
+ if (node.getNamespace() != null &&
+ !node.getNamespace().getName().equals(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI) &&
+ !node.getNamespace().getName().equals(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)) {
throw new OMBuilderException("invalid SOAP namespace URI");
}
}
@@ -85,13 +91,13 @@
String uri = parser.getAttributeNamespace(i);
if (uri.hashCode() != 0) {
ns = node.findNamespace(uri,
- parser.getAttributePrefix(i));
+ parser.getAttributePrefix(i));
}
// todo if the attributes are supposed to namespace qualified all the time
// todo then this should throw an exception here
node.addAttribute(parser.getAttributeLocalName(i),
- parser.getAttributeValue(i), ns);
+ parser.getAttributeValue(i), ns);
}
}
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/StAXSOAPModelBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/StAXSOAPModelBuilder.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/StAXSOAPModelBuilder.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/StAXSOAPModelBuilder.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,11 @@
*/
package org.apache.axis2.soap.impl.llom.builder;
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMException;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMNode;
import org.apache.axis2.om.impl.llom.builder.StAXBuilder;
import org.apache.axis2.om.impl.llom.exception.OMBuilderException;
import org.apache.axis2.soap.SOAPBody;
@@ -106,11 +110,16 @@
throw new OMException("No SOAPHeader present !!");
}
- envelopeNamespace = soapEnvelope.findNamespace(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI, "");
+ envelopeNamespace =
+ soapEnvelope.findNamespace(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI, "");
if (envelopeNamespace == null) {
- envelopeNamespace = getSOAPEnvelope().findNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, "");
+ envelopeNamespace =
+ getSOAPEnvelope().findNamespace(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, "");
if (envelopeNamespace == null) {
- throw new OMException("Invalid SOAP message. Doesn't have proper namespace declaration !!");
+ throw new OMException(
+ "Invalid SOAP message. Doesn't have proper namespace declaration !!");
} else {
log.info("SOAP 1.1 message received ..");
soapFactory = OMAbstractFactory.getSOAP11Factory();
@@ -163,7 +172,10 @@
if (lastNode == null) {
node = constructNode(null, elementName, true);
} else if (lastNode.isComplete()) {
- node = constructNode((OMElement) lastNode.getParent(), elementName, false);
+ node =
+ constructNode((OMElement) lastNode.getParent(),
+ elementName,
+ false);
lastNode.setNextSibling(node);
node.setPreviousSibling(lastNode);
} else {
@@ -173,7 +185,9 @@
}
- log.info("Build the OMElelment " + node.getLocalName() + "By the StaxSOAPModelBuilder");
+ log.info(
+ "Build the OMElelment " + node.getLocalName() +
+ "By the StaxSOAPModelBuilder");
return node;
}
@@ -189,9 +203,10 @@
boolean isEnvelope) {
OMElement element = null;
if (parent == null) {
- if (!elementName.equalsIgnoreCase(SOAPConstants.SOAPENVELOPE_LOCAL_NAME)) {
+ if (!elementName.equalsIgnoreCase(
+ SOAPConstants.SOAPENVELOPE_LOCAL_NAME)) {
throw new OMException("First Element must contain the local name, "
- + SOAPConstants.SOAPENVELOPE_LOCAL_NAME);
+ + SOAPConstants.SOAPENVELOPE_LOCAL_NAME);
}
envelope =
(SOAPEnvelopeImpl) soapFactory.createSOAPEnvelope(this);
@@ -205,7 +220,8 @@
// this is either a header or a body
if (elementName.equals(SOAPConstants.HEADER_LOCAL_NAME)) {
if (headerPresent) {
- throw new OMBuilderException("Multiple headers encountered!");
+ throw new OMBuilderException(
+ "Multiple headers encountered!");
}
if (bodyPresent) {
throw new OMBuilderException("Header Body wrong order!");
@@ -213,7 +229,7 @@
headerPresent = true;
element =
soapFactory.createSOAPHeader((SOAPEnvelope) parent,
- this);
+ this);
// envelope.setHeader((SOAPHeader)element);
processNamespaceData(element, true);
@@ -221,35 +237,45 @@
} else if (elementName.equals(SOAPConstants.BODY_LOCAL_NAME)) {
if (bodyPresent) {
- throw new OMBuilderException("Multiple body elements encountered");
+ throw new OMBuilderException(
+ "Multiple body elements encountered");
}
bodyPresent = true;
element =
soapFactory.createSOAPBody((SOAPEnvelope) parent,
- this);
+ this);
// envelope.setBody((SOAPBody)element);
processNamespaceData(element, true);
processAttributes(element);
} else {
- throw new OMBuilderException(elementName
- + " is not supported here. Envelope can not have elements other than Header and Body.");
+ throw new OMBuilderException(
+ elementName
+ +
+ " is not supported here. Envelope can not have elements other than Header and Body.");
}
} else if ((elementLevel == 3)
- && parent.getLocalName().equalsIgnoreCase(SOAPConstants.HEADER_LOCAL_NAME)) {
+ &&
+ parent.getLocalName().equalsIgnoreCase(
+ SOAPConstants.HEADER_LOCAL_NAME)) {
// this is a headerblock
try {
- element = soapFactory.createSOAPHeaderBlock(elementName, null,
- (SOAPHeader) parent, this);
+ element =
+ soapFactory.createSOAPHeaderBlock(elementName, null,
+ (SOAPHeader) parent, this);
} catch (SOAPProcessingException e) {
throw new OMBuilderException(e);
}
processNamespaceData(element, false);
processAttributes(element);
- } else if ((elementLevel == 3) && parent.getLocalName().equalsIgnoreCase(SOAPConstants.BODY_LOCAL_NAME) && elementName.equalsIgnoreCase(SOAPConstants.BODY_FAULT_LOCAL_NAME)) {
+ } else if ((elementLevel == 3) &&
+ parent.getLocalName().equalsIgnoreCase(
+ SOAPConstants.BODY_LOCAL_NAME) &&
+ elementName.equalsIgnoreCase(
+ SOAPConstants.BODY_FAULT_LOCAL_NAME)) {
// this is a headerblock
element = soapFactory.createSOAPFault((SOAPBody) parent, this);
@@ -261,9 +287,11 @@
//added
processingMandatoryFaultElements = true;
- if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(envelopeNamespace.getName())) {
+ if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(
+ envelopeNamespace.getName())) {
builderHelper = new SOAP12BuilderHelper(this);
- } else if (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(envelopeNamespace.getName())) {
+ } else if (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(
+ envelopeNamespace.getName())) {
builderHelper = new SOAP11BuilderHelper(this);
}
@@ -273,7 +301,7 @@
// this is neither of above. Just create an element
element = soapFactory.createOMElement(elementName, null,
- parent, this);
+ parent, this);
processNamespaceData(element, false);
processAttributes(element);
@@ -365,7 +393,7 @@
int namespaceCount = parser.getNamespaceCount();
for (int i = 0; i < namespaceCount; i++) {
node.declareNamespace(parser.getNamespaceURI(i),
- parser.getNamespacePrefix(i));
+ parser.getNamespacePrefix(i));
}
// set the own namespace
@@ -395,7 +423,11 @@
// throw new OMException("All elements must be namespace qualified!");
// }
if (isSOAPElement) {
- if (node.getNamespace() != null && !node.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI) && !node.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)) {
+ if (node.getNamespace() != null &&
+ !node.getNamespace().getName().equals(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI) &&
+ !node.getNamespace().getName().equals(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)) {
throw new OMBuilderException("invalid SOAP namespace URI");
}
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/factory/SOAPLinkedListImplFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/factory/SOAPLinkedListImplFactory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/factory/SOAPLinkedListImplFactory.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/factory/SOAPLinkedListImplFactory.java Mon Jul 11 10:48:55 2005
@@ -3,7 +3,20 @@
import org.apache.axis2.om.OMNamespace;
import org.apache.axis2.om.OMXMLParserWrapper;
import org.apache.axis2.om.impl.llom.factory.OMLinkedListImplFactory;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPFault;
+import org.apache.axis2.soap.SOAPFaultCode;
+import org.apache.axis2.soap.SOAPFaultDetail;
+import org.apache.axis2.soap.SOAPFaultNode;
+import org.apache.axis2.soap.SOAPFaultReason;
+import org.apache.axis2.soap.SOAPFaultRole;
+import org.apache.axis2.soap.SOAPFaultSubCode;
+import org.apache.axis2.soap.SOAPFaultText;
+import org.apache.axis2.soap.SOAPFaultValue;
+import org.apache.axis2.soap.SOAPHeader;
+import org.apache.axis2.soap.SOAPHeaderBlock;
import org.apache.axis2.soap.impl.llom.SOAPEnvelopeImpl;
import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
@@ -41,17 +54,23 @@
throw new UnsupportedOperationException();
}
- public SOAPHeader createSOAPHeader(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
+ public SOAPHeader createSOAPHeader(SOAPEnvelope envelope,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
- public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+ public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
+ OMNamespace ns,
+ SOAPHeader parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
- public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder) throws SOAPProcessingException {
+ public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
+ OMNamespace ns,
+ SOAPHeader parent,
+ OMXMLParserWrapper builder) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
@@ -65,7 +84,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper builder) {
+ public SOAPFault createSOAPFault(SOAPBody parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -73,7 +93,8 @@
throw new UnsupportedOperationException();
}
- public SOAPBody createSOAPBody(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
+ public SOAPBody createSOAPBody(SOAPEnvelope envelope,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -81,7 +102,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFaultCode createSOAPFaultCode(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultCode createSOAPFaultCode(SOAPFault parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -89,7 +111,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -99,7 +122,8 @@
}
//added
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -109,7 +133,8 @@
}
//changed
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -117,7 +142,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -125,7 +151,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFaultReason createSOAPFaultReason(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultReason createSOAPFaultReason(SOAPFault parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -133,7 +160,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent, OMXMLParserWrapper builder) {
+ public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -141,7 +169,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFaultNode createSOAPFaultNode(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultNode createSOAPFaultNode(SOAPFault parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -149,7 +178,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFaultRole createSOAPFaultRole(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultRole createSOAPFaultRole(SOAPFault parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
@@ -157,7 +187,8 @@
throw new UnsupportedOperationException();
}
- public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent,
+ OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11Factory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11Factory.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11Factory.java Mon Jul 11 10:48:55 2005
@@ -3,7 +3,19 @@
import org.apache.axis2.om.OMNamespace;
import org.apache.axis2.om.OMXMLParserWrapper;
import org.apache.axis2.om.impl.llom.OMNamespaceImpl;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFault;
+import org.apache.axis2.soap.SOAPFaultCode;
+import org.apache.axis2.soap.SOAPFaultDetail;
+import org.apache.axis2.soap.SOAPFaultNode;
+import org.apache.axis2.soap.SOAPFaultReason;
+import org.apache.axis2.soap.SOAPFaultRole;
+import org.apache.axis2.soap.SOAPFaultSubCode;
+import org.apache.axis2.soap.SOAPFaultText;
+import org.apache.axis2.soap.SOAPFaultValue;
+import org.apache.axis2.soap.SOAPHeader;
+import org.apache.axis2.soap.SOAPHeaderBlock;
import org.apache.axis2.soap.impl.llom.SOAPEnvelopeImpl;
import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
import org.apache.axis2.soap.impl.llom.factory.SOAPLinkedListImplFactory;
@@ -30,22 +42,31 @@
*/
public SOAPEnvelope createSOAPEnvelope() {
- return new SOAPEnvelopeImpl(new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX));
+ return new SOAPEnvelopeImpl(
+ new OMNamespaceImpl(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+ SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX));
}
public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException {
return new SOAP11HeaderImpl(envelope);
}
- public SOAPHeader createSOAPHeader(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
+ public SOAPHeader createSOAPHeader(SOAPEnvelope envelope,
+ OMXMLParserWrapper builder) {
return new SOAP11HeaderImpl(envelope, builder);
}
- public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+ public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
+ OMNamespace ns,
+ SOAPHeader parent) throws SOAPProcessingException {
return new SOAP11HeaderBlockImpl(localName, ns, parent);
}
- public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder) throws SOAPProcessingException {
+ public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
+ OMNamespace ns,
+ SOAPHeader parent,
+ OMXMLParserWrapper builder) throws SOAPProcessingException {
return new SOAP11HeaderBlockImpl(localName, ns, parent, builder);
}
@@ -57,7 +78,8 @@
return new SOAP11FaultImpl(parent);
}
- public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper builder) {
+ public SOAPFault createSOAPFault(SOAPBody parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultImpl(parent, builder);
}
@@ -65,7 +87,8 @@
return new SOAP11BodyImpl(envelope);
}
- public SOAPBody createSOAPBody(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
+ public SOAPBody createSOAPBody(SOAPEnvelope envelope,
+ OMXMLParserWrapper builder) {
return new SOAP11BodyImpl(envelope, builder);
}
@@ -73,7 +96,8 @@
return new SOAP11FaultCodeImpl(parent);
}
- public SOAPFaultCode createSOAPFaultCode(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultCode createSOAPFaultCode(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultCodeImpl(parent, builder);
}
@@ -81,7 +105,8 @@
return new SOAP11FaultValueImpl(parent);
}
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultValueImpl(parent, builder);
}
@@ -91,7 +116,8 @@
}
//added
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultValueImpl(parent, builder);
}
@@ -101,7 +127,8 @@
}
//changed
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultSubCodeImpl(parent, builder);
}
@@ -109,7 +136,8 @@
return new SOAP11FaultSubCodeImpl(parent);
}
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultSubCodeImpl(parent, builder);
}
@@ -117,7 +145,8 @@
return new SOAP11FaultReasonImpl(parent);
}
- public SOAPFaultReason createSOAPFaultReason(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultReason createSOAPFaultReason(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultReasonImpl(parent, builder);
}
@@ -125,7 +154,8 @@
return new SOAP11FaultTextImpl(parent);
}
- public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent, OMXMLParserWrapper builder) {
+ public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultTextImpl(parent, builder);
}
@@ -133,7 +163,8 @@
return new SOAP11FaultNodeImpl(parent);
}
- public SOAPFaultNode createSOAPFaultNode(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultNode createSOAPFaultNode(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultNodeImpl(parent, builder);
}
@@ -141,7 +172,8 @@
return new SOAP11FaultRoleImpl(parent);
}
- public SOAPFaultRole createSOAPFaultRole(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultRole createSOAPFaultRole(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultRoleImpl(parent, builder);
}
@@ -149,14 +181,16 @@
return new SOAP11FaultDetailImpl(parent);
}
- public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP11FaultDetailImpl(parent, builder);
}
public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
OMNamespace ns =
- new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
- SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+ new OMNamespaceImpl(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+ SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns);
SOAPHeader headerImpl = createSOAPHeader(env);
SOAPBody bodyImpl = createSOAPBody(env);
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java Mon Jul 11 10:48:55 2005
@@ -56,21 +56,24 @@
public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
if (!(subCode instanceof SOAP11FaultSubCodeImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Sub Code. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Sub Code. But received some other implementation");
}
super.setSubCode(subCode);
}
public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
if (!(value instanceof SOAP11FaultValueImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Value. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Value. But received some other implementation");
}
super.setValue(value);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
}
}
@@ -83,7 +86,8 @@
}
if ((builderType == PUSH_TYPE_BUILDER)
&& (builder.getRegisteredContentHandler() == null)) {
- builder.registerExternalContentHandler(new StreamWriterToContentHandlerConverter(omOutput));
+ builder.registerExternalContentHandler(
+ new StreamWriterToContentHandlerConverter(omOutput));
}
XMLStreamWriter writer = omOutput.getXmlStreamWriter();
@@ -91,9 +95,10 @@
String prefix = this.getNamespace().getPrefix();
String nameSpaceName = this.getNamespace().getName();
writer.writeStartElement(prefix, SOAP11Constants.SOAP_FAULT_CODE_LOCAL_NAME,
- nameSpaceName);
+ nameSpaceName);
} else {
- writer.writeStartElement(SOAP11Constants.SOAP_FAULT_CODE_LOCAL_NAME);
+ writer.writeStartElement(
+ SOAP11Constants.SOAP_FAULT_CODE_LOCAL_NAME);
}
OMSerializerUtil.serializeAttributes(this, omOutput);
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java Mon Jul 11 10:48:55 2005
@@ -41,7 +41,8 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
}
}
@@ -62,16 +63,18 @@
}
if ((builderType == PUSH_TYPE_BUILDER)
&& (builder.getRegisteredContentHandler() == null)) {
- builder.registerExternalContentHandler(new StreamWriterToContentHandlerConverter(omOutput));
+ builder.registerExternalContentHandler(
+ new StreamWriterToContentHandlerConverter(omOutput));
}
XMLStreamWriter writer = omOutput.getXmlStreamWriter();
if (this.getNamespace() != null) {
String prefix = this.getNamespace().getPrefix();
String nameSpaceName = this.getNamespace().getName();
writer.writeStartElement(prefix, SOAP11Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,
- nameSpaceName);
+ nameSpaceName);
} else {
- writer.writeStartElement(SOAP11Constants.SOAP_FAULT_DETAIL_LOCAL_NAME);
+ writer.writeStartElement(
+ SOAP11Constants.SOAP_FAULT_DETAIL_LOCAL_NAME);
}
OMSerializerUtil.serializeAttributes(this, omOutput);
OMSerializerUtil.serializeNamespaces(this, omOutput);
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultImpl.java Mon Jul 11 10:48:55 2005
@@ -3,7 +3,13 @@
import org.apache.axis2.om.OMElement;
import org.apache.axis2.om.OMOutput;
import org.apache.axis2.om.OMXMLParserWrapper;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.soap.SOAPFault;
+import org.apache.axis2.soap.SOAPFaultCode;
+import org.apache.axis2.soap.SOAPFaultDetail;
+import org.apache.axis2.soap.SOAPFaultNode;
+import org.apache.axis2.soap.SOAPFaultReason;
+import org.apache.axis2.soap.SOAPFaultRole;
import org.apache.axis2.soap.impl.llom.SOAPFaultImpl;
import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
@@ -64,41 +70,47 @@
public void setCode(SOAPFaultCode soapFaultCode) throws SOAPProcessingException {
if (!(soapFaultCode instanceof SOAP11FaultCodeImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Code. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Code. But received some other implementation");
}
super.setCode(soapFaultCode);
}
public void setReason(SOAPFaultReason reason) throws SOAPProcessingException {
if (!(reason instanceof SOAP11FaultReasonImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Reason. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Reason. But received some other implementation");
}
super.setReason(reason);
}
//
public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
if (!(node instanceof SOAP11FaultNodeImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Node. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Node. But received some other implementation");
}
super.setNode(node);
}
public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
if (!(role instanceof SOAP11FaultRoleImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Role. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Role. But received some other implementation");
}
super.setRole(role);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11BodyImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Body as the parent. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Body as the parent. But received some other implementation");
}
}
public void setDetail(SOAPFaultDetail detail) throws SOAPProcessingException {
if (!(detail instanceof SOAP11FaultDetailImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Detail. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Detail. But received some other implementation");
}
super.setDetail(detail);
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultNodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultNodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultNodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultNodeImpl.java Mon Jul 11 10:48:55 2005
@@ -36,7 +36,8 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
}
}
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java Mon Jul 11 10:48:55 2005
@@ -47,14 +47,16 @@
public void setSOAPText(SOAPFaultText soapFaultText) throws SOAPProcessingException {
if (!(soapFaultText instanceof SOAP11FaultTextImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Text. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Text. But received some other implementation");
}
super.setSOAPText(soapFaultText);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
}
}
@@ -67,7 +69,8 @@
}
if ((builderType == PUSH_TYPE_BUILDER)
&& (builder.getRegisteredContentHandler() == null)) {
- builder.registerExternalContentHandler(new StreamWriterToContentHandlerConverter(omOutput));
+ builder.registerExternalContentHandler(
+ new StreamWriterToContentHandlerConverter(omOutput));
}
XMLStreamWriter writer = omOutput.getXmlStreamWriter();
@@ -75,9 +78,10 @@
String prefix = this.getNamespace().getPrefix();
String nameSpaceName = this.getNamespace().getName();
writer.writeStartElement(prefix, SOAP11Constants.SOAP_FAULT_STRING_LOCAL_NAME,
- nameSpaceName);
+ nameSpaceName);
} else {
- writer.writeStartElement(SOAP11Constants.SOAP_FAULT_STRING_LOCAL_NAME);
+ writer.writeStartElement(
+ SOAP11Constants.SOAP_FAULT_STRING_LOCAL_NAME);
}
OMSerializerUtil.serializeAttributes(this, omOutput);
OMSerializerUtil.serializeNamespaces(this, omOutput);
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java Mon Jul 11 10:48:55 2005
@@ -41,7 +41,8 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
}
}
@@ -54,7 +55,8 @@
}
if ((builderType == PUSH_TYPE_BUILDER)
&& (builder.getRegisteredContentHandler() == null)) {
- builder.registerExternalContentHandler(new StreamWriterToContentHandlerConverter(omOutput));
+ builder.registerExternalContentHandler(
+ new StreamWriterToContentHandlerConverter(omOutput));
}
XMLStreamWriter writer = omOutput.getXmlStreamWriter();
@@ -62,9 +64,10 @@
String prefix = this.getNamespace().getPrefix();
String nameSpaceName = this.getNamespace().getName();
writer.writeStartElement(prefix, SOAP11Constants.SOAP_FAULT_ACTOR_LOCAL_NAME,
- nameSpaceName);
+ nameSpaceName);
} else {
- writer.writeStartElement(SOAP11Constants.SOAP_FAULT_ACTOR_LOCAL_NAME);
+ writer.writeStartElement(
+ SOAP11Constants.SOAP_FAULT_ACTOR_LOCAL_NAME);
}
OMSerializerUtil.serializeAttributes(this, omOutput);
OMSerializerUtil.serializeNamespaces(this, omOutput);
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java Mon Jul 11 10:48:55 2005
@@ -34,7 +34,8 @@
}
//changed
- public SOAP11FaultSubCodeImpl(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+ public SOAP11FaultSubCodeImpl(SOAPFaultCode parent,
+ OMXMLParserWrapper builder) {
super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder);
}
@@ -42,26 +43,31 @@
super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
}
- public SOAP11FaultSubCodeImpl(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
+ public SOAP11FaultSubCodeImpl(SOAPFaultSubCode parent,
+ OMXMLParserWrapper builder) {
super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
- if (!(parent instanceof SOAP11FaultSubCodeImpl) || (parent instanceof SOAP11FaultCodeImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation");
+ if (!(parent instanceof SOAP11FaultSubCodeImpl) ||
+ (parent instanceof SOAP11FaultCodeImpl)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation");
}
}
public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
if (!(subCode instanceof SOAP11FaultSubCodeImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Sub Code. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Sub Code. But received some other implementation");
}
super.setSubCode(subCode);
}
public void setValue(SOAPFaultValue soapFaultSubCodeValue) throws SOAPProcessingException {
if (!(soapFaultSubCodeValue instanceof SOAP11FaultValueImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Value. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Value. But received some other implementation");
}
super.setValue(soapFaultSubCodeValue);
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultTextImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultTextImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultTextImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultTextImpl.java Mon Jul 11 10:48:55 2005
@@ -29,13 +29,15 @@
super(parent);
}
- public SOAP11FaultTextImpl(SOAPFaultReason parent, OMXMLParserWrapper builder) {
+ public SOAP11FaultTextImpl(SOAPFaultReason parent,
+ OMXMLParserWrapper builder) {
super(parent, builder);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultReasonImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP FaultReason as the parent. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP FaultReason as the parent. But received some other implementation");
}
}
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultValueImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultValueImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultValueImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11FaultValueImpl.java Mon Jul 11 10:48:55 2005
@@ -34,8 +34,11 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
- if (!((parent instanceof SOAP11FaultSubCodeImpl) || (parent instanceof SOAP11FaultCodeImpl))) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation." + parent.getClass());
+ if (!((parent instanceof SOAP11FaultSubCodeImpl) ||
+ (parent instanceof SOAP11FaultCodeImpl))) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation." +
+ parent.getClass());
}
}
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java Mon Jul 11 10:48:55 2005
@@ -31,7 +31,9 @@
* @param localName
* @param ns
*/
- public SOAP11HeaderBlockImpl(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+ public SOAP11HeaderBlockImpl(String localName,
+ OMNamespace ns,
+ SOAPHeader parent) throws SOAPProcessingException {
super(localName, ns, parent);
checkParent(parent);
}
@@ -44,35 +46,50 @@
* @param parent
* @param builder
*/
- public SOAP11HeaderBlockImpl(String localName, OMNamespace ns, OMElement parent, OMXMLParserWrapper builder) {
+ public SOAP11HeaderBlockImpl(String localName,
+ OMNamespace ns,
+ OMElement parent,
+ OMXMLParserWrapper builder) {
super(localName, ns, parent, builder);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11HeaderImpl)) {
- throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Body as the parent. But received some other implementation");
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Body as the parent. But received some other implementation");
}
}
public void setRole(String roleURI) {
- setAttribute(SOAP11Constants.ATTR_ACTOR, roleURI, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+ setAttribute(SOAP11Constants.ATTR_ACTOR,
+ roleURI,
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
}
public String getRole() {
- return getAttribute(SOAP11Constants.ATTR_ACTOR, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+ return getAttribute(SOAP11Constants.ATTR_ACTOR,
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
}
public void setMustUnderstand(boolean mustUnderstand) {
- setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, mustUnderstand ? "1" : "0", SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+ setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
+ mustUnderstand ? "1" : "0",
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
}
public void setMustUnderstand(String mustUnderstand) throws SOAPProcessingException {
- if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equals(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equals(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) {
- setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, mustUnderstand, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+ if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equals(mustUnderstand) ||
+ SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equals(mustUnderstand) ||
+ SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand) ||
+ SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) {
+ setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
+ mustUnderstand,
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
} else {
- throw new SOAPProcessingException("mustUndertand should be one of \"true\", \"false\", \"0\" or \"1\" ");
+ throw new SOAPProcessingException(
+ "mustUndertand should be one of \"true\", \"false\", \"0\" or \"1\" ");
}
}
@@ -86,14 +103,25 @@
*/
public boolean getMustUnderstand() throws SOAPProcessingException {
String mustUnderstand = "";
- if ((mustUnderstand = getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI))
+ if ((mustUnderstand =
+ getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI))
!= null) {
- if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase(mustUnderstand)) {
+ if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(
+ mustUnderstand) ||
+ SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase(
+ mustUnderstand)) {
return true;
- } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase(mustUnderstand)) {
+ } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase(
+ mustUnderstand) ||
+ SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase(
+ mustUnderstand)) {
return false;
} else {
- throw new SOAPProcessingException("Invalid value found in mustUnderstand value of " + this.getLocalName() + " header block");
+ throw new SOAPProcessingException(
+ "Invalid value found in mustUnderstand value of " +
+ this.getLocalName() +
+ " header block");
}
}
return false;
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11HeaderImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11HeaderImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11HeaderImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap11/SOAP11HeaderImpl.java Mon Jul 11 10:48:55 2005
@@ -48,7 +48,8 @@
public SOAPHeaderBlock addHeaderBlock(String localName, OMNamespace ns) throws OMException {
if (ns == null || ns.getName() == null || "".equals(ns.getName())) {
- throw new OMException("All the SOAP Header blocks should be namespace qualified");
+ throw new OMException(
+ "All the SOAP Header blocks should be namespace qualified");
}
OMNamespace namespace = findNamespace(ns.getName(), ns.getPrefix());
@@ -68,10 +69,10 @@
public Iterator extractHeaderBlocks(String role) {
return new OMChildrenWithSpecificAttributeIterator(getFirstChild(),
- new QName(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
- SOAP11Constants.ATTR_ACTOR),
- role,
- true);
+ new QName(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+ SOAP11Constants.ATTR_ACTOR),
+ role,
+ true);
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12Factory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12Factory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12Factory.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12Factory.java Mon Jul 11 10:48:55 2005
@@ -3,7 +3,19 @@
import org.apache.axis2.om.OMNamespace;
import org.apache.axis2.om.OMXMLParserWrapper;
import org.apache.axis2.om.impl.llom.OMNamespaceImpl;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFault;
+import org.apache.axis2.soap.SOAPFaultCode;
+import org.apache.axis2.soap.SOAPFaultDetail;
+import org.apache.axis2.soap.SOAPFaultNode;
+import org.apache.axis2.soap.SOAPFaultReason;
+import org.apache.axis2.soap.SOAPFaultRole;
+import org.apache.axis2.soap.SOAPFaultSubCode;
+import org.apache.axis2.soap.SOAPFaultText;
+import org.apache.axis2.soap.SOAPFaultValue;
+import org.apache.axis2.soap.SOAPHeader;
+import org.apache.axis2.soap.SOAPHeaderBlock;
import org.apache.axis2.soap.impl.llom.SOAPEnvelopeImpl;
import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
import org.apache.axis2.soap.impl.llom.factory.SOAPLinkedListImplFactory;
@@ -30,22 +42,31 @@
*/
public SOAPEnvelope createSOAPEnvelope() {
- return new SOAPEnvelopeImpl(new OMNamespaceImpl(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI, SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX));
+ return new SOAPEnvelopeImpl(
+ new OMNamespaceImpl(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+ SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX));
}
public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException {
return new SOAP12HeaderImpl(envelope);
}
- public SOAPHeader createSOAPHeader(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
+ public SOAPHeader createSOAPHeader(SOAPEnvelope envelope,
+ OMXMLParserWrapper builder) {
return new SOAP12HeaderImpl(envelope, builder);
}
- public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+ public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
+ OMNamespace ns,
+ SOAPHeader parent) throws SOAPProcessingException {
return new SOAP12HeaderBlockImpl(localName, ns, parent);
}
- public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder) throws SOAPProcessingException {
+ public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
+ OMNamespace ns,
+ SOAPHeader parent,
+ OMXMLParserWrapper builder) throws SOAPProcessingException {
return new SOAP12HeaderBlockImpl(localName, ns, parent, builder);
}
@@ -57,7 +78,8 @@
return new SOAP12FaultImpl(parent);
}
- public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper builder) {
+ public SOAPFault createSOAPFault(SOAPBody parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultImpl(parent, builder);
}
@@ -65,7 +87,8 @@
return new SOAP12BodyImpl(envelope);
}
- public SOAPBody createSOAPBody(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
+ public SOAPBody createSOAPBody(SOAPEnvelope envelope,
+ OMXMLParserWrapper builder) {
return new SOAP12BodyImpl(envelope, builder);
}
@@ -73,7 +96,8 @@
return new SOAP12FaultCodeImpl(parent);
}
- public SOAPFaultCode createSOAPFaultCode(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultCode createSOAPFaultCode(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultCodeImpl(parent, builder);
}
@@ -81,7 +105,8 @@
return new SOAP12FaultValueImpl(parent);
}
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultValueImpl(parent, builder);
}
@@ -91,7 +116,8 @@
}
//added
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultValueImpl(parent, builder);
}
@@ -101,7 +127,8 @@
}
//changed
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultSubCodeImpl(parent, builder);
}
@@ -109,7 +136,8 @@
return new SOAP12FaultSubCodeImpl(parent);
}
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultSubCodeImpl(parent, builder);
}
@@ -117,7 +145,8 @@
return new SOAP12FaultReasonImpl(parent);
}
- public SOAPFaultReason createSOAPFaultReason(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultReason createSOAPFaultReason(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultReasonImpl(parent, builder);
}
@@ -125,7 +154,8 @@
return new SOAP12FaultTextImpl(parent);
}
- public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent, OMXMLParserWrapper builder) {
+ public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultTextImpl(parent, builder);
}
@@ -133,7 +163,8 @@
return new SOAP12FaultNodeImpl(parent);
}
- public SOAPFaultNode createSOAPFaultNode(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultNode createSOAPFaultNode(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultNodeImpl(parent, builder);
}
@@ -141,7 +172,8 @@
return new SOAP12FaultRoleImpl(parent);
}
- public SOAPFaultRole createSOAPFaultRole(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultRole createSOAPFaultRole(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultRoleImpl(parent, builder);
}
@@ -149,14 +181,16 @@
return new SOAP12FaultDetailImpl(parent);
}
- public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent, OMXMLParserWrapper builder) {
+ public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent,
+ OMXMLParserWrapper builder) {
return new SOAP12FaultDetailImpl(parent, builder);
}
public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
OMNamespace ns =
- new OMNamespaceImpl(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
- SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+ new OMNamespaceImpl(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+ SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns);
SOAPHeader headerImpl = createSOAPHeader(env);
SOAPBody bodyImpl = createSOAPBody(env);