473,395 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Calling a .NET webservice PEAR::SOAP, passing parameters

Hi, I'm trying to call a webservice written in .NET that takes some
parameters.

I can get it working on a machine with php5 but when I try to call the
function from machine using php4 and PEAR::SOAP I get no input values
returned.

The function takes 2 strings and an integer, nothing complex. It returns a
string.

Here is the PHP4 code:
<?php
require_once 'SOAP/Client.php';
$wsdl_url = 'http://develop/register.asmx?WSDL';
$WSDL = new SOAP_WSDL($wsdl_url);
$client = $WSDL->getProxy();

$sFirstName = "Tony";
$sSurname = "Bloke";
$iID = 22;

$result = $client->Hello($sFirstName, $sSurname, $iID)

echo $result->HelloResult;
?>

I got no errors and this was echoed to the page:
Hello your ID is 0

but what it should say is:
Hello Tony Bloke Your ID is 22

I modified the ASP.NET file to check the values in the string and I got an
error which basically said I was performing operations on strings didn't
exists, which suggests that the values were not being sent over from the PHP
file.

So any suggestions where I'm going wrong with my php function call?

Cheers,
Tony
Jul 21 '05 #1
1 2310
bens
1
Hi, I'm french.
I've got the same prob.
Do you find a solution? Thx for a response.

Bens
May 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Arne Kösling | last post by:
Hi ! I am new to Web Services. Therefore I ve set up a PHP Installation on Windows (PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed PEAR. Now I am stuck there (Before...
0
by: Jimmy Jim | last post by:
OK, I am so frustrated with PEAR SOAP, I have it working, but it seems when I include a file and in that file is a function with global variables, those globals are not set. Anyone have ANY...
0
by: Arne Kösling | last post by:
Hi, PEAR:SOAP is not working. I've tried so many examples now and the only one that works, is that amazon example, which is too complex for me to understand. I am so reliant on the Web...
0
by: Doug Farrell | last post by:
Hi all, I'm trying to make use of PEAR::SOAP am and having problems. I've tried a number examples I've found on the web, but to no avail. I've set things up so I have to separate servers on my...
0
by: Henrik Brautaset Aronsen | last post by:
I am having problems converting from Pear SOAP to PHP5 SOAP, especially when it comes to complex types. I would be grateful for any help on how this should be translated: ...
3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
0
by: Alexander Waldmann | last post by:
Hi, i have PEAR::SOAP installed correctly (beta, all dependent packages are installed). When i try out the following simple Script <?php print "Include is ... ";...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
3
by: greedysmurf | last post by:
Hi. Sometimes my script works but most of the time it gives me a blank page with no errors. Any suggestions? This isn't the one that works but I would expect it to give me errors if it didn't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.