PayPal Web Services API - 2006 Manuale Utente Pagina 27

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 159
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 26
Web Services API Reference July 2006 27
PayPal Web Services API Architecture
SOAP Implementation
EXAMPLE 2.1 General Structure of PayPal API SOAP Request
1. <?xml version=”1.0” encoding=”UTF-8”?>
2. <SOAP-ENV:Envelope
3. xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
4. xmlns:SOAP-ENC=”http://schemas.xmlsoap.org/soap/encoding/”
5. xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”
6. xmlns:xsd=”http://www.w3.org/2001/XMLSchema
7. SOAP-ENV:encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/”>
8. <SOAP-ENV:Header>
9. <RequesterCredentials
10. xmlns=”urn:ebay:api:PayPalAPI”>
11. <Credentials xmlns=”urn:ebay:apis:eBLBaseComponents”>
12. <Username>api_username</Username>
13. <Password>api_password</Password>
14. <Signature/>
15. <Subject/>
16. </Credentials>
17. </RequesterCredentials>
18. </SOAP-ENV:Header>
19. <SOAP-ENV:Body>
20. <specific_api_name_Req xmlns=”urn:ebay:api:PayPalAPI”>
21. <specific_api_name_Request
22. xsi:type=”ns:specific_api_name_RequestType”>
23. <Version xsi:type=”xsd:string”>service_version</Version>
24. <required_or_optional_element xsi:type=”some_type_here”>
25. data
26. </required_or_optional_elements >
27. </specific_api_name_Request>
28. </specific_api_name_Req>
29. </SOAP-ENV:Body>
30.</SOAP-ENV:Envelope>
T
ABLE 2.5 Annotation of Generic SOAP Request
Lines Comment
12, 13 The <Username> and <Password> elements are part of the PayPal Web Services API
<RequesterCredentials> security authentication mechanism you must construct for every
SOAP request header. For details, see
“SOAP RequesterCredentials: Username,
Password, Signature, and Subject” on page 24
.
14 The
<Signature> element should include your API signature string if that is the kind of API
credential you are using. For more details, see
“<Signature>” on page 24.
15 The
<Subject> element can specify a third-party PayPal account by whom you are authorized
to make this request. For more details, see
“<Subject>” on page 25.
19 through
27
The SOAP request for every PayPal API follows this element naming pattern. The API’s specific
name is appended with
Req, and in this element the specific_api_name_Request is nested. Each
specific_api_name_
Request has a corresponding specific_api_name_RequestType.
Vedere la pagina 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 158 159

Commenti su questo manuale

Nessun commento