vipintvs Posted November 20, 2006 Share Posted November 20, 2006 Hi Techies I have written client side script for consuming the .Net webservice. (In .net it is just a HelloWorld webmethod and it is working properly.) Where as when i try to consume the webservice from php client script, it is not returning the exact value("HelloWord"). Instead of, it returns only "Object id #3" Even i tried casting also by adding (string) infront of that. The below is the coding snippen i have ------------------------------------------------- <?php require_once('../lib/nusoap.php'); $wsdl="http://domainname/service.asmx?wsdl"; $client = new SoapClient($wsdl); echo $client->HelloWorld(); ?> Return value ---------------- Object id #3 //Expected output "HelloWord" Can anyone post quick solution? Link to comment https://forums.phpfreaks.com/topic/27844-webservice-returns-object-id-and-not-the-value/ Share on other sites More sharing options...
hitman6003 Posted November 21, 2006 Share Posted November 21, 2006 [quote]Can anyone post quick solution?[/quote]Not without knowing what your soap library is doing. Link to comment https://forums.phpfreaks.com/topic/27844-webservice-returns-object-id-and-not-the-value/#findComment-127759 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.