-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 3 answers
- 3,247 views
-
QNAP issues patch for an RCE security vulnerability affecting PHP in NAS Drive management
By Alap Naik Desai,
- remote code execution
- rce
- (and 12 more)
- 0 replies
- 6 views
-
Get this Dynamic 2022 Data & IT Security Training Bundle at 97% off
By News Staff,
- neowin deals
- cyber security
- (and 4 more)
- 0 replies
- 6 views
-
KB5012643 is causing issues with some apps in Windows 11, but there's a workaround
By Usama Jawad96,
- microsoft
- windows 11
- (and 12 more)
- 3 replies
- 8 views
-
Save 98% off this 27 Course Premium Learn to Code Certification Bundle
By News Staff,
- neowin deals
- coding
- (and 10 more)
- 0 replies
- 9 views
-
Question
sathenzar
So I thought hey, I program C# and WCF all of the time. Lets try to have some fun with calling a WCF method with a PHP client. What a freaking nightmare this has been 2 hours later of searching google to find out WHY is it so hard to return a simple string (it wants to stick it in a stdClass object). I can get it to return the method call with the right data (just a get date/time function), however I can not for the life of me directly access the date time string returned. Here's my php code:
I've tried so many different variations. But this is always the result:
object(stdClass)#2 (1) { ["GetDateTimeResult"]=> string(32) "Date Time: 10/14/2012 5:10:13 PM" } // <--------- obviously the call is working b/c here is the right info.
Notice: Trying to get property of non-object in C:\xampp\htdocs\domains\testapp\test.php on line 7
Notice: Undefined property: stdClass::$string in C:\xampp\htdocs\domains\testapp\test.php on line 8
I just want to access the simple string. What do I have to do to do that?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts