How can I execute SOAP request to get DoDirectPaymentResponseType
response?
I added PayPal sandbox Web Reference. I declared request variable as
DoDirectPaymentRequestDetailsType and build request.
When I try to execure request:
DoDirectPaymentResponseType response =
service.DoDirectPayment(request);
I got an error that it has invalid arguments (Should I convert
DoDirectPaymentResponseType response to DoDirectPaymentReq type?)
References from PayPal:
----------------------------------------------------
public DoDirectPaymentResponseType
DoDirectPayment([System.Xml.Serialization.XmlElementAttribute(Namespace
=
"urn:ebay:api
ayPalAPI")] DoDirectPaymentReq DoDirectPaymentReq)
{
object[] results = this.Invoke("DoDirectPayment", new
object[]
{
DoDirectPaymentReq});
return ((DoDirectPaymentResponseType)(results[0]));
}
------------------------------------------------------
* For service I used OpenNETCF.Web.Services2 since I don't have
CallerServices and IAPIProfile that can be used in desctop
applications.
Could be it done easier?
Please help. I'm really stuck here. Thank you.
:
I don't know what sequence of calls/classes you have to make, but the
SOAP-based API certainly seems complete. In your .NET CF project,
choose
Add Web Reference, enter the address of the PayPal service, as given
on
the
PayPal Web site, and Visual Studio will build you the classes that
PayPal
provides for your project. There is no CallerServices class, by the
way...
Paul T.
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT
com> wrote in message That's a question for PayPal. Not my area...
Paul T.
Do you know if it's possible to use PayPal SOAP API functions in
Compact
Framework?
What SDK package do I need for that and what I can use instead of
CallerServices?
Thank you.
:
Yes, that class does not exist in the .NET Compact Framework 3.5
or
earlier.
Perhaps you have referenced an assembly that is a *desktop* (.NET
Framework,
not .NET Compact Framework), assembly in your project?
Paul T.
I'm trying to process credit card payment from the mobile
application
using
PayPal API functions. When I make the call to the API "Direct
Payment"
(using
"DoDirectPaymentRequestType" object) from an instance of the
class
"CallerServices" I get an error: "Could not load type
System.Threading.ReaderWriterLock from assembly mscorlib,
Version
2.0.0.0".
I get that error only in mobile development (works fine in
Windows
application).
Please if any help. I'm working on Windows CE platform, VS2005.
The
line
of
the code that gives me an error:
CallerServices caller = new CallerServices();
Thank you.