Page 1 of 1

PHP/SOAP Integration

Posted: Wed Mar 09, 2011 11:19 am
by contractorsan
Hello all! I am a relative newbie to PHP, and a complete newbie to .net and SOAP...

I am trying to do a simple SOAP Integration, based on the instructions found at this website:

http://propertyware.com/apidocs/Getting-Started

However, the instructions are written for VB.net... and I can't for the life of me figure out how to translate them into PHP. My feeble attempt so far is:

Code: Select all

$wsdl = "http://propertyware.com/pw/services/PWServices?wsdl";


$client = new SoapClient($wsdl);


$testMessage = "Test commnunication with Propertyware web service";

$result = $client->echoString(testMessage) ;
Naturally, there is alot that I have left to do... this is the error that it is currently throwing:

Fatal error: Uncaught SoapFault exception: [ns1:Server.Unauthenticated] User 'null' not authenticated (unknown user) in /home/churd/public_html/soap.php:14 Stack trace: #0 [internal function]: SoapClient->__call('echoString', Array) #1 /home/churd/public_html/soap.php(14): SoapClient->echoString('testMessage') #2 {main} thrown in /home/churd/public_html/soap.php on line 14

Re: PHP/SOAP Integration

Posted: Wed Mar 09, 2011 1:52 pm
by contractorsan
Bump! :)