logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

RE: Long data type: msg#00048

Subject: RE: Long data type
Try the following

$soapclient = new soapclient('https://www.foobar.com/pay?wdsl','wsdl');



-----Original Message-----
From: nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jure
Kodzoman (Dhimahi)
Sent: 15 March 2006 10:27
To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Nusoap-general] Long data type

On Tue, 2006-03-14 at 10:08 -0500, Scott Nichol wrote:
> If you use WSDL from the gateway, NuSOAP should send the value as a
long.
> 
> If your client code does not use WSDL, you should use the soapval
class to make the parameter a long.
> 
> Scott Nicho I am using nusoap to connect to a payment gateway.

Mark is right, we do send long as a form of id, and not for calculation
purposes. Server should be using WSDL, but I still get the error.

Perhaps I am calling something wrong?

Here are samples of the code which
should give you a clue of what I am doing:
-------
$soapclient = new soapclient('https://www.foobar.com/pay?wdsl');

$headers = '<credentials><username>' . $username . '</username>' .
'<password>' . $password . '</password></credentials>'; 

$soapclient->setHeaders($headers);

$payment_id = $return_val['idTrans'];
$soapclient -> call('acknowledge', array('lang' => $language, 
                                         'transRef' => $payment_id));
-------

Should I be mentioning somewhere in code that I wanted WSDL, other than
the URL of the server it self. I went through documentation, but I
couldn't find a reasonable solution.

Thanks for your help,

Jure Kodzoman



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642


<Prev in Thread] Current Thread [Next in Thread>