James Newman | 17 Jul 2012 05:22
Picon
Favicon

SOAP and Php question about authentication

I'm having a few authentication issues and I'm not sure if it's my code or
the web service I'm connecting to.  The code below shows what I'm working
with not sire if I'm going about it the right way.

This is the error I get!

Fatal error: Uncaught SoapFault exception: [soap:Client]
System.Web.Services.Protocols.SoapException: Authentication error. Username
and/or Password are incorrect at
F2CPaymentWS.Shared.Exceptions.ExceptionManager.RaiseSoapException(String
ErrorMessage, Int32 ErrorNumber, ExceptionType Type, FaultCode WhosFault,
String Method) at F2CPaymentWS.PaymentWS.ProcessPayment(String Username,
String Password, Int32 TxType, Int32 AccountId, Decimal Amount, String
Reference, String Particular, String Email, String CardNumber, String
CardType, String CardExpiry, String CardHolderName, String CardCSC, Boolean
StoreCard) at F2CPaymentWS.PaymentWS.ProcessPurchase(String Username,
String Password, Int32 AccountId, Decimal Amount, String Reference, String
Particular, String Email, String CardNumber, String CardType, String
CardExpiry, String CardHolderName, String CardCSC, Boolean StoreCard) in
C:\Development\website\includes\class\Flo2cash_API.php:50 Stack trace: #0
C:\Development\allaboutauckland.com\includes\class in
C:\Development\website\includes\class\Flo2cash_API.php on line *50*
*
*
Can someone point me in the right direction?

$data = array(
'Username' =>'********',
 'Password' =>'********',
'AccountId' =>'********',
(Continue reading)

Matijn Woudt | 17 Jul 2012 08:10
Picon

Re: SOAP and Php question about authentication

Op 17 jul. 2012 05:23 schreef "James Newman" <james.newman <at> primalmedia.co.nz>
het volgende:
>
> I'm having a few authentication issues and I'm not sure if it's my code or
> the web service I'm connecting to.  The code below shows what I'm working
> with not sire if I'm going about it the right way.
>
> This is the error I get!
>
> Fatal error: Uncaught SoapFault exception: [soap:Client]
> System.Web.Services.Protocols.SoapException: Authentication error.
Username
> and/or Password are incorrect at

Really.. have you had a look at your error before mailing it to this list?
This error looks pretty clear to me..

- Matijn
Curtis Maurand | 17 Jul 2012 16:32

Re: SOAP and Php question about authentication


That's not a helpful answer.  I'd be curious at a real answer
for this, too.  I'm sure that there is something going on with
session management on the client side as authentication has probably
already happened, but the author doesn't know how to handle the response
to the authentication correctly.

--Curtis

Matijn
Woudt wrote:
> Op 17 jul. 2012 05:23 schreef "James
Newman"
> <james.newman <at> primalmedia.co.nz>
>
het volgende:
>>
>> I'm having a few authentication
issues and I'm not sure if it's my code
>> or
>> the
web service I'm connecting to.  The code below shows what I'm
>> working
>> with not sire if I'm going about it the
right way.
>>
>> This is the error I get!
>>
>> Fatal error: Uncaught SoapFault exception:
[soap:Client]
(Continue reading)

James Newman | 17 Jul 2012 22:44
Picon
Favicon

Re: SOAP and Php question about authentication

I agree with your response, the payment gateway insists that the
authentication I have been given is correct.  My question was more around
"was I using the function correctly".  It says authentication failed but
I've followed he documentation to the letter. Is there a way I can output
what the server is saying when a request is sent?

On Wed, Jul 18, 2012 at 2:32 AM, Curtis Maurand <curtis <at> maurand.com> wrote:

>
>
>
> That's not a helpful answer.  I'd be curious at a real answer
> for this, too.  I'm sure that there is something going on with
> session management on the client side as authentication has probably
> already happened, but the author doesn't know how to handle the response
> to the authentication correctly.
>
> --Curtis
>
> Matijn
> Woudt wrote:
> > Op 17 jul. 2012 05:23 schreef "James
> Newman"
> > <james.newman <at> primalmedia.co.nz>
> >
> het volgende:
> >>
> >> I'm having a few authentication
> issues and I'm not sure if it's my code
> >> or
(Continue reading)

Matijn Woudt | 17 Jul 2012 22:59
Picon

Re: SOAP and Php question about authentication

Op 17 jul. 2012 22:44 schreef "James Newman" <james.newman <at> primalmedia.co.nz>
het volgende:
>
> I agree with your response, the payment gateway insists that the
> authentication I have been given is correct.  My question was more around
> "was I using the function correctly".  It says authentication failed but
> I've followed he documentation to the letter. Is there a way I can output
> what the server is saying when a request is sent?
>

Well, that really depends on the payment gateway. Anyway it should of
course work if you have followed the documentation. Just want to let you
know that you're probably not going to get a in depth response on how to
use the payment gateway, since that is specific to your provider. The best
way of looking what you're sending to the server and back is using a packet
logger, for example wireshark. Though, make sure you run the capture on the
webserver ..

- Matijn

Gmane