PHP client for .net WebServices
- From: "doph" <abolotnov@xxxxxxxxx>
- Date: 26 Jan 2006 04:54:41 -0800
Dear all,
I am not a major php programmer but need to connect a bit of php code
to my .net WebServices. I organized pretty much everything and it sort
of works. I am , though, having a problem with string[] that is
returned from the web services.
I run a soap request with all the params that need to go with it and
the var_dump() for it will look like this:
$res = $client->GetSerialsPlainReq($params);
var_dump($res) :
object(stdClass)#5 (1) { ["GetSerialsPlainReqResult"]=>
object(stdClass)#4 (1) { ["string"]=> array(5) { [0]=> string(41)
"TD3AP-WPJQV-VJRKH-AFCWR-HQVHP-TCFWD-WMJJD" [1]=> string(41)
"TD3CJ-THCJJ-VJQKH-AFCWD-XRDGX-KKMGD-VJVDF" [2]=> string(41)
"TD3GP-FAMAA-CJPKH-AFCWR-QQVFC-JFDJX-TGRQJ" [3]=> string(41)
"TD3WJ-WXQJR-QJMKH-AFCWD-MWMWG-VKPGK-VMRXD" [4]=> string(41)
"TD3GX-KPPCV-VJKKH-AFCWR-PKWHX-QDTPG-JFRDP" } } }
$xa = array($res->GetSerialsPlainReqResult);
var_dump($xa) :
array(1) { [0]=> object(stdClass)#4 (1) { ["string"]=> array(5) { [0]=>
string(41) "TD3AP-WPJQV-VJRKH-AFCWR-HQVHP-TCFWD-WMJJD" [1]=> string(41)
"TD3CJ-THCJJ-VJQKH-AFCWD-XRDGX-KKMGD-VJVDF" [2]=> string(41)
"TD3GP-FAMAA-CJPKH-AFCWR-QQVFC-JFDJX-TGRQJ" [3]=> string(41)
"TD3WJ-WXQJR-QJMKH-AFCWD-MWMWG-VKPGK-VMRXD" [4]=> string(41)
"TD3GX-KPPCV-VJKKH-AFCWR-PKWHX-QDTPG-JFRDP" } } }
5 Guids - exactly what the web service needed to return.
What I can't do is "convert" the $res or $xa into something I will be
index with something like "foreach ($guid as $res){}" to print the
guids to the user.
Thanks for all of your answers.
P. S. Or, instead, shall I be returning something different then
string[] from my web services?
.
- Prev by Date: What's wrong with this?
- Next by Date: JScript won't post params to my PHP script!!!
- Previous by thread: What's wrong with this?
- Next by thread: JScript won't post params to my PHP script!!!
- Index(es):