| | |
soap error with php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 14
Reputation:
Solved Threads: 0
Hi,
I am hoping some is going to be able to help me here because i am going crazy trying to figure this out.
I am trying to code some php to interact with a web service that another company has provided. Below is the php code i have created.
What i am trying to achieve starts from the $hash line. The results of this query when actioned on its own is:
Array
( [authToken] => MGViMmViMjVlMDQxMDNjZmNiZmVhY2aiMzkYYYZjZjM4OTc2IQ==
[user_id] => 34 )
What i need to find out is how from that line i can just pull the authToken and insert it to the $result query. I currently have $hash -> authToken but that does not work.
Does any one know how or a way i can pull just the authToken from the first query and enter it in to the second query.
If you need any more info please let me know.
regards,
james
I am hoping some is going to be able to help me here because i am going crazy trying to figure this out.
I am trying to code some php to interact with a web service that another company has provided. Below is the php code i have created.
php Syntax (Toggle Plain Text)
<?php $soapclient = new soapclient("http://www.humyo.com/Assets/StorageAPI.wsdl"); $hash = $soapclient->getAuthToken('emailaddress','password','API v1.0'); print_r($hash); $result = $soapclient->createUser($hash -> authToken,'31','65','emailaddresshere','simon','22563','GB'); print_r($result);
What i am trying to achieve starts from the $hash line. The results of this query when actioned on its own is:
Array
( [authToken] => MGViMmViMjVlMDQxMDNjZmNiZmVhY2aiMzkYYYZjZjM4OTc2IQ==
[user_id] => 34 )
What i need to find out is how from that line i can just pull the authToken and insert it to the $result query. I currently have $hash -> authToken but that does not work.
Does any one know how or a way i can pull just the authToken from the first query and enter it in to the second query.
If you need any more info please let me know.
regards,
james
Last edited by peter_budo; Jul 7th, 2008 at 8:23 am. Reason: Keep It Organized - please use [code] tags
•
•
•
•
Hi,
I am hoping some is going to be able to help me here because i am going crazy trying to figure this out.
I am trying to code some php to interact with a web service that another company has provided. Below is the php code i have created.
php Syntax (Toggle Plain Text)
<?php $soapclient = new soapclient("http://www.humyo.com/Assets/StorageAPI.wsdl"); $hash = $soapclient->getAuthToken('emailaddress','password','API v1.0'); print_r($hash); $result = $soapclient->createUser($hash -> authToken,'31','65','emailaddresshere','simon','22563','GB'); print_r($result);
What i am trying to achieve starts from the $hash line. The results of this query when actioned on its own is:
Array
( [authToken] => MGViMmViMjVlMDQxMDNjZmNiZmVhY2aiMzkYYYZjZjM4OTc2IQ==
[user_id] => 34 )
What i need to find out is how from that line i can just pull the authToken and insert it to the $result query. I currently have $hash -> authToken but that does not work.
Does any one know how or a way i can pull just the authToken from the first query and enter it in to the second query.
If you need any more info please let me know.
regards,
james
I think u have to pass your data with array. i mean first create array for your data and then passed it from your class method.
Kuldeep (KD)
![]() |
Similar Threads
- php Soap Issue Help Please (PHP)
- Parse error: parse error, unexpected '{' in /homepages/10/issue.php line 5 (RSS, Web Services and SOAP)
- Parse error: parse error, unexpected '{' in /homepages/10/issue.php line 5 (PHP)
- Sopa Service Erro (RSS, Web Services and SOAP)
- Who can use this webservice ? (RSS, Web Services and SOAP)
- Problem receiving result from Microsoft Soap toolkit server service using Nusoap clie (RSS, Web Services and SOAP)
Other Threads in the PHP Forum
- Previous Thread: Hi is this correct?
- Next Thread: PHP - mysql aes_decrypt
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email encode error fcc file files folder form forms function functions google howtowriteathesis href htaccess html image include insert integration ip java javascript joomla limit link login loop mail menu methods mlm mod_rewrite multiple multipletables mysql oop open parse paypal pdf php problem provider query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table template tutorial update upload url validation validator variable video web xml youtube





