The Best Way To Buy!
IP*Works!
Microsoft .NET ActiveX / VB ASP Delphi C++ Builder C++ Java J2EE Unix / Linux Mac OS X .NET CF
IP*Works! SSL
IP*Works! S/MIME
Microsoft .NET ActiveX / VB ASP Delphi C++ Builder C++ Java J2EE
IP*Works! SSH
Microsoft .NET Java J2EE .NET CF
IP*Works! Zip
IP*Works! EDI/AS2
Microsoft .NET Java / J2EE
IP*Works! SNMP
Microsoft .NET ActiveX / VB Delphi C++ Builder C++ Java J2EE .NET CF
QuickBooks Integrator
E-Payment Integrator
Vital/TSYS Integrator
Microsoft .NET ActiveX / VB ASP Delphi C++ Builder C++ Unix / Linux Mac OS X
Paymentech Integrator
FDMS Integrator
Microsoft .NET ActiveX / VB ASP Delphi C++ Builder C++ Java J2EE .NET CF
USPS Integrator
FedEx Integrator
UPS Integrator
E-Banking Integrator
Microsoft .NET ActiveX / VB ASP Delphi C++ Builder C++ Java J2EE Unix / Linux
PayPal Integrator
Amazon Integrator
Biztalk Adapters
SQL Server SSIS Tasks
Windows Workflow
SharePoint Extensions
3-D Secure MPI
Microsoft .NET ASP Delphi C++ Builder C++ Java / J2EE
"I have used your components for over 4 years.. I wont use any other. I have a simple project using your SSL http component and its great. cuts my work by 1/2"
-- Jason Peixoto
Properties Methods Events Configuration Settings
The RNIFReceiver component implements a RosettaNet server.
NOTE: What follows is a very short description of the component interfaces. For more information, please consult the help files that come with the respective package.
The RNIFReceiver implements server-side receiving of RosettaNet messages, as specified by the RosettaNet community. It can be used to decrypt and verify incoming messages and to generate synchronous receipts and replies if needed. The component is designed to be easily incorporated into an HTTP server.
BASIC OPERATION
When a RosettaNet request comes in, you should first call the ReadRequest method to read in the request. Once this is done, you must parse the headers and the request. You first parse the headers of the HTTP request using the ParseHeaders method. You may then set the appropriate certificates by setting the Certificate to your private key certificate and SignerCert to your trading partner's (signing) certificate.
The next step is to parse the RosettaNet message using ParseRequest. This method decrypts the message if needed. The component then parses all parts of the message. The preamble, delivery, and service headers are all parsed into the PreambleHeaderXML, DeliveryHeaderXML, and the ServiceHeaderXML, respectively. It also parses the actual body of the RosettaNet message, or the PIP, into the ServiceContent. Any attachments that may be in the message are parsed into the attachment array, and may be accessed via the Attachments property.
The component can also be used to handle synchronous responses. In order to complete this task, the receiver must first reset all header properties to values appropriate for a response. This may include changing values such as the MessageSenderId, MessageReceiverId, ActionCode, etc. The ServiceContent should then be set to a response indicating the state of the transaction. A typical response is a simple receipt acknowledgement, which has all qualities of a valid RosettaNet action, but is simply a receipt. Once these properties have been set, the message is ready to be sent using the AckRequest method.
NOTE: the RNIFRECEIVER component can only handle sending synchronous responses. If an asynchronous response is desired, or required by a particular Partner Interface Process (PIP), you should use the RNIFSENDER component.
The following example illustrates how to use the component within a web page.
EXAMPLE
RNIFReceiver.ReadRequest(); RNIFReceiver.Certificate = new Certificate(CertStoreTypes.cstPFXFile, // Store type "\my_server_directory\encrypt.pfx", // File name "my password", // Password "CN=Encrypt"); // Subject RNIFReceiver.SignerCert = new Certificate("\my_server_directory\partnercert.cer"); RNIFReceiver.ParseHeaders(); RNIFReceiver.ParseRequest();
The server can then get the data from the preamble header, delivery header, service header, and the PIP content from their properties: PreambleHeaderXML, DeliveryHeaderXML, ServiceHeaderXML<;, and the ServiceContent, respectively. The message may then be easily processed, as all details of the transaction will be populated into their respective properties.
NOTE: Any attachments are saved by the name in the corresponding Attachments entry, and in the directory specified by the receiver. The directory is specified using the AttachmentOutputPath config property, and must be specified before you read and process the request. For example:
RNIFReceiver.Config("AttachmentOutputPath='\my_server_directory\Attachments'")
NOTE: In the above example, a receipt acknowledgement was not sent.
Additional functionality allows the user to examine details of the client's request, to permit certain types of errors, or to customize the RosettaNet response message. See the property and method list for details.
The following is the full list of the properties of the component with short descriptions. Click on the links for further details.
Method List The following is the full list of the methods of the component with short descriptions. Click on the links for further details. ConfigSets or retrieves a configuration setting. ParseHeadersProcesses the headers, and populates the appropriate properties. ParseRequestParses the MIME message and determines the Message . ReadRequestReads the RNIF request from the given HTTP servlet request. RequestHeaderGets the specified header from the HTTP request. ResetThis property is used to reset all attributes of the Rnifreceiver instance. SendResponseOptional. Acknowledges the incoming request. Event List The following is the full list of the events fired by the component with short descriptions. Click on the links for further details. Configuration Settings The following is a list of configuration settings for the component with short descriptions. Click on the links for further details. AttachmentOutputPathAllows the specification of an output path to which attachments will be written to. MessageDigestMD5The base-64 encoded MD5 hash of the received data. MessageDigestSHA1The base-64 encoded SHA1 hash of the received data. SignatureAlgorithmSignature algorithm to be used in outgoing messages. CodePageThe system code page used for Unicode to Multibyte translations (Windows/COM only).
The following is the full list of the methods of the component with short descriptions. Click on the links for further details.
Event List The following is the full list of the events fired by the component with short descriptions. Click on the links for further details. Configuration Settings The following is a list of configuration settings for the component with short descriptions. Click on the links for further details. AttachmentOutputPathAllows the specification of an output path to which attachments will be written to. MessageDigestMD5The base-64 encoded MD5 hash of the received data. MessageDigestSHA1The base-64 encoded SHA1 hash of the received data. SignatureAlgorithmSignature algorithm to be used in outgoing messages. CodePageThe system code page used for Unicode to Multibyte translations (Windows/COM only).
The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.
Configuration Settings The following is a list of configuration settings for the component with short descriptions. Click on the links for further details. AttachmentOutputPathAllows the specification of an output path to which attachments will be written to. MessageDigestMD5The base-64 encoded MD5 hash of the received data. MessageDigestSHA1The base-64 encoded SHA1 hash of the received data. SignatureAlgorithmSignature algorithm to be used in outgoing messages. CodePageThe system code page used for Unicode to Multibyte translations (Windows/COM only).
The following is a list of configuration settings for the component with short descriptions. Click on the links for further details.