Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
September 27, 2011, 12:41:37 AM |
|
If i var dump the $client when I first connect i get this
object(SoapClient)#2 (2) { ["_soap_version"]=> int(1) ["sdl"]=> resource(6) of type (Unknown) }
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
September 27, 2011, 02:09:05 AM |
|
I tried the following code aswell got a diff error //$client = new SoapClient(""); $client = new SoapClient(NULL, array( "location" => "https://www.dwolla.com/api/API.svc?wsdl", "uri" => "urn:xmethods-delayed-quotes", "style" => SOAP_RPC, "use" => SOAP_ENCODED )); var_dump($client); $params = array( new SoapParam( 'ApiKey',$apiKey), new SoapParam('ApiCode', $apiCode), new SoapParam('Amount' , $amount), new SoapParam('Description', $description), new SoapParam('DestinationID',$customerId) );
try{ $client->__soapCall(serialize("RequestPaymentKey"), $params); }catch(Exception $e){ echo $e; echo "ERROR"; }
got the example from here: http://devzone.zend.com/article/689#Heading4my error is this: object(SoapClient)#2 (5) { ["uri"]=> string(27) "urn:xmethods-delayed-quotes" ["style"]=> int(1) ["use"]=> int(1) ["location"]=> string(39) " https://www.dwolla.com/api/API.svc?wsdl" ["_soap_version"]=> int(1) } SoapFault exception: [HTTP] Bad Request in /home/swiftbitcoins/purchase_order.php:38 Stack trace: #0 [internal function]: SoapClient->__doRequest('__soapCall('s:17:"RequestPa...', Array) #2 {main}ERROR Is there somthing I'm not understanding about soap? I will be willing to throw in 1 BTC to the person who can get a working code going....
|
|
|
|
|
mjcmurfy
|
|
September 27, 2011, 08:05:37 AM Last edit: September 27, 2011, 08:20:54 AM by mjcmurfy |
|
I tried the following code aswell got a diff error //$client = new SoapClient(""); $client = new SoapClient(NULL, array( "location" => "https://www.dwolla.com/api/API.svc?wsdl", "uri" => "urn:xmethods-delayed-quotes", "style" => SOAP_RPC, "use" => SOAP_ENCODED )); var_dump($client); $params = array( new SoapParam( 'ApiKey',$apiKey), new SoapParam('ApiCode', $apiCode), new SoapParam('Amount' , $amount), new SoapParam('Description', $description), new SoapParam('DestinationID',$customerId) );
try{ $client->__soapCall(serialize("RequestPaymentKey"), $params); }catch(Exception $e){ echo $e; echo "ERROR"; }
got the example from here: http://devzone.zend.com/article/689#Heading4my error is this: object(SoapClient)#2 (5) { ["uri"]=> string(27) "urn:xmethods-delayed-quotes" ["style"]=> int(1) ["use"]=> int(1) ["location"]=> string(39) " https://www.dwolla.com/api/API.svc?wsdl" ["_soap_version"]=> int(1) } SoapFault exception: [HTTP] Bad Request in /home/swiftbitcoins/purchase_order.php:38 Stack trace: #0 [internal function]: SoapClient->__doRequest('__soapCall('s:17:"RequestPa...', Array) #2 {main}ERROR Is there somthing I'm not understanding about soap? I will be willing to throw in 1 BTC to the person who can get a working code going.... To be honest, that code you derived from the example looks really messy and unlikely to work. I think there is something none of us is understanding about soap! LOL. It's probably something to do with formatting the header correctly, which I have no idea how to do. I'm not a coder by trade, just have a lot of experience with PHP. nhodges code on stackoverflow might work, you could give that a shot. But if you are still having trouble, take a look at using their REST API instead of their SOAP API. It uses simpler HTTP GET and POST methods, rather than the complicated SOAP protocol. I believe it also encodes responses in JSON format, so that should be familiar to most devs here. I believe it is still sort of in beta though. Their SOAP API is the bigger brother. Links for more info: http://www.dwolla.org/d/showthread.php?2-REST-APIhttp://www.dwolla.org/d/showthread.php?690-Dwolla-GRID-Start-Here-to-Access-the-GRID
|
|
|
|
mjcmurfy
|
|
September 27, 2011, 08:23:03 AM |
|
BTW, just scanned your avatar with my smartphone and realized your QR code is encoded with the link to your website. Thats pretty awesome.
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
September 27, 2011, 03:12:02 PM |
|
Glad you like the QR-Code, I got it from a QR-Code generator on-line somewhere.
Looks like Nuri won the bounty, I'm going to hook up Mjcmurfy with 1 BTC for being really helpful and getting the ball rolling....
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
September 27, 2011, 03:25:06 PM |
|
Give me a few hours before bounties are sent guys I'm kind of behind this project. Thanks for your patience
|
|
|
|
nhodges
|
|
September 27, 2011, 07:48:26 PM |
|
Give me a few hours before bounties are sent guys I'm kind of behind this project. Thanks for your patience
No problem, I'm glad we got through the issue!
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
September 27, 2011, 07:57:47 PM |
|
Give me a few hours before bounties are sent guys I'm kind of behind this project. Thanks for your patience
No problem, I'm glad we got through the issue! I meant to say nhodges won bounty I got your bitcoin address with your forum identity! It must be a dwolla problem because I have $4 in my dwolla account and It wont let me send money to my self when i use the real API and not the test one. I get the following error object(stdClass)#3 (1) { ["SendMoneyResult"]=> bool(false) }
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
September 27, 2011, 08:16:07 PM |
|
Dwolla Devs are telling me SOAP API and OAuth API are deprecated so I guess its back to the REST API where i started.... darn it....
|
|
|
|
captainteemo
|
|
September 28, 2011, 01:39:06 AM |
|
Dwolla Devs are telling me SOAP API and OAuth API are deprecated so I guess its back to the REST API where i started.... darn it....
rest owns, soap is the worst trainwreck i've ever seen
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
September 28, 2011, 03:47:22 AM |
|
where were you two days ago....
|
|
|
|
captainteemo
|
|
September 28, 2011, 04:15:29 AM |
|
where were you two days ago.... passed out drunk in the london underground
|
|
|
|
mjcmurfy
|
|
September 28, 2011, 08:27:08 AM |
|
Glad you like the QR-Code, I got it from a QR-Code generator on-line somewhere.
Looks like Nuri won the bounty, I'm going to hook up Mjcmurfy with 1 BTC for being really helpful and getting the ball rolling....
I wasn't in in for the money mate! Glad you got it all sorted out.
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
September 29, 2011, 09:10:52 AM |
|
|
|
|
|
|