This applies specifically to .NET. And I decided to use the link to the web service instead of the web service ... I think, although my questions below are valid for any situation, and I want to try to get a general idea about this.
So, here is the problem for me. Let me first explain where I come from. One of the past projects, I already spoke with several APIs, creating manual classes such as GetPicturesRequest.cs and GetPicturesResponse.cs, for example, which will have state for me. I will have a base class called Request.cs, which performed the actual dispatch of the api call:
Stream requestStream;
Stream responseStream;
XmlDocument doc = new XmlDocument();
doc = CreateRequestXML();
string requestURI = UseAuthURI == true ? _requestURIAuthBased + JSessionID : _requestURI;
byte[] data = XmlUtil.DocumentToBytes(doc);
HttpWebRequest request = CreateWebRequest(requestURI, data.Length);
request.ContentLength = data.Length;
request.KeepAlive = false;
request.Timeout = 30000;
requestStream = request.GetRequestStream();
requestStream.Write(data, 0, data.Length);
requestStream.Close();
-. https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl VS 2008. -.
-, , - , API:
1) ? , API , (), sessionID, , , API. - -?
2) / , -/? , ?
3). , - API -/?
4) , , -/ WSDL?... -, , , ? , VS, - WSDL? , API, SOAP? , API WSDL, ?