Surya,

Please create a bug report in JIRA and upload these files there.

thanks,
dims

On 3/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi folks,

I developed a WS service. Using a WSDL file ofcourse axis generated.
when i set useOriginalwsdl=true and use WSDL generated by axis2-1.1.1 it gives 
me below error.
If i unset to useOriginalwsdl=false, then WS works.

I dont understand why it is failing for "useOriginalwsdl=true" even though i 
use WSDL generated by axis.
Any clues?



Client Side

Sending request..
<hr:getEmployee 
xmlns:hr="http://types.wsdl.custom.ws.ssk.com/xsd";><hr:in>1</hr:in></hr:getEmployee>org.apache.axis2.AxisFault:
 Exception occurred while trying to invoke service method getEmployee
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
        at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
        at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
        at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
        at 
com.ssk.ws.custom.wsdl.types.HRServiceClient2.main(HRServiceClient2.java:43)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Exception occurred 
while trying to invoke service method getEmployee; nested exception is:
        java.lang.IllegalArgumentException: wrong number of arguments
        at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:159)
        at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
        at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: wrong number of arguments
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:95)
        ... 20 more

        at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
        ... 5 more

Server Side

Mar 20, 2007 4:02:05 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: C:\Program 
Files\Java\jre1.5.0_05\bin;.;C:\WINNT\system32;C:\WINNT;C:\Program 
Files\WRQ\Reflection;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
 Files\Real\Realplayer;C:\WINNT\System32\Wbem;C:\Program 
Files\sql11\DLL;C:\Program Files\sql11\BIN;C:\Program 
Files\jetform\5.2\;C:\Program Files\Oracle\ora92\bin;C:\Program 
Files\SimonTatham\Putty\;C:\Program Files\Sybase\shared\powerbuilder;C:\Program 
Files\rational\clearcase\bin;C:\Java\maven-2.0.4\bin;C:\Sun\SDK\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Java\jad
Mar 20, 2007 4:02:05 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 20, 2007 4:02:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 906 ms
Mar 20, 2007 4:02:05 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 20, 2007 4:02:05 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Mar 20, 2007 4:02:05 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 20, 2007 4:02:07 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing-1.1.1
Mar 20, 2007 4:02:07 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : sandesha2-1.1
Mar 20, 2007 4:02:07 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : soapmonitor-1.1.1
Mar 20, 2007 4:02:07 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  hrservice.aar
Mar 20, 2007 4:02:08 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  RMSampleService.aar
Mar 20, 2007 4:02:08 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  termsheet.aar
Mar 20, 2007 4:02:08 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  version.aar
Mar 20, 2007 4:02:08 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 20, 2007 4:02:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 20, 2007 4:02:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Mar 20, 2007 4:02:08 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 20, 2007 4:02:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3406 ms
Mar 20, 2007 4:02:15 PM org.apache.axis2.rpc.receivers.RPCMessageReceiver 
invokeBusinessLogic
SEVERE: Exception occurred while trying to invoke service method getEmployee
java.lang.IllegalArgumentException: wrong number of arguments
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:95)
        at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
        at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)




Regards,
Sigirisetti



 <<HRServiceClient2.java>>  <<HRService.java>>  <<Department.java>>  <<services.xml>>  
<<HRService.wsdl>>  <<Employee.java>>



This message and any attachment are confidential and may be privileged
or otherwise protected from disclosure. If you are not the intended
recipient please telephone or e-mail the sender and delete this message
and all attachments from your system. If you are not the intended
recipient you must not copy this message or any attachment or disclose
the contents to any other person.

Use of E-mails can involve substantial risks, including but not limited
to lack of confidentiality and potential manipulation of contents and/or
sender's address. E-mail transmission therefore cannot be guaranteed to
be secure, error-free or virus-free. UBS therefore does not accept
liability for any errors, omissions or consequences which arise as a
result of e-mail transmission. If you choose to send sensitive
information via e-mail, this will be done at your own risk.

This message is provided for informational purposes and is not intended
to nor will it create any binding legal relations. If verification is
required please request a hard-copy version.

This message should not be construed as a solicitation or offer to buy
or sell any securities or related financial instruments.

UBS AG does not accept Instructions via e-mail unless specifically
authorised in writing and agreed to by UBS AG.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to