/    Sign up×
Community /Pin to ProfileBookmark

Nusoap does not work within function call

Nusoap does not work within function call

PHP : Version 5
Nusoap : Version 1.94

Dear All,

I get followiing error when I perform soap calls within function :

[B]soap:ServerServer was unable to process request. —> Object reference not set to an instance of an object.”[/B]

Here is the function :

[code=php]
function getdownloadurl()
{
$soapaction=”[URL]https://secure.webaddress.com/V7/webservices/GetDownloadUrl[/URL]”;
$wsdl=”[URL]https://secure.webaddress.com/v3/WebServices/Update1.asmx[/URL]”;

$client=new soapclient($wsdl);

$newcrop=new newCrop();
$newcrop->provofficeCode=$officeid;

$recentdownload=$newcrop->GetDownloadUrl(‘3’);

$response=$client->send($client->serializeEnvelope($recentdownload, ”, array(), ‘document’, ‘literal’),$soapaction,$timeout,$response_timeout);
$newcropResponseXML=$client->response;
}
[/code]

Does any one know why error occurs? Any help would be greatly appreciated.

Thank You,
Santhosh

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@chazzyJan 23.2009 — where are you $officeid from for use in this line?

[code=php]
$newcrop->provofficeCode=$officeid;
[/code]


It's not passed in to the function and not created in the function.
×

Success!

Help @palansanthu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...