You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Roberto Cosenza <ro...@infoflexconnect.se> on 2008/04/01 15:29:39 UTC

SOAP: Cannot locate service by name

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

Re: Cannot locate service by name

Posted by Jacques Le Roux <ja...@les7arts.com>.
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" <ro...@infoflexconnect.se>
> 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
> 


Re[2]: SOAP: Cannot locate service by name

Posted by Петр Богданов <bp...@ukr.net>.

--- Исходное сообщение ---
От кого: Beula <jb...@gmail.com>
Кому: user@ofbiz.apache.org
Дата: 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.
 > 
 > 





Re: SOAP: Cannot locate service by name

Posted by Beula <jb...@gmail.com>.
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.