ws-kandula-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dasar...@apache.org
Subject svn commit: r358906 - /webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/wscoor/_CoordinationContext.java
Date Sat, 24 Dec 2005 02:07:06 GMT
Author: dasarath
Date: Fri Dec 23 18:07:04 2005
New Revision: 358906

URL: http://svn.apache.org/viewcvs?rev=358906&view=rev
Log: (empty)

Modified:
    webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/wscoor/_CoordinationContext.java

Modified: webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/wscoor/_CoordinationContext.java
URL: http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/wscoor/_CoordinationContext.java?rev=358906&r1=358905&r2=358906&view=diff
==============================================================================
--- webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/wscoor/_CoordinationContext.java
(original)
+++ webservices/kandula/branches/Kandula_1/src/java/org/apache/ws/transaction/wscoor/_CoordinationContext.java
Fri Dec 23 18:07:04 2005
@@ -36,7 +36,7 @@
 public class _CoordinationContext {
 	static final Name NAME_COORDINATION_CONTEXT=
 		new PrefixedQName("http://schemas.xmlsoap.org/ws/2004/10/wscoor", "CoordinationContext",
"wscoor");
-	static final Name NAME_IDENTIFIER=
+	public static final Name QNAME_IDENTIFIER=
 		new PrefixedQName("http://schemas.xmlsoap.org/ws/2004/10/wscoor", "Identifier", "wscoor");
 	static final Name NAME_COORDINATION_TYPE=
 		new PrefixedQName("http://schemas.xmlsoap.org/ws/2004/10/wscoor", "CoordinationType", "wscoor");
@@ -54,11 +54,11 @@
 	}
 
 	public _CoordinationContext(
-		Identifier identifier,
+		String id,
 		String coordinationType,
 		EndpointReference registrationServiceEndpoint) {
 		ctx= new CoordinationContext();
-		ctx.setIdentifier(new CoordinationContextTypeIdentifier(identifier.toString()));
+		ctx.setIdentifier(new CoordinationContextTypeIdentifier(id));
 		ctx.setRegistrationService(registrationServiceEndpoint);
 		try {
 			ctx.setCoordinationType(new URI(coordinationType));
@@ -75,7 +75,7 @@
 		System.out.println("[_CoordinationContext] 1");
 		try {			
 			NodeList list=
-				el.getElementsByTagNameNS(NAME_IDENTIFIER.getURI(), NAME_IDENTIFIER.getLocalName());
+				el.getElementsByTagNameNS(QNAME_IDENTIFIER.getURI(), QNAME_IDENTIFIER.getLocalName());
 			System.out.println("[_CoordinationContext] 1.1");
 			Element node= (Element)list.item(0);
 			System.out.println("[_CoordinationContext] 1.2");
@@ -119,7 +119,7 @@
 	public void toSOAPHeaderElement(SOAPHeader header) {
 		try {
 			SOAPHeaderElement e= header.addHeaderElement(NAME_COORDINATION_CONTEXT);
-			e.addChildElement(NAME_IDENTIFIER).addTextNode(ctx.getIdentifier().toString());
+			e.addChildElement(QNAME_IDENTIFIER).addTextNode(ctx.getIdentifier().toString());
 			e.addChildElement(NAME_COORDINATION_TYPE).addTextNode(ctx.getCoordinationType().toString());
 			SOAPElement e1= e.addChildElement(NAME_REGISTRATION_SERVICE);
 			org.apache.axis.message.addressing.EndpointReferenceType registrationEndpoint=



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


Mime
View raw message