Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-26-2009, 06:20 PM   PM User | #1
tdavis
Regular Coder

 
Join Date: Feb 2005
Location: Atlanta, GA
Posts: 171
Thanks: 5
Thanked 0 Times in 0 Posts
tdavis is an unknown quantity at this point
SoapFault exception

I am new to PHP and web services, so this may be a simple nothing to some of you, but I would really appreciate the help.
What am I doing wrong in this script?

Code:
<?php
             ini_set('display_errors','1');
	error_reporting (E_ALL);

    $GetUserName = new SoapClient("http://idm.east.dev.cox.net/idmwebservices/CoxIdentityServices?wsdl");

    $account = array("GetAllAccountInfoAcctNbr" => "6111027582601");
    $username_r = $GetUserName->username($account); <= line 11
    $userId_r   = $GetUserName->userId($account);

    echo "<br>Account: $account";
    echo "<br>User Name: $username_r";
    echo "<br>User ID: $userId_r";

 ?>
Here is the message:

Fatal error: Uncaught SoapFault exception: [Client] Function ("username") is not a valid method for this service in /www/zendcore/htdocs/cox/GetAccountInfo.php:11 Stack trace: #0 [internal function]: SoapClient->__call('username', Array) #1 /www/zendcore/htdocs/cox/GetAccountInfo.php(11): SoapClient->username(Array) #2 {main} thrown in /www/zendcore/htdocs/cox/GetAccountInfo.php on line 11
tdavis is offline   Reply With Quote
Old 08-26-2009, 10:35 PM   PM User | #2
tomws
Senior Coder

 
tomws's Avatar
 
Join Date: Nov 2007
Location: Arkansas
Posts: 2,644
Thanks: 29
Thanked 330 Times in 326 Posts
tomws will become famous soon enoughtomws will become famous soon enough
The error is straightforward - $GetUserName->username() is not defined. Consult the API documentation to for the correct function to use.
__________________
Are you a Help Vampire?
tomws is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:49 PM.


Advertisement
Log in to turn off these ads.