Oracle® Fusion Middleware User's Guide for Oracle B2B 11g Release 1 (11.1.1) Part Number E10229-04 |
|
|
View PDF |
This chapter provides information about using the Oracle B2B Web Services. It contains the following topics:
Oracle B2B exposes web services to retrieve the document details in Oracle JDeveloper. These are partner-facing web services, where the user can send messages to Oracle B2B. Similarly, Oracle B2B provides a web service exposed to the back end to receive the messages, and process and send to partner, based on the agreements deployed in Oracle B2B.
To use the Oracle B2B web services, create a web service proxy in your application in Oracle JDeveloper. The Web Services Description Language (WSDL) files for the web services are available at the following URLs on the system where Oracle B2B is installed.
http://host_name:port_number/b2b/services/URI
A URL suffixed with just a URL pattern of Servlet entered in the Web browser, without any URI, provides the list of WSDLs available for download (with no security restrictions).
Oracle B2B provides the following web service APIs:
Outbound Web Service API provides a built-in internal listening channel. See Section 19.2, "Using the Outbound Web Service" for more information.
Translation Web Service API is exposed to translate the native payload, such as HL7, EDI, to XML format. See Section 19.3, "Using the Translation Web Service" for more information.
Query API helps to retrieve the configured details in Oracle B2B. See Section 19.4, "Using the Query API" for more information.
Security For Oracle B2B Web Services
Oracle Web Services Manager allows integrating various types of policies without impacting the run time and flow of the web service, and it provides security of service infrastructure. Signing, encryption/decryption, authentication, authorization, auditing, and reporting will be provided by this tool kit. Hence, this web service implementation will not address the details of security, signing, and encryption. Web service methods hold the business logic instead of security details. Based on the policy enforced in Oracle Weblogic Server console, the web service client must attach security details with the web services port.
The Outbound Web Service is exposed as a built-in internal listening channel, and messages are enqueued to this service. Based on the details and headers in soap:body
, agreement identification is done and the message are routed to the partner.
Table 19-1, Table 19-2, and Table 19-3 describe the Outbound Web Service request, response and fault notification message parameters.
Table 19-1 Outbound Web Service Request Parameters
Header | Data Type | Description | Required |
---|---|---|---|
from |
String |
Host name or identification value |
No |
to |
String |
Trading Partner name or identification value |
Yes |
@type |
String Example: |
Identification type |
No |
documentProtocolVersion |
String Example: |
Document type version |
Yes Foot 1 |
documentTypeName |
String Example: |
Document type name |
|
action |
String Example: |
ebMS action name |
|
service |
String Example: |
ebMS service name |
|
serviceType |
String Example: Default: |
ebMS service type |
|
messageId |
String |
Message ID given in this parameter is used to create |
No |
replyToMessageId |
String Example: |
Holds the message ID of which message this reply goes to, along with the collaboration ID. |
No |
messageType |
String |
Type of the message |
No |
encoding |
String Example: Default: |
Encoding format |
No |
payload |
Xsd:anyType |
Holds the payload |
Yes |
attachment |
Xsd:anyType |
Attachment, if any |
No |
Footnote 1 Either documentProtocolVersion
and documentTypeName
must be present, or action
, service
, and serviceType
must be present. A custom generic case only requires action
and not the others.
The Translation Web Service translates the XML payload, such as HL7, EDI, to native format.
Table 19-4, Table 19-5, and Table 19-6 describe the Translation Web Service request, response and fault notification message parameters.
Note:
If a non-EDI XML is sent, then the translated content contains the same payload as it is, provided the agreement matches in Oracle B2B server.If the EDI XML is sent for translation, and the document is involved as part of a batch, then the translated response will not translate the payload.
Note:
The Translation Web Service translates the EDI XML payload native format, but does not translate the native payload to XML.Note:
Translation Web service requests are not differentiated from other outbound requests in reporting and metrics.Table 19-4 Translation Web Service Request Parameters
Header | Data Type | Description | Required |
---|---|---|---|
from |
String |
Host name or identification value |
No |
to |
String |
Trading Partner name or identification value |
No |
@type |
String Example: |
Identification type |
No |
documentProtocolVersion |
String Example: |
Document type version |
Yes |
documentTypeName |
String Example: |
Document type name |
Yes |
encoding |
String Example: Default: |
Encoding format |
No |
payload |
Xsd:anyType |
Holds the payload |
Yes |
The Query API retrieves the configured details from Oracle B2B, and share them with applications.
Before initiating a message transmission from applications, a health check request is made for the given parameters. This check finds if any configurations exist, and how many are active. If no configuration is found, the application can stop message flow in its layer with the message "no configuration found in B2B."
The following APIs are provided:
Is Trading Partner Agreement Setup
returns true if agreement found for the given inputs. See Section 19.4.1, "Is Trading Partner Agreement Setup Parameters" for parameter details.
Get Trading Partner Agreement Information
returns agreement details. See Section 19.4.2, "Get Trading Partner Agreement Information Parameters" for parameter details.
Table 19-7 Is Trading Partner Agreement Setup Request Parameters
Header | Data Type | Description | Required |
---|---|---|---|
from |
String |
Host name or identification value |
No |
to |
String |
Trading Partner name or identification value |
No |
@type |
String Example: |
Identification type |
No |
document |
String Example: |
Name of the internal application document or AIA EBO to be sent out |
Yes |
action |
String Example: |
A sub-classification which identifies the specific interaction with the Trading Partner |
Yes |
Table 19-10 Get Trading Partner Agreement Information Request Parameters
Header | Data Type | Description | Required |
---|---|---|---|
from |
String |
Host name or identification value |
No |
to |
String |
Trading Partner name or identification value |
No |
@type |
String Example: |
Identification type |
No |
document |
String Example: |
Name of the internal application document or AIA EBO to be sent out |
No |
action |
String Example: |
A sub-classification which identifies the specific interaction with the Trading Partner |
No |
Table 19-11 Get Trading Partner Agreement Information Response Parameters
Header | Data Type | Description | Required |
---|---|---|---|
AgreementID |
String |
Unique Agreement ID of the matching agreement |
Yes |
B2BDocumentDef |
String |
Document definition in Oracle B2B used for creating the Oracle B2B document type |
Yes |
B2BDocumentType |
String |
Document type defined in Oracle B2B for the requested application document and action |
Yes |
B2BDocumentRevision |
String |
Document revision defined in Oracle B2B for the requested application document and action |
Yes |
B2BDocumentProtocol |
String |
DocumentProtocol name defined in Oracle B2B for the requested application document and action |
Yes |
Direction |
String |
Document direction |
Yes |
XSLTFile |
String |
XSLT file to be used by the AIA layer to generate the Oracle B2B TP document |
No |