






































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!







































2 C U S T O M E R Supplier data integration using RESTful web service APIs
You use the Relationship Service to manage relationships to synchronize supplier data, or data sync relationships. A buyer and supplier must have a data sync relationship before the buyer can synchronize the supplier's data (profile) with external systems.
Note that if you integrate your Ariba Network supplier data with SAP Ariba Strategic Sourcing solutions, you do not explicitly use the Relationship Service to establish a data sync relationship; instead, SAP Ariba establishes a data sync relationship when the Supplier Integration feature is enabled for the supplier on the SAP Ariba Strategic Sourcing solutions Organization Profile page.
Mailboxes are used by SAP Ariba to notify clients when supplier data is created or modified on an SAP Ariba server. SAP Ariba places messages in client mailboxes; clients are expected to use the Mailbox Service to periodically check mailboxes for messages. Message notifications for new or modified supplier data include a URI for the client to send requests to the Profile Service or Extended Profile Service and retrieve the supplier data. Clients also use mailboxes to post acknowledgements for retrieved messages.
SAP Ariba creates one mailbox for each external system or master data governance system you have a data synchronization relationship with.
You can use the Profile Service to:
● Get basic supplier profile data. ● Add or update a Private ID for a supplier. The Private ID field is used to specify the supplier's ID on the external system.
Basic supplier profile data is available online to all buying organizations and includes the following information:
● Organization Name ● Ariba Network ID ● Address and contact information (postal address, phone, fax, email, URL) ● Corporate information ● Tax information ● Information about a business contact (a person identified as a business contact) ● Commodities ● Territory
Basic profile data is stored in the supplier's Ariba Network for Suppliers profile.
After a supplier in your site is linked to their Ariba Network for Suppliers profile (usually after you have interacted with them by inviting them to an event, inviting them to actively self-register, or responding to one of their SAP Ariba Discovery postings), only the supplier can update the basic profile data and the profile status becomes Private. (The Profile Service can be used to to retrieve basic profile data regardless of the profile status.)
4 C U S T O M E R
Supplier data integration using RESTful web service APIs About supplier data integration using RESTful web service APIs (SAP Ariba web services for master data integration)
Note
You cannot use the Profile Service to create a new supplier.
You can use the extended Profile Service to:
● Get or update extended supplier profile data. Extended supplier profile data consists of responses to items in a Supplier Performance Questionnaire (SPQ) that are enabled for Supplier Integration. ● Retrieve or update business contacts associated with a supplier. ● Deactivate or reactivate a supplier organization in your SAP Ariba Strategic Sourcing solutions site.
● On the SAP Ariba Strategic Sourcing solutions Organization Profile page, a supplier administrator creates or updates a supplier organization and clicks Actions Supplier Integration Enable. The status of the supplier integration for this supplier is set to Pending. ● If the SAP Ariba Strategic Sourcing solutions supplier organization profile is not integrated with the Ariba Network for Suppliers profile (there is no Ariba Network ID for the supplier), SAP Ariba Strategic Sourcing solutions and Ariba Network exchange control messages to synchronize data. Ariba Network assigns an Ariba Network ID to the supplier and sends the ID to SAP Ariba Strategic Sourcing solutions. ● SAP Ariba Strategic Sourcing solutions uses the Relationship Service to establish a data sync relationship for the supplier. ● SAP Ariba places a message in the mailbox for the external system. The message indicates that both the profile and extended profile have been updated (created, in this case) and includes path elements with URLs for the profile and extended Profile Services. ● The client (external system) sends a GET request to the Mailbox Service and retrieves the message. ● The client sends a GET request to the Profile Service at the URL specified in the profile path element of the message retrieved from the mailbox. ● The client sends a GET request to the extended Profile Service at the URL specified in the extended profile path element of the message retrieved from the mailbox. ● The client adds, updates, or passes on information about the supplier from the GET responses. Optionally, the client assigns an ID for the supplier and modifies the extended profile data as needed. ● The client sends a PUT request to the Profile Service with the AN ID in the payload. If an ID was assigned to the supplier, the payload also includes this ID as the Private ID. ● The client sends a PUT request to the extended Profile Service. When SAP Ariba Strategic Sourcing solutions receives this request, it sets the status of the supplier integration for this supplier to Integrated. ● The client sends a PUT request to the Mailbox Service. The PUT request is used to update the message status to success and indicate that the client successfully processed the message that contained the notification for the updated profile data. ● The SAP Ariba server removes the message from the mailbox.
Supplier data integration using RESTful web service APIs About supplier data integration using RESTful web service APIs (SAP Ariba web services for master data integration) C U S T O M E R 5
The SAP Ariba web services for master data integration require communication end points. In addition, you the supplier integration feature must be enabled for your site, supplier organizations, and optionally, Supplier Performance Questionnaire (SPQ) items.
In this section:
Configuring SAP Ariba web services for master data integration [page 7 ]
The following configuration tasks must be completed to use the SAP Ariba web services for master data integration for supplier data. Some of these configuration tasks must be completed by SAP Ariba Customer Support.
● SAP Ariba Customer Support must enable Ariba Network end point options needed by the SAP Ariba web services for master data integration. See Configuring Ariba Network end point options (SAP Ariba Customer Support) [page 8 ]. ● End point configuration. The following end points must be configured: ○ An Ariba Network end point for internal communication between Ariba Network and SAP Ariba Strategic Sourcing solutions. The end point must support the following formats: ○ JSON ○ cXML If the customer's site is already configured to synchronize SAP Ariba Strategic Sourcing solutions supplier data with SAP Ariba commerce cloud profiles, the existing end point can be modified and re-used to also exchange the internal messages used by SAP Ariba web services for master data. See Configuring an Ariba Network end point for internal communication [page 8 ]. ○ One Ariba Network end point for each external system (such as a master data governance system) using the integration services. You must configure one end point for each external system that will access the Mailbox, Profile, or Relationship services. See .Configuring Ariba Network end points for communication with external systems [page 10 ] ○ One SAP Ariba Strategic Sourcing solutions end point for each external system using the integration services. You must configure one end point for each external system that will access the Extended Profile Service. This task is described in Configuring SAP Ariba Strategic Sourcing solutions end points [page 12 ]. ● SAP Ariba Customer Support must configure SAP Ariba Strategic Sourcing solutions site profile and site configuration parameters. See Configuring SAP Ariba Strategic Sourcing solutions end points [page 12 ]. ● SAP Ariba Customer Support must configure the Integrated with option for each Supplier Profile Questionnaire (SPQ) item you want to make available for the SAP Ariba web services for master data
Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration C U S T O M E R 7
integration extended profile API. See Enabling SPQ items for ntegration (SAP Ariba Customer Support) [page 13 ]. ● The Supplier Integration option must be enabled for each supplier organization whose profile you want to make available through SAP Ariba web services for master data integration. See Enabling the supplier integration option for a supplier organization [page 14 ].
If you are using the SAP Ariba web services for master data integration for supplier data that is not integrated with SAP Ariba Strategic Sourcing solutions, the only items you need to configure are Ariba Network end points for the external systems (or master data governance systems) that will access the SAP Ariba web services for master data integration.
Configuring Ariba Network end point options (SAP Ariba
Customer Support)
The steps described are performed by SAP Ariba Customer Support to enable Ariba Network for the end point configuration needed by the SAP Ariba web services for master data integration.
SAP Ariba Customer Support clicks Production Admin Apps AN Admin to configure the following items for your Ariba Network Buyer account:
○ Convert to Ariba Open Network ○ Enable end point support ○ Enable end point support for Pending Queue
Configuring an Ariba Network end point for internal
communication
When using SAP Ariba web services for master data integration for supplier data that is integrated with SAP Ariba Strategic Sourcing solutions, you configure an Ariba Network end point to exchange internal messages with SAP Ariba Strategic Sourcing solutions. If the customer's site is already configured to synchronize SAP Ariba Strategic Sourcing solutions supplier data with SAP Ariba commerce cloud profiles, you can modify and re-use the existing end point to also exchange the SAP Ariba web services for master data internal messages. If you are not using supplier data that is integrated with SAP Ariba Strategic Sourcing solutions, skip this procedure.
8 C U S T O M E R
Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration
Configuring Ariba Network end points for communication
with external systems
When using Ariba web services for master data integration, you configure end points in Ariba Network to exchange data between Ariba Network and external systems for the mailbox, profile, and Relationship Services. You configure these end points in addition to the end point used for internal communication with SAP Ariba Strategic Sourcing solutions.
● Contact your SAP Ariba Customer Support Representative to enable your Ariba Network account to use end points. Your SAP Ariba Customer Service representative must enable the following options for your account: ○ Convert to Ariba Open Network ○ Enable end point support ○ Enable end point support for Pending Queue ● If you will use security certificates to authenticate the external system, obtain the certificate for the external system. The certificate must be a signed X.509 certificate encoded using Privacy Enhanced Mail (PEM) base64-encoding and signed by a Certificate Authority (CA) trusted by SAP Ariba. To get information about the CAs currently trusted by Ariba or to register a CA to be trusted by SAP Ariba, contact SAP Ariba Support. The first line of the certificate must be the following text:
-----BEGIN CERTIFICATE-----
The last line of the certificate must be the following text:
-----END CERTIFICATE-----
10 C U S T O M E R
Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration
○ If this end point will be used exclusively for Master Data Integration web service messages, select OData.
Note
The integration type OData specifies the framework used to exchange data, which is used for all Master Data Integration web services, even when the format query parameter requests a response in cXML.
○ If this end point will be used for both document routing and Master Data Integration web service messages, select cXML and OData.
If you configured an end point with shared secret authentication and the peer is an external system, provide the following information to the administrator of the external system:
● End Point ID ● System ID name, if you are integrated with multiple external systems or ERPs using multi-ERP support ● Shared Secret value
The client must send this information in the HTTP authorization header, as described in Authenticating web services for master data integration [page 15 ].
Configuring SAP Ariba Strategic Sourcing solutions site
profile and site parameters (SAP Ariba Customer Support)
The steps described are performed by SAP Ariba Customer Support to configure SAP Ariba Strategic Sourcing solutions site profile parameters and site configuration options needed by the SAP Ariba Web Services for Master Data Integration.
Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration C U S T O M E R 11
If you configured an end point with shared secret authentication, provide the ID and shared secret value to the administrator of the external system. The client must send this information in the HTTP authorization header, as described in Authenticating web services for master data integration [page 15 ].
Enabling SPQ items for ntegration (SAP Ariba Customer
Support)
The steps described are performed by SAP Ariba Customer Support to configure the Integrated with option for each Supplier Profile Questionnaire (SPQ) item the customers wants to make available for the SAP Ariba Web Services for Master Data Integration extended profile API.
Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration C U S T O M E R 13
Enabling the supplier integration option for a supplier
organization
If your SAP Ariba Strategic Sourcing solutions supplier data is integrated with Ariba Network, you must enable the supplier integration option for the supplier organization to make its profile available through the SAP Ariba web services for master data integration APIs.
● The Supplier Integration option must be enabled for your SAP Ariba Strategic Sourcing solutions site, as described in Configuring SAP Ariba Strategic Sourcing solutions end points [page 12 ]. ● You must be a member of one of the following groups: Sourcing Manager, Supplier/Customer Manager, Supplier/Customer Agent, Administrator, or Integration Admin. ● There must be at least one user configured for the organization.
● The Supplier Integration Status becomes Pending. ● If the SAP Ariba Strategic Sourcing solutions supplier organization profile is not integrated with the SAP Ariba commerce cloud profile (there is no Ariba Network ID for the supplier), SAP Ariba Strategic Sourcing solutions and Ariba Network exchange control messages to synchronize data. Ariba Network assigns an Ariba Network ID to the supplier and sends the ID to SAP Ariba Strategic Sourcing solutions. ● After the data flow described in About supplier data integration using RESTful web service APIs (SAP Ariba web services for master data integration) [page 3 ] is complete, the Supplier Integration Status becomes Integrated.
14 C U S T O M E R
Supplier data integration using RESTful web service APIs Configuring SAP Ariba web services for master data integration
In addition, clients connecting to an Ariba Network end point must send an HTTP Authorization header. The header is a variant of an HTTP Authorization header used for Basic Authentication where the basic- credentials contains only the following base64-encoded string:
anId / systemId / endPointId
If you configured shared secret authentication for an SAP Ariba Strategic Sourcing solutions end point, the external system (client) must send the ID configured in the ID field of the Supplier Integration Configuration page for the userid in the HTTP Authorization header.
For example:
AN
For the password field of the HTTP Authorization header, the client must send the value configured for the Shared Secret field on the Supplier Integration Configuration page.
The format for credentials in the HTTP Authorization header is userid : password , base64 encoded. In this example, the client sends the following string, base64 encoded:
AN0000000099: sharedSecret
where sharedSecret is the Shared Secret configured for the end point.
If you configured certificate authentication for an end point, TLS client authentication is used. The client must use the certificate entered on the SAP Ariba end point configuration page.
Configuring an Ariba Network end point for internal communication [page 8 ]
Configuring SAP Ariba Strategic Sourcing solutions end points [page 12 ]
16 C U S T O M E R
Supplier data integration using RESTful web service APIs Authenticating web services for master data integration
You can retrieve an EDMX document that describes the feeds and properties for a given service.
Prepend the base URI for your site (such as http://service.ariba ) to the URI of the service for which you want metadata. Send an HTTP (non-secured) GET request to the URI.
Service Metadata URI Mailbox /odata/v1/ace.directory/mailbox.svc/ Messages/$metadata Profile /odata/v1/ace.directory/profile.svc/ $metadata Relationship /odata/v1/ace.directory/relationship.svc/ $metadata
Supplier data integration using RESTful web service APIs Retrieving web services for master data integration metadata C U S T O M E R 17
Retrieve the n most recent messages:
/odata/v1/ace.directory/mailbox.svc/Messages?$top= numMessages
Retrieve a specific message:
/odata/v1/ace.directory/mailbox.svc/Messages(' messageId ')
Append the appropriate path to the base URI you use to access Ariba Network, such as https:// service.ariba.com.
Parameter Description Required? messageId ID of the message to retrieve. No, but you must select the message or messages you want to retrieve by speci fying either a messageId or the top query parameter.
Parameter Description Required? top= numMessages Number of messages to retrieve. If this parameter is omitted, the value 100 is used (the service returns up to 100 of the most recent, unacknowledged messages in your mailbox).
No, but you must select the message or messages you want to retrieve by speci fying either a messageId or the top query parameter.
format= format Specifies the format for the response payload. If this parameter is omitted, the re sponse payload format is JSON with metadata. Valid values: ● j (data-only JSON).
No.
None.
Supplier data integration using RESTful web service APIs SAP Ariba web services for master data integration APIs C U S T O M E R 19
● 200 OK: Messages successfully retrieved. ● 204 No Content: No messages available. ● 401 Not Authorized: Unauthorized request.
The status for all messages received is queued (the GET operation retrieves only queued messages).
If the response format is JSON, each message contains a profile and extended_profile element; if the supplier data is not integrated with the SAP Ariba Strategic Sourcing solutions, the extended_profile contains only metadata.
If the response format is data-only JSON and the supplier data is not integrated with the SAP Ariba Strategic Sourcing solutions, no extended_profile element is sent.
The Status field within the profile or extended_profile element indicates if the profile or extended profile data changed ("Status": "UPDATED") or did not change ("Status": "UNCHANGED").
The path fields within the profile and extended_profile elements are callback URLs to use when sending requests to the profile and Extended Profile Services.
"d": { "results": [ { "__metadata": { "id": "https://service.ariba.com/Directory.aw/ad/odata/v1/ace.directory/ mailbox.svc/Messages('40000000000000000000726233')", "uri": "https://service.ariba.com/Directory.aw/ad/odata/v1/ace.directory/ mailbox.svc/Messages('40000000000000000000726233')", "type": "ariba.network.service.common.directory.odata.v1.mailbox.model.Message" }, "msgId": "40000000000000000000726233", "created": "/Date(1424822847000)/", "status": "Queued", "supplierId": "AN00000000009", "profile": { "__metadata": { "type": "ariba.network.service.common.directory.odata.v1.mailbox.model.ProfileMetadata" }, "ApplicationName": "ace.directory", "ServiceName": "profile.svc", "Path": "odata/v1/ace.directory/profile.svc/Suppliers('AN00000000009')", "Status": "UPDATED" }, "extended_profile": {
20 C U S T O M E R
Supplier data integration using RESTful web service APIs SAP Ariba web services for master data integration APIs