[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


web service php help

Posted on 2007-07-24
Medium Priority
Last Modified: 2012-08-14
hello there,

i have a php code which calls a web service.but the problem is it does not recognise the function.it recognises other functions.
what could be the problem

Question by:zolf
  • 2

Author Comment

ID: 19557199

Fatal error: Uncaught SoapFault exception: [Client] Function ("GetTargetServer") is not a valid method for this service in /usr/local/www/data-dist/testsoap3.php:14 Stack trace: #0 [internal function]: SoapClient->__call('GetTargetServer', Array) #1 /usr/local/www/data-dist/testsoap3.php(14): SoapClient->GetTargetServer(Array) #2 /usr/local/www/data-dist/theme.php(14): include('/usr/local/www/...') #3 {main} thrown in /usr/local/www/data-dist/testsoap3.php on line 14

Accepted Solution

trickyidiot earned 1500 total points
ID: 19558520
Given that we don't have your code....

From the error, I'd check out what's going on in line 14, verify the function you're refrencing i spelled correctly and exists.

Author Comment

ID: 19562476

the wsdl displays the service when i paste the ws link in the browser.but when i use soap to display the functions it does not display the function.

$UserName =  2122217214;
$client = new SoapClient("");
$UserNamepar = array ( UserName => $UserName);

$getserID = $client->GetTargetServer($UserNamepar);
$serverID = $getserID->GetTargetServerResult;
//echo "TelCenter=$objectresult";
echo "targetserver=$serverID;AccType=1;TelCenter=$telcenter";
echo "<pre>";
echo "</pre>";
// Get the response
$theXML= $client->response;
// To see the response, uncomment the following lines

echo "<pre>";
echo "<xmp>".$theXML."</xmp>";
echo "</pre>";

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month20 days, 2 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question