Re: Error while invoking the axis service through PHP NUSoap
Hi. I see this in stack trace: org.apache.axis2.AxisFault: Please implement org.presci.echo.service.EchoServiceSkeleton#echo_operation This seems axis default empty skeleton message. Did you generate the service aar with the correct code, perhaps you generated the aar with an old code... Bye. Antonio. 2008/1/10, prasad c iyer <[EMAIL PROTECTED]>: > > Got it I messed up the Ant file so the generated code was always > overwriting > the implemented class. > Thanks for the help > > - Original Message - > From: "prasad c iyer" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, January 09, 2008 3:44 PM > Subject: Re: Error while invoking the axis service through PHP NUSoap > > > > Following are my wsdl file, php file and soap request > > wsdl file > > > > http://localhost:8080/my-app/services/EchoService"; > > xmlns="http://schemas.xmlsoap.org/wsdl/"; > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > > xmlns:ns1="http://localhost:8080/my-app/services/EchoService/types"; > > name="EchoService" > > targetNamespace="http://localhost:8080/my-app/services/EchoService";> > > > > > targetNamespace="http://localhost:8080/my-app/services/EchoService/types > "> > > > > > > > > > targetNamespace=" > http://localhost:8080/my-app/services/EchoService/types:0";> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > location="http://localhost:8080/my-app/services/EchoService"/> > > > > > > > > > > -- > > php code: > > > > > /** > > * echo php > > * > > * > > */ > > > > require_once('nusoap.php'); > > > > $client=new > > nusoap_client('http://localhost:8080/my-app/services/EchoService?wsdl', > > 'wsdl'); > > $err=$client->getError(); > > if($err){ > >echo 'constructor error : '. $err ; > >die; > > } > > $proxy=$client->getProxy(); > > $err=$client->getError(); > > if($err){ > >echo 'got error : '.$err; > > } > > $client->loadWSDL(); > > $err=$client->getError(); > > if($err){ > >echo 'got error : '.$err; > > } > > echo 'WSDLnamespace'.$client->wsdl->namespaces; > > foreach($client->wsdl->namespaces as $key=>$value){ > >echo $key. ' ' . $value . ''; > > } > > $param['parameters']=array('hello world'); > > $client->call('echo_operation', $param); > > echo 'Request' . htmlspecialchars($client->request, > > ENT_QUOTES) . ''; > > echo 'Response' . htmlspecialchars($client->response, > > ENT_QUOTES) . ''; > > echo 'Debug' . htmlspecialchars($client->debug_str, > > ENT_QUOTES) . ''; > > ?> > > > > > > > > -- > > request message > > > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; > > xmlns:ns4861="http://tempuri.org";> > > > > > xmlns:m="http://localhost:8080/my-app/services/EchoService/types";>hello > > world > > > > > > > > > > > > > > - Original Message - > > From: Martin Gainty > > To: axis-user@ws.apache.org > > Sent: Wednesday, January 09, 2008 3:30 PM > > Subject: RE: Error while invoking the axis service through PHP NUSoap > > > > > > Please display php client code and service wsdl > > > > Martin > > > > __ > > Disclaimer and confidentiality note > > Everything in this e-mail and any attachments relates to the official >
Re: Error while invoking the axis service through PHP NUSoap
Got it I messed up the Ant file so the generated code was always overwriting the implemented class. Thanks for the help - Original Message - From: "prasad c iyer" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 09, 2008 3:44 PM Subject: Re: Error while invoking the axis service through PHP NUSoap Following are my wsdl file, php file and soap request wsdl file http://localhost:8080/my-app/services/EchoService"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:ns1="http://localhost:8080/my-app/services/EchoService/types"; name="EchoService" targetNamespace="http://localhost:8080/my-app/services/EchoService";> targetNamespace="http://localhost:8080/my-app/services/EchoService/types";> targetNamespace="http://localhost:8080/my-app/services/EchoService/types:0";> transport="http://schemas.xmlsoap.org/soap/http"/> location="http://localhost:8080/my-app/services/EchoService"/> -- php code: $client=new nusoap_client('http://localhost:8080/my-app/services/EchoService?wsdl', 'wsdl'); $err=$client->getError(); if($err){ echo 'constructor error : '. $err ; die; } $proxy=$client->getProxy(); $err=$client->getError(); if($err){ echo 'got error : '.$err; } $client->loadWSDL(); $err=$client->getError(); if($err){ echo 'got error : '.$err; } echo 'WSDLnamespace'.$client->wsdl->namespaces; foreach($client->wsdl->namespaces as $key=>$value){ echo $key. ' ' . $value . ''; } $param['parameters']=array('hello world'); $client->call('echo_operation', $param); echo 'Request' . htmlspecialchars($client->request, ENT_QUOTES) . ''; echo 'Response' . htmlspecialchars($client->response, ENT_QUOTES) . ''; echo 'Debug' . htmlspecialchars($client->debug_str, ENT_QUOTES) . ''; ?> -- request message http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns4861="http://tempuri.org";> xmlns:m="http://localhost:8080/my-app/services/EchoService/types";>hello world - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Wednesday, January 09, 2008 3:30 PM Subject: RE: Error while invoking the axis service through PHP NUSoap Please display php client code and service wsdl Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Wrom: HMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAX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MSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDR
Re: Error while invoking the axis service through PHP NUSoap
Following are my wsdl file, php file and soap request wsdl file http://localhost:8080/my-app/services/EchoService"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:ns1="http://localhost:8080/my-app/services/EchoService/types"; name="EchoService" targetNamespace="http://localhost:8080/my-app/services/EchoService";> targetNamespace="http://localhost:8080/my-app/services/EchoService/types";> targetNamespace="http://localhost:8080/my-app/services/EchoService/types:0";> transport="http://schemas.xmlsoap.org/soap/http"/> http://localhost:8080/my-app/services/EchoService"/> -- php code: $client=new nusoap_client('http://localhost:8080/my-app/services/EchoService?wsdl', 'wsdl'); $err=$client->getError(); if($err){ echo 'constructor error : '. $err ; die; } $proxy=$client->getProxy(); $err=$client->getError(); if($err){ echo 'got error : '.$err; } $client->loadWSDL(); $err=$client->getError(); if($err){ echo 'got error : '.$err; } echo 'WSDLnamespace'.$client->wsdl->namespaces; foreach($client->wsdl->namespaces as $key=>$value){ echo $key. ' ' . $value . ''; } $param['parameters']=array('hello world'); $client->call('echo_operation', $param); echo 'Request' . htmlspecialchars($client->request, ENT_QUOTES) . ''; echo 'Response' . htmlspecialchars($client->response, ENT_QUOTES) . ''; echo 'Debug' . htmlspecialchars($client->debug_str, ENT_QUOTES) . ''; ?> -- request message http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns4861="http://tempuri.org";> xmlns:m="http://localhost:8080/my-app/services/EchoService/types";>hello world - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Wednesday, January 09, 2008 3:30 PM Subject: RE: Error while invoking the axis service through PHP NUSoap Please display php client code and service wsdl Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Wrom: HMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAI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FXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJ VZ
Error while invoking the axis service through PHP NUSoap
I have a echo service created in Axis2. I am getting a axis-fault when I am trying to invoke it through PHP NUSoap. The Stacktrace is org.apache.axis2.AxisFault: Please implement org.presci.echo.service.EchoServiceSkeleton#echo_operation at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.presci.echo.service.EchoServiceMessageReceiverInOut.invokeBusinessLogic(EchoServiceMessageReceiverInOut.java:62) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.UnsupportedOperationException: Please implement org.presci.echo.service.EchoServiceSkeleton#echo_operation at org.presci.echo.service.EchoServiceSkeleton.echo_operation(EchoServiceSkeleton.java:21) at org.presci.echo.service.EchoServiceMessageReceiverInOut.invokeBusinessLogic(EchoServiceMessageReceiverInOut.java:51) ... 19 more The service is getting invoked properly through the skeleton. Can somebody point me in right direction? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]