axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Carlson" <>
Subject lowercase first character of method names
Date Thu, 20 Dec 2001 12:31:26 GMT
Hi all,

I've been experimenting with the nightly Axis builds using WSDL to create a 
service and a client and have come across a problem.

The WSDL was created by a colleague using Microsoft's .net toolkit and a 
snippet of the key area is below:-

  <binding name="Service1Soap" type="s0:Service1Soap">
    <soap:binding transport="" 
style="rpc" />
    <operation name="DoEcho">
      <soap:operation soapAction="" 
style="document" />
        <soap:body use="literal" />
        <soap:body use="literal" />

As you can see, the operation name starts with an uppercase character. When 
this is put through WSDL2Java, it creates stubs and skeletons etc but uses a 
method name of 'doEcho' (i.e. lowercase first). This all builds and deploys 
just fine but when run, causes an exception in the server...

    <ns2:stackTrace xmlns:ns2="">Method not found
Method name = DoEcho
Service name = Service1Soap&#xd;
	at org.apache.axis.server.AxisServer.invoke(;
	at javax.servlet.http.HttpServlet.service(;

The generated WSDD indicates an uppercase method name...

  <service name="Service1Soap" provider="java:RPC">
      <parameter name="className" value="org.tempuri.Service1SoapSkeleton"/>
      <parameter name="methodName" value=" DoEcho"/>

Just changing the name in the WSDD causes a 'Method names do not match' 

If I manually modify the generated code to use an uppercase 'D', then 
everything works just fine.

Alpha 3, on the other hand generates code with an uppercase 'D' (at least 
the release candidate I fetched on the 12th of December did). Note that this 
was using different WSDL which does not use literal encoding.

The confusing thing is that I cant see why others havent found the same 
problem because its effect on me is pretty fundamental. Maybe everyone else 
is using lowercase in their wsdl? Maybe I just cant find the right messages 
in the mailing list archive?

Is this a bug (and in what?) or a feature?

Any ideas?

Regards, Andy

Join the world’s largest e-mail service with MSN Hotmail.

View raw message