The Artima Developer Community
Sponsored Link

Web Services Forum
SOAP:The most simple example

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michal

Posts: 1
Nickname: highlander
Registered: Mar, 2004

SOAP:The most simple example Posted: Mar 25, 2004 1:10 PM
Reply to this message Reply
Advertisement
Hello
I have very big problem with creating even most simple SOAP client. I implemented my own client/server in perl (works fine), but i can not do even most simple example with php.
I tried about 10 different examples from and alywas the same problem:
after line: $soap_client->call() my php engine does not return any character.
Php works fine on my Apache 2.0.48. No errors in logs.

Here is example witch i tried:

<?php
ini_set('include_path','/usr/local/lib/php');
include("SOAP/C lient.php");

$options = array('namespace' => 'urn:GoogleSearch', 'trace' => 1);
$s = new SOAP_Client('http://api.google.com/search/beta2');

$tab= array(
'key' => "text",
'q' => "\"" . "text" . "\"",
'start' => 0,
'maxResults' => 10,
'filter' => false,
'restricts' => '',
'safeSearch' => false,
'lr' => '',
'ie' => '',
'oe' => '');
echo "text";
echo $result = $s->call('doGoogleSearch',$tab, $options);
?>



After that my web browser only receive "text" string.
Could anybody help ? What am i missing ?

Thanx for any help

Topic: Consuming Web Service in C# Window Application Previous Topic   Next Topic Topic: JDBC

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use