Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access a .Net WebService with PHP

Status
Not open for further replies.

01310564

Programmer
Oct 9, 2003
96
GB
Hi,

I have a VB.net webservice which returns "false" & username & password. The username and password are just the two parameters entered.

It all works well when i access it through a vb.net client but i run in to problems when using PHP.

The problem i have got is that the parameters being passed to the function validate_user aren't getting to the function.

So what ever paramenters i pass to the websservice I get "False" back rather than "False" & username" & "password".

Although i'm using NuSoap here if anyone has any code using a diffrent package then i'm happy to use that.



<?PHP
include('nusoap.php');

$param = array('Username'=>'user' , 'password'=>'pass');
$serverpath ="$namespace="$client = new soapclient($serverpath, "wsdl");
$soapaction = "$inst = $client->call("validate_user",$param ,$namespace,$soapaction);
print ($inst[validate_userResponse]);
?>

Cheers,

Hugh
 
Basic check:
Does the SOAP message ever reach the server?
Can you capture the message at the server and inspect it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top