axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r417263 - in /webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa: EndpointReference.java WSAConstants.java
Date Mon, 26 Jun 2006 18:13:27 GMT
Author: dug
Date: Mon Jun 26 11:13:27 2006
New Revision: 417263

URL: http://svn.apache.org/viewvc?rev=417263&view=rev
Log:
Add util method for creating None EPR
Default to REC WSA

Modified:
    webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java
    webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/WSAConstants.java

Modified: webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java?rev=417263&r1=417262&r2=417263&view=diff
==============================================================================
--- webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java
(original)
+++ webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java
Mon Jun 26 11:13:27 2006
@@ -116,6 +116,18 @@
     return this.address.equals( namespace + "/anonymous" );
   }
 
+  public static EndpointReference None() throws Exception { 
+    if ( staticNS.equals(WSAConstants.NS_WSA1) )  // should fault or something
+      return EndpointReference.fromLocation( staticNS + "/role/none" );
+    return EndpointReference.fromLocation( staticNS + "/none" );
+  }
+
+  public static EndpointReference None(String ns) throws Exception { 
+    if ( ns.equals(WSAConstants.NS_WSA1) )  // should fault or something
+      return EndpointReference.fromLocation( ns + "/role/none" );
+    return EndpointReference.fromLocation( ns + "/none" );
+  }
+
   public boolean isNone() {
     return this.address.equals( namespace + "/none" );
   }

Modified: webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/WSAConstants.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/WSAConstants.java?rev=417263&r1=417262&r2=417263&view=diff
==============================================================================
--- webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/WSAConstants.java (original)
+++ webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/WSAConstants.java Mon
Jun 26 11:13:27 2006
@@ -5,7 +5,7 @@
 public interface WSAConstants {
   public final String NS_WSA1 = "http://schemas.xmlsoap.org/ws/2004/08/addressing";
   public final String NS_WSA2 = "http://www.w3.org/2005/08/addressing";
-  public final String NS_WSA = NS_WSA1 ;
+  public final String NS_WSA = NS_WSA2 ;
 
   public final String EN_EndpointReference = "EndpointReference";
   public final String EN_Address = "Address";



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message