introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

SOAP



Posted by: BioHazardNL
August 21, 2009 12:50PM
Hallo,
I have a question. So school I have to do some research on SOAP. I installed easyphp normaly and whant to run some code.

<?php

$client = new SoapClient(NULL,
array(
"location" => "[64.124.140.30];,
"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");
?>

But I get this message when i try to run it:

Fatal error: Class 'SoapClient' not found

I can't find anywhere how to install SOAP extentions. It there on build into php5? Or do i have to install an external one. Please help me.
Options: ReplyQuote
Posted by: Amour
August 21, 2009 04:38PM
To use SOAP, you must activate PHP extension ;)
Options: ReplyQuote
Posted by: BioHazardNL
August 24, 2009 08:17AM
Okej that sounds logical. But can you tell me HOW. That would be handy. THankyou
Options: ReplyQuote
Posted by: Amour
August 24, 2009 08:46AM
You can manage PHP extensions with right click on systray icon --> Configuration --> PHP Extensions
Options: ReplyQuote
Posted by: BioHazardNL
August 24, 2009 09:26AM
And what is this is the case:
[img196.imageshack.us]
Please be more clear. Do i have to download the extention? If Yes where. If no why can't i activate it?
Options: ReplyQuote
Posted by: Amour
August 24, 2009 09:43AM
... you have exactly same bug that an other one, with all recent versions extensions are'nt working

Can you try to edit manually "php.ini" into "conf_files", and uncomment (remove ;) for soap ?
After, close and re-open EasyPHP.
Is it ok ?
Options: ReplyQuote
Posted by: BioHazardNL
August 24, 2009 10:20AM
Okej thank you this worked. I think it's running good now.
Options: ReplyQuote
Posted by: BioHazardNL
August 24, 2009 10:34AM
Ow no it doesn't:
This is my code:
<?php

$client = new soapclient('http://www.webservicex.net/usaddressverification.asmx');

$functions = $soapClient->_getFunctions();
print_r($functions);

$types = $soapClient->_getTypes();
print_r($types);

?>

And this is the error:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.webservicex.net/usaddressverification.asmx' : Premature end of data in tag html line 3 in D:\Web1\webservice_client.php:3 Stack trace: #0 D:\Web1\webservice_client.php(3): SoapClient->SoapClient('http://www.webs...') #1 {main} thrown in D:\Web1\webservice_client.php on line 3


Is this an error caused by the webapp or by my code.
Options: ReplyQuote
Posted by: Amour
August 24, 2009 11:42AM
I'm sorry but that forum is here only for EasyPHP problems, not coding.
You'll get good help with other forums ;)

Also, I don't know SOAP :(
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.