Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 2
There are 1 users currently browsing forums.
PHP Scripting PHP is a scripting language for rapid web-development. It's a popular and powerful, OOP-capable language that is used by professionals. Discuss PHP here.

Reply
  #1  
Old 07-21-2010
New Born
 
Join Date: Jul 2010
Posts: 2
Rep Power: 0
stanl is on a distinguished road
PHP CLI - SOAP Request

This is my first post. I downloaded and installed PHP (5.3.2) to my XP laptop after reading about the CLI on another forum. I was interested in making simple SOAP requests and read several links with examples. However, even the simplest of scripts

PHP Code:
#! php.exe -q
<?php
$wsdl
="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"
$client = new SoapClient($wsdl); 
$country = array( "FromCurrency" => "USD","ToCurrency" => "GBP"); 
$result $client->ConversionRate($country); 
print(
$result);
?>
executes, but returns nothing. The wsdl is active, I have checked that the php.ini file has the necessary SOAP options enabled and extension=php_soap.dll is enabled. I can execute a similar call in VbScript using the Microsoft SOAP.dll - I am probably missing something but in all I have read, nobody mentions anything more is needed (for this particular call).

I'm hoping someone can help me get this working. TIA Stan
Reply With Quote
  #2  
Old 07-22-2010
New Born
 
Join Date: Jul 2010
Posts: 2
Rep Power: 0
stanl is on a distinguished road
Re: PHP CLI - SOAP Request

I figured it out. Two things (1) the PHP SOAP implementation is buggy (2) 90% of the blogs/articles you google for PHP CLI and SOAP are either incomplete or just plain wrong.
Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Collect 27 ebook learn php quyvphan PHP Articles 1 04-23-2009 05:52 PM
News: PHP 5.2.1 and PHP 4.4.5 Released PHP.net PHP Scripting 0 03-15-2007 12:31 PM