#36546 [NEW]: just only got "Object id #2"
| From: | roderja at hotmail dot com | Date: | Mon, 27 Feb 2006 17:47:23 +0000 |
| Subject: | #36546 [NEW]: just only got "Object id #2" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-93722@lists.php.net to get a copy of this message | ||
From: roderja at hotmail dot com
Operating system: windows xp
PHP version: 5.1.2
PHP Bug Type: SOAP related
Bug description: just only got "Object id #2"
Description:
------------
PHP call the web services which was wrote by ASP.NET.
Just only got "Object id #2" Thanks.
By the way, please tell me where can I get the detail PHP web services
bible. Thanks.
Reproduce code:
---------------
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<title>Ja page</title>
<body>
<?php
//call web services
$wsdl_loc = "http://localhost:1071/WebSite3/Service.asmx?WSDL";
$soap_client = new SoapClient($wsdl_loc);
$result = $soap_client->SayHello();
//change to next line
echo ("<p></p>");
echo $result;
?>
</body>
</html>
=============================following is ASP.NET
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class Service
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function SayHello() As String
Return "Hello"
End Function
End Class
Expected result:
----------------
Hello
Actual result:
--------------
Object id #2
--
Edit bug report at http://bugs.php.net/?id=36546&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36546&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36546&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36546&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36546&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36546&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36546&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36546&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36546&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36546&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36546&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36546&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36546&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36546&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36546&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36546&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36546&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36546&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36546&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36546&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36546&r=mysqlcfg