axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r123199 - in webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl: . impl
Date Thu, 23 Dec 2004 14:26:32 GMT
Author: chathura
Date: Thu Dec 23 06:26:31 2004
New Revision: 123199

URL: http://svn.apache.org/viewcvs?view=rev&rev=123199
Log:
WSDL11TOWOMBuilder core complete. WSDLBinding components in the WOM completed.
Added:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingFault.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingMessageReference.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingOperation.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java
Modified:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java?view=diff&rev=123199&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java&r1=123198&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java&r2=123199
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java
Thu Dec 23 06:26:31 2004
@@ -25,4 +25,8 @@
     public Element getElement();
 
     public void setElement(Element element);
+    
+    public boolean isRequired();
+    
+    public void setRequired(boolean required);
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java?view=diff&rev=123199&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java&r1=123198&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java&r2=123199
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java
Thu Dec 23 06:26:31 2004
@@ -15,8 +15,7 @@
  */
 package org.apache.wsdl;
 
-import java.net.URI;
-import java.util.List;
+import java.util.HashMap;
 
 import javax.xml.namespace.QName;
 
@@ -26,25 +25,29 @@
  *
  */
 public interface WSDLBinding extends ExtensibleComponent{
-   
-
     public WSDLInterface getBoundInterface();
 
     public void setBoundInterface(WSDLInterface boundInterface);
 
-    public List getFaults();
-
-    public void setFaults(List faults);
-
     public QName getName();
 
     public void setName(QName name);
 
-    public List getOperations();
+    public String getTargetNameSpace();
+
+    public HashMap getBindingFaults();
+
+    public void setBindingFaults(HashMap bindingFaults);
+
+    public HashMap getBindingOperations();
+
+    public void setBindingOperations(HashMap bindingOperations);
+
+    public void addBindingOperation(WSDLBindingOperation bindingOperation);
 
-    public void setOperations(List operations);
+    public WSDLBindingOperation getBindingOperation(QName qName);
 
-    public URI getTargetNameSpace();
+    public void addBindingFaults(WSDLBindingFault bindingFault);
 
-    public void setTargetNameSpace(URI targetNameSpace);
+    public WSDLBindingFault getBindingFault(QName ref);
 }

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingFault.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingFault.java?view=auto&rev=123199
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingFault.java
Thu Dec 23 06:26:31 2004
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wsdl;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLBindingFault {
+    public QName getRef();
+
+    public void setRef(QName ref);
+}
\ No newline at end of file

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingMessageReference.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingMessageReference.java?view=auto&rev=123199
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingMessageReference.java
Thu Dec 23 06:26:31 2004
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wsdl;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLBindingMessageReference extends ExtensibleComponent{
+    public String getDirection();
+
+    public void setDirection(String direction);
+
+    public String getMessageLabel();
+
+    public void setMessageLabel(String messageLabel);
+}
\ No newline at end of file

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingOperation.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingOperation.java?view=auto&rev=123199
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBindingOperation.java
Thu Dec 23 06:26:31 2004
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wsdl;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLBindingOperation extends ExtensibleComponent{
+    
+    
+    public WSDLBindingMessageReference getInput();
+
+    public void setInput(WSDLBindingMessageReference input);
+
+    public WSDLOperation getOperation();
+
+    public void setOperation(WSDLOperation operation);
+
+    public WSDLBindingMessageReference getOutput();
+
+    public void setOutput(WSDLBindingMessageReference output);
+    
+    public QName getName() ;
+    
+    public void setName(QName name) ;
+}
\ No newline at end of file

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java?view=diff&rev=123199&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java&r1=123198&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java&r2=123199
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java
Thu Dec 23 06:26:31 2004
@@ -30,16 +30,16 @@
     public void setEndpoints(HashMap endpoints);
 
     /**
-     * Will add a WSDLEndpoint object to the WOM keyed with NCName;
+     * Will add a WSDLEndpoint object to the WOM keyed with qname;
      */
-    public void setEndpoint(WSDLEndpoint endpoint, String nCName);
+    public void setEndpoint(WSDLEndpoint endpoint);
 
     /**
-     * Endpoint will be retrived by its NCName.
-     * @param nCName NCName of the Service
+     * Endpoint will be retrived by its qName.
+     * @param qName qName of the Service
      * @return WSDLService Object or will throw an WSDLProcessingException in the case of
object not found. 
      */
-    public WSDLService getEndpoint(String nCName);
+    public WSDLService getEndpoint(QName qName);
 
     public QName getName();
 

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java?view=diff&rev=123199&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java&r1=123198&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java&r2=123199
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
Thu Dec 23 06:26:31 2004
@@ -26,6 +26,16 @@
 
     private Element element;
     
+    private boolean required;
+    
+    
+    
+    public boolean isRequired() {
+        return required;
+    }
+    public void setRequired(boolean required) {
+        this.required = required;
+    }
     public Element getElement() {
         return element;
     }

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java?view=auto&rev=123199
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java
Thu Dec 23 06:26:31 2004
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wsdl.impl;
+
+import javax.xml.namespace.QName;
+
+import org.apache.wsdl.WSDLBindingFault;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLBindingFaultImpl extends ExtensibleComponentImpl implements WSDLBindingFault
{
+
+    private QName ref;
+    
+    
+    public QName getRef() {
+        return ref;
+    }
+    public void setRef(QName ref) {
+        this.ref = ref;
+    }
+}

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java?view=diff&rev=123199&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java&r1=123198&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java&r2=123199
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java
Thu Dec 23 06:26:31 2004
@@ -15,29 +15,28 @@
  */
 package org.apache.wsdl.impl;
 
-import java.net.URI;
-import java.util.List;
+import java.util.HashMap;
 
 import javax.xml.namespace.QName;
 
 import org.apache.wsdl.WSDLBinding;
+import org.apache.wsdl.WSDLBindingFault;
+import org.apache.wsdl.WSDLBindingOperation;
 import org.apache.wsdl.WSDLInterface;
 
 /**
  * @author chathura@opensource.lk
  *
  */
-public class WSDLBindingImpl extends ExtensibleComponentImpl implements WSDLBinding  {
+public class WSDLBindingImpl extends ExtensibleComponentImpl implements WSDLBinding   {
 
 	private QName name;
 	
-	private URI targetNameSpace;
-	
 	private WSDLInterface boundInterface;
 	
-	private List faults;
+	private HashMap bindingFaults = new HashMap();
 	
-	private List operations;
+	private HashMap bindingOperations = new HashMap();
 	
 	
 	
@@ -50,28 +49,47 @@
 	public void setBoundInterface(WSDLInterface boundInterface) {
 		this.boundInterface = boundInterface;
 	}
-	public List getFaults() {
-		return faults;
-	}
-	public void setFaults(List faults) {
-		this.faults = faults;
-	}
+	
 	public QName getName() {
 		return name;
 	}
 	public void setName(QName name) {
 		this.name = name;
 	}
-	public List getOperations() {
-		return operations;
-	}
-	public void setOperations(List operations) {
-		this.operations = operations;
+	
+	public String getTargetNameSpace() {
+		return this.name.getLocalPart();
 	}
-	public URI getTargetNameSpace() {
-		return targetNameSpace;
+	
+	
+   
+    public HashMap getBindingFaults() {
+        return bindingFaults;
+    }
+    public void setBindingFaults(HashMap bindingFaults) {
+        this.bindingFaults = bindingFaults;
+    }
+    public HashMap getBindingOperations() {
+        return bindingOperations;
+    }
+    public void setBindingOperations(HashMap bindingOperations) {
+        this.bindingOperations = bindingOperations;
+    }
+	public void addBindingOperation(WSDLBindingOperation bindingOperation){
+	    if(null != bindingOperation)
+	        this.bindingOperations.put(bindingOperation.getName(), bindingOperation);
+	}
+	public WSDLBindingOperation getBindingOperation(QName qName){
+	    return (WSDLBindingOperation)this.bindingOperations.get(qName);
+	}
+	
+	public void addBindingFaults(WSDLBindingFault bindingFault){
+	    if(null != bindingFault)
+	        this.bindingFaults.put(bindingFault.getRef(), bindingFault);	    
 	}
-	public void setTargetNameSpace(URI targetNameSpace) {
-		this.targetNameSpace = targetNameSpace;
+	
+	public WSDLBindingFault getBindingFault(QName ref){
+	    return (WSDLBindingFault)this.bindingFaults.get(ref);	    
 	}
+	
 }

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java?view=auto&rev=123199
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java
Thu Dec 23 06:26:31 2004
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wsdl.impl;
+
+import org.apache.wsdl.WSDLBindingMessageReference;
+
+/**
+ * @author chathura@opensource.lk
+ *  
+ */
+public class WSDLBindingMessageReferenceImpl extends ExtensibleComponentImpl implements WSDLBindingMessageReference
{
+
+    //  Referes to the MEP the Message relates to.
+    private String messageLabel;
+
+    // Can be "in" or "out" depending on the element name being "input" or
+    // "output" respectively;
+    private String Direction;
+
+    public String getDirection() {
+        return Direction;
+    }
+
+    public void setDirection(String direction) {
+        Direction = direction;
+    }
+
+    public String getMessageLabel() {
+        return messageLabel;
+    }
+
+    public void setMessageLabel(String messageLabel) {
+        this.messageLabel = messageLabel;
+    }
+}
\ No newline at end of file

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java?view=auto&rev=123199
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java
Thu Dec 23 06:26:31 2004
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wsdl.impl;
+
+import javax.xml.namespace.QName;
+
+import org.apache.wsdl.WSDLBindingMessageReference;
+import org.apache.wsdl.WSDLBindingOperation;
+import org.apache.wsdl.WSDLOperation;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLBindingOperationImpl extends ExtensibleComponentImpl implements WSDLBindingOperation
{
+
+    private QName name;
+    
+    private WSDLOperation operation;
+    
+    private WSDLBindingMessageReference input;
+    
+    private WSDLBindingMessageReference output;
+    
+    
+    public WSDLBindingMessageReference getInput() {
+        return input;
+    }
+    public void setInput(WSDLBindingMessageReference input) {
+        this.input = input;
+    }
+    public WSDLOperation getOperation() {
+        return operation;
+    }
+    public void setOperation(WSDLOperation operation) {
+        this.operation = operation;
+    }
+    public WSDLBindingMessageReference getOutput() {
+        return output;
+    }
+    public void setOutput(WSDLBindingMessageReference output) {
+        this.output = output;
+    }
+    
+    
+    public QName getName() {
+        return name;
+    }
+    public void setName(QName name) {
+        this.name = name;
+    }
+}

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java?view=diff&rev=123199&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java&r1=123198&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java&r2=123199
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java
Thu Dec 23 06:26:31 2004
@@ -56,20 +56,20 @@
     }
     
     /**
-     * Will add a WSDLEndpoint object to the WOM keyed with NCName;
+     * Will add a WSDLEndpoint object to the WOM keyed with qname;
      */
-    public void setEndpoint(WSDLEndpoint endpoint, String nCName){
-        this.endpoints.put(nCName, endpoint);
+    public void setEndpoint(WSDLEndpoint endpoint){
+        this.endpoints.put(endpoint.getName(), endpoint);
     }
     
     /**
-	 * Endpoint will be retrived by its NCName.
-	 * @param nCName NCName of the Service
+	 * Endpoint will be retrived by its qname.
+	 * @param qname qname of the Service
 	 * @return WSDLService Object or will throw an WSDLProcessingException in the case of object
not found. 
 	 */
-	public WSDLService getEndpoint(String nCName){
-	    WSDLService temp = (WSDLService)this.endpoints.get(nCName);
-	    if(null == temp) throw new WSDLProcessingException("Service not found for NCName "+nCName);
+	public WSDLService getEndpoint(QName qName){
+	    WSDLService temp = (WSDLService)this.endpoints.get(qName);
+	    if(null == temp) throw new WSDLProcessingException("Service not found for NCName "+qName);
 	    return temp;
 	}
     public QName getName() {

Mime
View raw message