Hello.
I'm trying to run a simple webservice test using a php client. The method I want to run is "getOrderStatus" but i get "Request SOAPService caused an error with the following message: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Cannot locate service by name (orderId) (Cannot locate service by name (orderId))" which is strange since the name of the service is "getOrderStatus" and not "orderId".... This is the calling code: <? require_once('SOAP/Client.php'); $wsdlurl = "http://10.6.1.74:8080/webtools/control/SOAPService/getOrderStatus?WS $wsdl = new SOAP_WSDL( $wsdlurl); $proxy = $wsdl->getProxy(); $params = array('orderId' => "1"); $resp = $proxy->getOrderStatus($params); ?> /roberto |
Administrator
|
Have you had a look at
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Soap ? Jacques From: "Roberto Cosenza" <[hidden email]> > Hello. > I'm trying to run a simple webservice test using a php client. > The method I want to run is "getOrderStatus" but i get > > "Request SOAPService caused an error with the following message: Error > calling event: org.ofbiz.webapp.event.EventHandlerException: Cannot > locate service by name (orderId) (Cannot locate service by name > (orderId))" > which is strange since the name of the service is "getOrderStatus" and > not "orderId".... > > This is the calling code: > > <? > require_once('SOAP/Client.php'); > > $wsdlurl = "http://10.6.1.74:8080/webtools/control/SOAPService/getOrderStatus?WS > $wsdl = new SOAP_WSDL( $wsdlurl); > $proxy = $wsdl->getProxy(); > > $params = array('orderId' => "1"); > $resp = $proxy->getOrderStatus($params); > ?> > > /roberto > |
In reply to this post by Roberto Cosenza-5
Hi Roberto,
I am facing the same problem when I run the service using a PHP client. It cannot locate the service name. Instead of that it is taking the parameter (in my case personId) as servicename. You might got a solution. Kindly help me. Thanks.
|
--- Исходное сообщение --- От кого: Beula <[hidden email]> Кому: [hidden email] Дата: Nov 03, 2009 12:02:23 Тема: Re: SOAP: Cannot locate service by name > Hi Roberto, > > I am facing the same problem when I run the service using a PHP client. It > cannot locate the service name. Instead of that it is taking the parameter > (in my case personId) as servicename. > > You might got a solution. Kindly help me. > > Thanks. > > Roberto Cosenza-5 wrote: > > > > Hello. > > I'm trying to run a simple webservice test using a php client. > > The method I want to run is "getOrderStatus" but i get > > > > "Request SOAPService caused an error with the following message: Error > > calling event: org.ofbiz.webapp.event.EventHandlerException: Cannot > > locate service by name (orderId) (Cannot locate service by name > > (orderId))" > > which is strange since the name of the service is "getOrderStatus" and > > not "orderId".... > > > > This is the calling code: > > > > <? > > require_once('SOAP/Client.php'); > > > > $wsdlurl = > > "http://10.6.1.74:8080/webtools/control/SOAPService/getOrderStatus?WS > > $wsdl = new SOAP_WSDL( $wsdlurl); > > $proxy = $wsdl->getProxy(); > > > > $params = array('orderId' => "1"); > > $resp = $proxy->getOrderStatus($params); > > ?> > > > > /roberto > > > > > > -- > View this message in context: http://n4.nabble.com/SOAP-Cannot-locate-service-by-name-tp152137p360954.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > |
Free forum by Nabble | Edit this page |