NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Help with SOAP / PHP / ASP.net integration!


Joined: 09 Mar 2011
Posts: 2
Reply with quote
Hello everyone! I am trying to do a simple SOAP integration... unfortunately, I only know PHP (and not extremely well, at that).

The documentation provided is only for .net, so I am trying to figure out how to translate it into PHP.

Here is a link to the documentation for the .net setup:



(it's filtering out the above link... you can google "PropertyWare API" and select the second search result).

I am pretty much clueless in terms of how to translate this into PHP... I have setup SOAP on my apache server, but that's about as far as I've gotten.

Any help would be much appreciated! Thank you!
View user's profileFind all posts by noobienessSend private message


Joined: 09 Mar 2011
Posts: 2
Reply with quote
Here is my very feeble attempt thus far:

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


$client = new SoapClient($wsdl);


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

$result = $client->echoString(testMessage) ;
?>


It's currently throwing the following error... I know it's because I'm not properly authenticating with my username/password, but I'm not sure how to do that.

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
View user's profileFind all posts by noobienessSend private message
Help with SOAP / PHP / ASP.net integration!
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic