axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charitha Kankanamge (JIRA)" <>
Subject [jira] Updated: (AXIS2-2415) Service invocation fails when original wsdl is included in the service archive and generate client code using ?wsdl
Date Thu, 29 Mar 2007 10:26:25 GMT


Charitha Kankanamge updated AXIS2-2415:

    Attachment: myAxisService.aar

Attached service archive

> Service invocation fails when original wsdl is included in the service archive and generate
client code using ?wsdl
> -------------------------------------------------------------------------------------------------------------------
>                 Key: AXIS2-2415
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: winxp, jdk15, tomcat 6.0.10
>            Reporter: Charitha Kankanamge
>         Attachments: Mathsclass-doc.wsdl, myAxisService.aar, MyAxisservice.wsdl
> I observed the following behavior in axis2-1.2 RC1 and seems to be a bug. I noticed that
the wsdl file generated by java2wsdl and ?wsdl are different even if the service implementation
class is same. 
> I deployed a service and generated client using the wsdl2java by specifying http://localhost:8080/axis2/services/servicename?wsdl
as url. 
> Then I wrote a java client and accessed the service successfully.
> After that, I generated the wsdl of the same service by using java2wsdl command.
> Then I added the generated wsdl in to the META-INF directory of the service archive and
set useOriginalwsdl=true in services.xml
> Restarted the tomcat server and sent the same request through the java client which was
written previously.
> Then the following exception was thrown and listed in tomcat server console.
> SEVERE: Exception occurred while trying to invoke service method addnumbers
> java.lang.IllegalArgumentException: wrong number of arguments
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(
>         at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(
>         at org.apache.axis2.engine.AxisEngine.receive(
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
>         at org.apache.axis2.transport.http.AxisServlet.doPost(
>         at javax.servlet.http.HttpServlet.service(
>         at javax.servlet.http.HttpServlet.service(
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>         at org.apache.catalina.core.StandardWrapperValve.invoke(
>         at org.apache.catalina.core.StandardContextValve.invoke(
>         at org.apache.catalina.core.StandardHostValve.invoke(
>         at org.apache.catalina.valves.ErrorReportValve.invoke(
>         at org.apache.catalina.core.StandardEngineValve.invoke(
>         at org.apache.catalina.connector.CoyoteAdapter.service(
>         at org.apache.coyote.http11.Http11Processor.process(
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
>         at$
>         at
> Steps to reproduce:
> ================
> 1. Deploy a service archive
> 2. Generate client stubs using wsdl2java by specifying ?wsdl url of the service (-uri
http://localhost:8080/axis2/services/MyAxisservice?wsdl) and write a client
> 3. Invoke the service. This should be successful.
> 4. Now generate the wsdl using same service implementation class (java2wsdl)
> ie:- java2wsdl -cn Mathsclass -o C:\Axis2\axis2-1.2-RC1\bin\out -cp . -sn MyAxisservice
> 5. Add the generated wsdl in to service archive and set useOriginalwsdl=true in services.xml
> 6. Redeploy the same service and invoked it through the above client
> Please find the attached wsdl files for more information
> 1. Mathsclass-doc.wsdl is the wsdl generated by java2wsdl command
> 2. MyAxisservice.wsdl is the one generated by ?wsdl

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message