Jump to content

Webservice returns Object ID and not the value


vipintvs

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.