You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2005/07/26 10:52:01 UTC
svn commit: r225259 - in /webservices/axis/trunk/java/modules:
core/src/org/apache/axis2/context/MessageContext.java
xml/src/org/apache/axis2/soap/SOAPHeaderBlock.java
Author: chinthaka
Date: Tue Jul 26 01:51:25 2005
New Revision: 225259
URL: http://svn.apache.org/viewcvs?rev=225259&view=rev
Log:
- added a method to get the soap version from the message context
- removed unwanted comments from SOAP Header Block
Modified:
webservices/axis/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeaderBlock.java
Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java?rev=225259&r1=225258&r2=225259&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java Tue Jul 26 01:51:25 2005
@@ -36,7 +36,7 @@
* artifacts does not keep states foward from the execution.
*/
public class MessageContext extends AbstractContext {
-
+
public static final String TRANSPORT_HEADERS = "TRANSPORT_HEADERS";
/**
* Field TRANSPORT_WRITER
@@ -135,6 +135,7 @@
//Rest through GET of HTTP
private boolean doRESTthroughPOST = false;
+ private String soapNamespaceURI = "";
/**
@@ -292,6 +293,7 @@
*/
public void setEnvelope(SOAPEnvelope envelope) {
this.envelope = envelope;
+ soapNamespaceURI = envelope.getNamespace().getName();
}
/**
@@ -507,8 +509,7 @@
/**
* @param collection
*/
- public void setMessageInformationHeaders(
- MessageInformationHeadersCollection collection) {
+ public void setMessageInformationHeaders(MessageInformationHeadersCollection collection) {
messageInformationHeaders = collection;
}
@@ -609,12 +610,17 @@
doingREST = b;
}
- public void setRestThroughPOST(boolean b){
- doRESTthroughPOST = b;
- }
- public boolean isRestThroughPOST(){
- return doRESTthroughPOST;
- }
-
+ public void setRestThroughPOST(boolean b) {
+ doRESTthroughPOST = b;
+ }
+
+ public boolean isRestThroughPOST() {
+ return doRESTthroughPOST;
+ }
+
+
+ public String getSOAPVersion() {
+ return soapNamespaceURI;
+ }
}
Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeaderBlock.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeaderBlock.java?rev=225259&r1=225258&r2=225259&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeaderBlock.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeaderBlock.java Tue Jul 26 01:51:25 2005
@@ -28,8 +28,7 @@
public interface SOAPHeaderBlock extends OMElement {
/**
* Sets the actor associated with this <CODE> SOAPHeaderBlock</CODE> object
- * to the specified actor. The default value of an actor is: <CODE>
- * OMConstants.URI_SOAP_ACTOR_NEXT</CODE>
+ * to the specified actor.
*
* @param roleURI a <CODE>String</CODE> giving the URI of the actor to set
* @throws java.lang.IllegalArgumentException