问题
I just found out that I get the "Add Service Reference" context menu option in a class library project but not in a "Web Site" project.
Now I am too far in this project and i need to use the Paypal Express Checkout option in my website. But when i add a web reference to the API, i do not get a reference.cs
class. Is there another option to integrate the API.
If yes, a code sample would be great help.
回答1:
The following links could be useful: http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/checkout-and-payment-with-paypal
The example uses HttpWebRequest to communicate with PayPal. Hope this helps.
回答2:
as Henk Holterman suggested in the comments above,The option to add a Service Reference is available in .Net Framewrok 3.5 and above.
I upgraded my site to framework 3.5 and it worked out the way i wanted it.
来源:https://stackoverflow.com/questions/19114444/how-to-add-a-service-reference-in-a-asp-net-website