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 Chris Burnley <ch...@viator.com> on 2002/10/03 02:57:56 UTC

Correctness of org.apache.axis.wsdl.toJava.Utils.getOperationQName

I have a situation where I a client is using an element instead of a 
type for a message parameter in my WSDL file (simplified example 
attached). When I generate the stubs, the operation name call looks like 
this:

  _call.setOperationName(new 
javax.xml.namespace.QName("http://www.xyz.com/schema/Elements", 
"anElement"));

rather than the expected:

_call.setOperationName(new 
javax.xml.namespace.QName("http://www.xyz.com/soap-services", 
"anOperation"));

I read the comments for getOperationQName and someone wrote:

       // NOTE: it is possible for someone to define a part as an element
       // while using rpc/encoded, which is wrong and we might want to 
catch it
       // here.

Is this actually true ? Could someone point me to the spec that points 
this out ? It seems that this could be easy to fix by adding

@@ -566,6 +566,9 @@
         if (ns == null) {
             ns = "";
         }
+        else {
+            return new QName(ns, operationName);
+        }

to Utils.java, revision RC1

regards,

Chris Burnley