php-windows Digest 31 Mar 2005 05:19:26 -0000 Issue 2622

Topics (messages 25796 through 25800):

GMP in windows snaps
        25796 by: jonraston.hotmail.com

Question on accessing C# Web Service
        25797 by: Adam
        25798 by: Charles P. Killmer
        25799 by: Adam

How to find out which Apache Version to use?
        25800 by: janbro

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
I have copied the sample of gmp_add() from the function page and have tried
to run it from the snap that I downloaded this morning with the recommended
ini that is in the folder with it and I keep getting the error here.

PHP Fatal error:  Call to undefined function gmp_add()

do I need a dll extension or need to install gmp somehow?

Thanks

--- End Message ---
--- Begin Message ---
Hello
I am new to PHP soap and I have a simple question.

here is my simple hello world server class

namespace TestService
{
 public class Service1 : System.Web.Services.WebService
 {
  public Service1()
  {
   InitializeComponent();
  }

  [WebMethod]
  public string HelloWorld()
  {
   return "Hello World";
  }
 }
}

and Here is my PHP client

<html>
<body><?php echo "Hello World"; ?>
<br>
<?php

require_once('lib\nusoap.php');

$client = new soapclient('http://localhost/TestService/Service1.asmx?WSDL',
'wsdl');

$rs = $client->call('HelloWorld');
echo 'result:' . $rs;

?>
</body>
</html>


The result I got is

Hello World
result:Array

Can anyone pls help me with this ??
It return no error, but say rs is an Array. When I try to access the $rs as
array it gives me a offset error.

--- End Message ---
--- Begin Message ---
You could print_r $rs and see exactly what it contains.  Otherwise you
could add this to your code to make things simpler.

$soap_proxy = $client->getProxy();
$result = $soap_proxy->HelloWorld(); 

This is how I do it.

Charles

-----Original Message-----
From: Adam [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 1:28 PM
To: [email protected]
Subject: [PHP-WIN] Question on accessing C# Web Service

Hello
I am new to PHP soap and I have a simple question.

here is my simple hello world server class

namespace TestService
{
 public class Service1 : System.Web.Services.WebService  {
  public Service1()
  {
   InitializeComponent();
  }

  [WebMethod]
  public string HelloWorld()
  {
   return "Hello World";
  }
 }
}

and Here is my PHP client

<html>
<body><?php echo "Hello World"; ?>
<br>
<?php

require_once('lib\nusoap.php');

$client = new
soapclient('http://localhost/TestService/Service1.asmx?WSDL',
'wsdl');

$rs = $client->call('HelloWorld');
echo 'result:' . $rs;

?>
</body>
</html>


The result I got is

Hello World
result:Array

Can anyone pls help me with this ??
It return no error, but say rs is an Array. When I try to access the $rs
as array it gives me a offset error.

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I changed the php code to the follows.

<html>
<body><?php echo "Hello World"; ?>
<br>
<?php

require_once('lib\nusoap.php');

$client = new soapclient('http://localhost/TestService/Service1.asmx?WSDL', 
'wsdl');

$soap_proxy = $client->getProxy();
$rs = $soap_proxy->HelloWorld(null);

echo $rs;

?>
</body>
</html>

=== Output ===
Hello World
Array

However the output is till $rs = Array
Am I missing anything, or I need to install other PHP support package.

Adam

"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
You could print_r $rs and see exactly what it contains.  Otherwise you
could add this to your code to make things simpler.

$soap_proxy = $client->getProxy();
$result = $soap_proxy->HelloWorld();

This is how I do it.

Charles

-----Original Message-----
From: Adam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 1:28 PM
To: [email protected]
Subject: [PHP-WIN] Question on accessing C# Web Service

Hello
I am new to PHP soap and I have a simple question.

here is my simple hello world server class

namespace TestService
{
 public class Service1 : System.Web.Services.WebService  {
  public Service1()
  {
   InitializeComponent();
  }

  [WebMethod]
  public string HelloWorld()
  {
   return "Hello World";
  }
 }
}

and Here is my PHP client

<html>
<body><?php echo "Hello World"; ?>
<br>
<?php

require_once('lib\nusoap.php');

$client = new
soapclient('http://localhost/TestService/Service1.asmx?WSDL',
'wsdl');

$rs = $client->call('HelloWorld');
echo 'result:' . $rs;

?>
</body>
</html>


The result I got is

Hello World
result:Array

Can anyone pls help me with this ??
It return no error, but say rs is an Array. When I try to access the $rs
as array it gives me a offset error.

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php 

--- End Message ---
--- Begin Message ---
Hi List,
I'm wondering on which Apache Version to use.
I've been using both the 1.3 and the 2.0 and
they both have been working fine for me, I
remember a couple years ago developers have
been warned to use the 2.0 with PHP, but I
don't remember why. Wo how do they differ?

I want to use PHP 5.03

thx
JanBro

--- End Message ---

Reply via email to