It looks like you are missing the SOAP Header with the login
information.
Try something like the following before the $result line
$auth->userName = "ServerLogin"; // use $_GET["ServerLogin"] for
parameterized login name
$auth->password = "ServerPwd"; // use $_GET["ServerPwd"] for
parameterized password
$authvalues = new SoapVar($auth, SOAP_ENC_OBJECT);
$header = new SoapHeader("OpGetList", "AuthenticationInfo",
$authvalues, false);
$client->__setSoapHeaders(array($header));
Fred
________________________________
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Halstead
Sent: Tuesday, May 01, 2007 3:55 PM
To: [email protected]
Subject: Re: Need Help Getting a WSDL Consumed with .NET C#
** We are also trying to consume a remedy webservice with little results
and huge headaches. We are trying to get a incident ticket back from
remedy but we keep getting the error:
Uncaught SoapFault exception: [soapenv: Server.userException]
java.lang.NullPointerException
We are trying to connect via PHP, here is our code:
<?php
$client = new SoapClient(
"http://remedyweb/WSDL/public/remedy/BZ_Incident "
);
$parms = array (
'Incident_ID' => "INC000000038137" );
$result = $client ->__soapCall( "OpGetList", $parms );
print "Success!" ;
?>
Could anyone comment on this please? Are we doing this correctly? I
remember reading something about sending XML to get a response back...
--
"A fool acts, regardless; knowing well that he is wrong. The ignoramus
acts on only what he knows, but all that he knows.
The ignoramus may be saved, but the fool knows that he is doomed."
Bob Halstead
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the
Answers Are"