FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP SOAP error





eudbase
Hi, I am using wampserver`s PHP ver 5.2.5 to run PHP SOAP extension but I have getting this type of error..


Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\wamp\www\try_SOAP.php:28 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://64.124.1...', 'urn:xmethods-de...', 1, 0) #1 C:\wamp\www\try_SOAP.php(2Cool: SoapClient->__call('getQuote', Array, Array) #2 {main} thrown in C:\wamp\www\try_SOAP.php on line 28

Can anyone tell me what is the problem?

I post my code here:

Code:

<?php

$client = new SoapClient(NULL,
        array(
        "location" => "http://64.124.140.30:9090/soap",
        "uri"      => "urn:xmethods-delayed-quotes",
        "style"    => SOAP_RPC,
        "use"      => SOAP_ENCODED
           ));

print($client->__call(
        /* SOAP Method Name */
        "getQuote",
        /* Parameters */
        array(
            new SoapParam(
                /* Parameter Value */
                "ibm",
                /* Parameter Name */
                "symbol"
        )),
        /* Options */
        array(
            /* SOAP Method Namespace */
            "uri" => "urn:xmethods-delayed-quotes",
            /* SOAPAction HTTP Header for SOAP Method */
            "soapaction" => "urn:xmethods-delayed-quotes#getQuote"
        )). "\n");
?>
rvec
-close-
http://www.frihost.com/forums/vt-93773.html

Please keep all the stuff about SOAP in one topic.
Related topics
Help: SQL error after uploading new files(thread updated)
PHP DB Error: syntax error
[RESOLVED] php-nuke error?
PHP/Blogger error
Php parsing error! Need help
PHP Parse error on form handling - New to PHP
[PHP] Parse error
PhP install error
PHP - Solve PHP Fatal error: Allowed memory size of 8388608
Using PHP in error pages
Please can anyone help with a php script error/problem?
PHP Fatal Error (Issue Resolved)
PHP-SOAP enable
Error pages
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.