vinothvetrivel
vinothvetrivel

Reputation: 109

How to redirect to a page in php soap server

I have called a nusoap server function to do some stuff and redirect.

This is how I am calling my nusoap function

$client=newnusoap_client($endpoint);
$wrapperdiv = $client->call('testFunction', array('details' => $formname ));

In test function I used header tag to redirect

header("location:www.google.com");

but I am getting an error like

The requested URL serverpath/http//www.google.com was not found on this server.

Upvotes: 2

Views: 758

Answers (1)

Ramesh Moorthy
Ramesh Moorthy

Reputation: 689

you can use with http://, its always calling that real server, otherwise it will calling relative paths in your server.

header("location:http://www.google.com");

Upvotes: 5

Related Questions