Author: mmerz
Date: Fri Dec  3 12:01:47 2004
New Revision: 109724

URL: http://svn.apache.org/viewcvs?view=rev&rev=109724
Log:
Minor fix to sent the right namespace on the request and response elements.

Contributor: Jonathan Colwell


Modified:
   
incubator/beehive/trunk/wsm/src/runtime/org/apache/beehive/wsm/axis/AxisHook.java

Modified: 
incubator/beehive/trunk/wsm/src/runtime/org/apache/beehive/wsm/axis/AxisHook.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/wsm/src/runtime/org/apache/beehive/wsm/axis/AxisHook.java?view=diff&rev=109724&p1=incubator/beehive/trunk/wsm/src/runtime/org/apache/beehive/wsm/axis/AxisHook.java&r1=109723&p2=incubator/beehive/trunk/wsm/src/runtime/org/apache/beehive/wsm/axis/AxisHook.java&r2=109724
==============================================================================
--- 
incubator/beehive/trunk/wsm/src/runtime/org/apache/beehive/wsm/axis/AxisHook.java
   (original)
+++ 
incubator/beehive/trunk/wsm/src/runtime/org/apache/beehive/wsm/axis/AxisHook.java
   Fri Dec  3 12:01:47 2004
@@ -90,7 +90,8 @@
         final Class serviceClass = 
cl.loadClass(wsm.getServiceImplementationBean());
         sd.setName(wsm.getWsName());
         sd.setImplClass(serviceClass);
-        sd.setDefaultNamespace(wsm.getWsTargetNamespace());
+        String targetNamespace = wsm.getWsTargetNamespace();
+        sd.setDefaultNamespace(targetNamespace);
         configureSoapBinding(sd, wsm.getSoapBinding());
         List<String> allowedMethods = new ArrayList<String>();
         for (Jsr181MethodMetadata meth : wsm.getMethods())
@@ -100,7 +101,7 @@
             {
                 allowedMethods.add(operationName);
                 OperationDesc od = new OperationDesc();
-                od.setElementQName(new QName(operationName));
+                od.setElementQName(new QName(targetNamespace, operationName));
                 od.setName(operationName);
                 od.setSoapAction(meth.getWmAction());
                 if (meth.isOneWay())
@@ -460,4 +461,4 @@
             }
         }
     }
-}
\ No newline at end of file
+}

Reply via email to