You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Ravi Kumar <rk...@borland.com> on 2001/10/05 04:11:08 UTC

WsdlEmitter: ServicePortName vs Operation namespace

Currently, the WsdlEmitter uses the
binding->operation->namespace in the invoke call in the stub class

whereas in deployment (deploy.xml) it uses the
service->port->name

Shouldn't the later use namespace as well?

Ravi
JBuilder R&D






Re: WsdlEmitter: ServicePortName vs Operation namespace

Posted by Ravi Kumar <rk...@borland.com>.
If it is a problem, here is the patch

diff -r1.34 Emitter.java
1497c1497,1513
<         deployPW.println("   <service name=\"" + serviceName
---
>         // Get the namespace for the operation from the <soap:body>
>         String namespace = "";
>         for (int i = 0; i < binding.getBindingOperations().size();
i++) {
>           BindingOperation oper =
(BindingOperation)binding.getBindingOperations().get(i);
>           Iterator bindingInputIterator =
oper.getBindingInput().getExtensibilityElements().iterator();
>           for (; bindingInputIterator.hasNext();) {
>               Object obj = bindingInputIterator.next();
>               if (obj instanceof SOAPBody) {
>                   namespace = ((SOAPBody) obj).getNamespaceURI();
>                   if (namespace == null)
>                       namespace = "";
>                   break;
>               }
>           }
>         }
>
>         deployPW.println("   <service name=\"" + namespace

And a similar stuff for undeploy.

Ravi Kumar wrote:

> Currently, the WsdlEmitter uses the
> binding->operation->namespace in the invoke call in the stub class
>
> whereas in deployment (deploy.xml) it uses the
> service->port->name
>
> Shouldn't the later use namespace as well?
>
> Ravi
> JBuilder R&D