Please see the attached file: "SendExample.asp" for an example of how you can send files using classic ASP.



Similar documents
DTD Tutorial. About the tutorial. Tutorial

Collections MAX Screen Pop Web Service

NETMESSENGER API EXAMPLES

Human Translation Server

Last Week. XML (extensible Markup Language) HTML Deficiencies. XML Advantages. Syntax of XML DHTML. Applets. Modifying DOM Event bubbling

XEP-0043: Jabber Database Access

Quiz! Database Indexes. Index. Quiz! Disc and main memory. Quiz! How costly is this operation (naive solution)?

<Namespaces> Core XML Technologies. Why Namespaces? Namespaces - based on unique prefixes. Namespaces. </Person>

Introduction to XML. Data Integration. Structure in Data Representation. Yanlei Diao UMass Amherst Nov 15, 2007

DocuSign for SharePoint

e-filing Secure Web Service User Manual

TXODDS Running Ball Feed US Sports Edition. User Guide

Documentation to use the Elia Infeed web services

Project Management (PM) Cell

Example for Using the PrestaShop Web Service : CRUD

1. Introduction to CardPay

Department Service Integration with e-pramaan

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 6 Professional Graduate Diploma in IT WEB ENGINEERING

INSTALLATION GUIDE VERSION

Semistructured data and XML. Institutt for Informatikk INF Ahmet Soylu

Programming for the Netregistry E-commerce Gateway

Configuration Guide - OneDesk to SalesForce Connector

SEGPAY SUITE MERCHANT SETUP CONFIGURATION REPORTS

Connecting Custom Services to the YAWL Engine. Beta 7 Release

Pre-authentication XXE vulnerability in the Services Drupal module

XML: extensible Markup Language. Anabel Fraga

Windows XP Exchange Client Installation Instructions

T320 E-business technologies: foundations and practice

Instant Chime for IBM Sametime Installation Guide for Apache Tomcat and Microsoft SQL

HireDesk API V1.0 Developer s Guide

Djigzo S/MIME setup guide

Exercises: DTD Basi di da/ 2

Cisco Jabber for Windows 10.5 Advanced Features Guide

EditAble CRM Grid. For Microsoft Dynamics CRM. How To Guide. Trial Configuration: Opportunity View EditAble CRM Grid Scenario

LabVIEW Internet Toolkit User Guide

White Paper. Creation of Online Help for Fabasoft Folio. Fabasoft Folio 2015 Update Rollup 2

Distributor Control Center Private Label/Channel Administrators

An Newsletter Using ASP Smart Mailer and Advanced HTML Editor

Portals and Hosted Files

Computer Networking LAB 2 HTTP

VIRTUAL LABORATORY: MULTI-STYLE CODE EDITOR

Structured vs. unstructured data. Semistructured data, XML, DTDs. Motivation for self-describing data

WEBINAR Implementation and Advanced Google Tag Manager

HELP DESK MANUAL INSTALLATION GUIDE

ClickDimensions Quick Start Guide For Microsoft Dynamics CRM /1/2011 ClickDimensions

Oracle Forms Services Secure Web.Show_Document() calls to Oracle Reports Server 6i

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

Content Management System

ACCREDITATION COUNCIL FOR PHARMACY EDUCATION. CPE Monitor. Technical Specifications

Digital Signage with Apps

Adworkz Posting Specifications Auto Ping & Post

HTTP - METHODS. Same as GET, but transfers the status line and header section only.

Insurance claims through ClaimConnect (Dentxchange.com) using your Data Team Program.

Overview: FedPayments Reporter Interface to Online Banking Cash Management Systems

XML Processing and Web Services. Chapter 17

TXAPI IN-RUNNING FEED TENNIS EDITION

Contents. 2 Alfresco API Version 1.0

Adworkz Posting Specifications New Car Ping & Post

Retrieving Live Stock Quotes from the Internet

vcommander will use SSL and session-based authentication to secure REST web services.

Query JD Edwards EnterpriseOne Customer Credit using Oracle BPEL Process Manager

Troubleshooting / FAQ

Office Fax

Department Service Integration with e-pramaan

WebCite Technical Background and Best Practices Guide

Authentication and Single Sign On

Web Service Integration

Net 2. NetApp Electronic Library. User Guide for Net 2 Client Version 6.0a

Installing The SysAidTM Server Locally

Multimedia Applications. Mono-media Document Example: Hypertext. Multimedia Documents

Administrator s Manual

Creating a Classroom Web Page Using Google Sites. Max Brandenberger. August 2 or August 8, 2012

i2b2 Cell Messaging Project Management (PM) Cell

Quick Reference Guide. Online Courier: FTP. Signing On. Using FTP Pickup. To Access Online Courier.

CyberSource Business Center

Standard Recommended Practice extensible Markup Language (XML) for the Interchange of Document Images and Related Metadata

Secure XML API Integration Guide - Periodic and Triggered add in

Deployment Guide. VMware: Enabling vcenter Dynamic Provisioning with the AX Series

Software Development Kit (SDK)

Reseller Quick Start Guide 1. Domain & Name Servers...2. Payment Gateways Dedicated Servers Setup Your Landing Page/Website...

ithenticate User Manual

Oracle Forms Services Secure Web.Show_Document() calls to Oracle Reports

Remote Control 5.4 Setup Guide

Messaging Dashboard Quick Reference Guide

ASP Tutorial. Application Handling Part I: 3/15/02

MXSAVE XMLRPC Web Service Guide. Last Revision: 6/14/2012

Address Information. USPS Web Tools Application Programming Interface User s Guide. Document Version 4.0 (2/01/2015)

USA epay Gateway Commonly Asked Questions

How to Register for Training

Setting Up a Dreamweaver Site Definition for OIT s Web Hosting Server

How to consume a Domino Web Services from Visual Studio under Security

IMAP and SMTP Setup in Clients

USER GUIDE. Snow Inventory Client for Unix Version Release date Document date

10CS73:Web Programming

Xtreeme Search Engine Studio Help Xtreeme

Installing and Sending with DocuSign for NetSuite v2.2

Transcription:

NVMS, Inc Data Exchange Specifications Version 1.5.1010 Client: Client Here Client ID: Client Num This document should explain the setup of the B2B data exchange using the transfer of data using an HTTP request with XML data technology. Please follow the following examples to set up your xml file and to plan your WebService setup. I've included a vbs file that you can use to validate your test xml document by just dragging your file onto the program file. I've also included a sample DTD that you can use to test validate your XML files. Usage: There are many different ways to send xml data using an HTTP request. I've used classic ASP in my example, but you can use.net or any technology that can send an XML file using an HTTP request. Following are the URL's for Production and Test modes. Sending Order Information: Production: URI = "http://exchange.nvms.com/send.asp" Test: URI = "http://exchange.nvms.com/sendtest.asp" Please see the attached file: "SendExample.asp" for an example of how you can send files using classic ASP. Retrieving Order Information: Production: URI = "http://exchange.nvms.com/get.asp" Test: URI = "http://exchange.nvms.com/gettest.asp" By submitting your reference # (We call it "FileNumber") in an XML file you can retrieve completed order information that is URL Encoded and attached documents (images) that are encoded using Base64. Order Status: Production: URI = "http://exchange.nvms.com/status.asp" Test: URI = "http://exchange.nvms.com/statustest.asp" By submitting your reference # (We call it "FileNumber") in an XML file you can retrieve order status information. If you have any questions or problems or would like to register to send us batch orders using our WebService, please contact me at: scott@nvms.com. Version 1.5 - Updated: 10/10/2005 Page 1 of 5 2005 NVMS, Inc. All Rights Reserved.

Sending Order Data Field Definitions/Explanation Field/Attribute Field Type (Size) Required Notes Format Ex: XML Tag username int Yes Same as client ID "10" security password varchar(50) Yes Given to you at time of setup "password" security ClientID int Yes *See Client Section for correct ID "73" details, service UserID int Yes *See Client Specific Users for user ID "23" details FileNumber varchar(50) Yes Your unique file number. "any text or num" details PropOwner varchar(50) Yes Business name or Property name. "new business" details PropAddress varchar(50) Yes Business or property address. "123 Main St" details PropCity varchar(50) Yes Business or property city. "FreeTown" details PropState varchar(50) Yes Business or property state. "VA" details PropZip varchar(50) Yes Business or property zip. "21220" details PropDesc varchar(100) No Optional business description. "Building" details Used Only For Orders Pertaining to Mobil Homes details mobyear varchar(10) No Optional mobile home year built. "1980" details mobmodel varchar(50) No Optional mobile home model. "RED ONE" details mobserial varchar(50) No Optional mobile home serial number. "283983AB" details moblength varchar(5) No Optional mobile home length "40 ft" details mobwidth varchar(5) No Optional mobile home width. "70 ft" details AccContact varchar(50) No Business contact name. "Bill Coctosin" details AccMobile varchar(50) No Business contact mobile phone number. "7035551212" details AccFax varchar(50) No Business contact fax number. "7035551234" details AccHome varchar(50) No Business contact home phone number. "7034582321" details AccWork varchar(50) No Business contact work phone number. "7035551243" details AccEmail varchar(50) No Business contact email. dude@coolsite.com details ClientDBA varchar(50) No You can use this field as the dba name or the agent name/sales person name. "BankCard Systems" or "John Doe" details Notes varchar(1000) No Optional order notes. "Notes Here" details ServiceID int Yes *See Client Specific Services for service ID "6" service pid int Yes Same as parent order id attribute "2" service Client Specific Services - Client Here ServiceID Service Description You will receive these details once your company is signed up. Client Specific Users - Client Here UserID Name Email You will receive these details once your company is signed up. XML Example <?xml version="1.0"?> <!DOCTYPE root SYSTEM "OrderExchange.dtd"> <security username="44" password="test"></security> <order id="1"> <details ClientID="44" UserID="554" FileNumber="12138326" PropOwner="Ted Nugent" PropAddress="134 Wilcoxen St" PropCity="Manassas" PropState="VA" PropZip="20111" ClientDBA="John Doe" Notes="These are some test notes here."/> <service pid="1" clientid="44" serviceid="6"/> Version 1.5 - Updated: 10/10/2005 Page 2 of 5 2005 NVMS, Inc. All Rights Reserved.

</order> <order id="2"> </order> <order id="3"> </order> <details ClientID="44" UserID="554" FileNumber="8378326" PropOwner="Miles Davis" PropAddress="134 Wilcoxen St" PropCity="Fairfax" PropState="VA" PropZip="22103" ClientDBA="Phil McCrakin" Notes="These are some test notes here."/> <service pid="2" clientid="44" serviceid="6"/> <details ClientID="44" UserID="554" FileNumber="2173226" PropOwner="Bill Coctosin" PropAddress="134 Wilcoxen St" PropCity="McLean" PropState="VA" PropZip="22102" ClientDBA="dba: Bankcard Services" Notes="This is a new order with some notes here."/> <service pid="3" clientid="44" serviceid="6"/> XML Data Field Explanation: 1.) All XML files sent to NVMS, Inc. should include the DOCTYPE tag referencing the OrderExchange.dtd or you file will fail validation. 2.) The order id attribute should be a unique value for each order sent in the batch. 3.) You can attach multiple services using the <service> tag. The "pid" attribute must match the parent order id for all services under the parent order. All attributes must be included in the service tag. DTD Example <!ELEMENT root (security,order+)> <!ELEMENT security (#PCDATA)> <!ATTLIST security username CDATA #REQUIRED> <!ATTLIST security password CDATA #REQUIRED> <!ELEMENT order (details,service+)> <!ATTLIST order id CDATA #REQUIRED> <!ELEMENT details (#PCDATA)> <!ATTLIST details ClientID CDATA #REQUIRED> <!ATTLIST details UserID CDATA #REQUIRED> <!ATTLIST details FileNumber CDATA #REQUIRED> <!ATTLIST details PropOwner CDATA #REQUIRED> <!ATTLIST details PropAddress CDATA #REQUIRED> <!ATTLIST details PropCity CDATA #REQUIRED> <!ATTLIST details PropState CDATA #REQUIRED> <!ATTLIST details PropZip CDATA #REQUIRED> <!ATTLIST details PropDesc CDATA #IMPLIED> <!ATTLIST details mobyear CDATA #IMPLIED> <!ATTLIST details mobmodel CDATA #IMPLIED> <!ATTLIST details mobserial CDATA #IMPLIED> <!ATTLIST details moblength CDATA #IMPLIED> <!ATTLIST details mobwidth CDATA #IMPLIED> <!ATTLIST details AccContact CDATA #IMPLIED> <!ATTLIST details AccMobile CDATA #IMPLIED> <!ATTLIST details AccFax CDATA #IMPLIED> <!ATTLIST details AccHome CDATA #IMPLIED> <!ATTLIST details AccWork CDATA #IMPLIED> <!ATTLIST details AccEmail CDATA #IMPLIED> <!ATTLIST details ClientDBA CDATA #IMPLIED> <!ATTLIST details Notes CDATA #IMPLIED> <!ELEMENT service (#PCDATA)> <!ATTLIST service pid CDATA #REQUIRED> <!ATTLIST service clientid CDATA #REQUIRED> <!ATTLIST service serviceid CDATA #REQUIRED> Version 1.5 - Updated: 10/10/2005 Page 3 of 5 2005 NVMS, Inc. All Rights Reserved.

Client Transfer Example '************************ HTTP Request Example for DataExchange Response **************** Dim xmlhttp, url, xmlfile Dim xmldoc, oxmlsend Set oxmlsend = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") Set oxmlget = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") url = "http://exchange.nvms.com/sendtest.asp" xmlfile = "http://yourserver/webfolder/testnvms.xml" Response.ContentType = "text/html" 'Get File oxmlget.open "GET", xmlfile, false oxmlget.send() xmldoc = oxmlget.responsetext 'Send File oxmlsend.open "POST", url, false oxmlsend.send(xmldoc) If err.number <> 0 Then Response.Write err.description Else Response.Write oxmlsend.responsetext End If Retrieving Order Data XML Example <?xml version="1.0" encoding="utf-8"?> <security username="user" password="password"></security> <order ClientID="124" FileNumber="FILE1"></order> <order ClientID="124" FileNumber="FILE2"></order> <order ClientID="124" FileNumber="FILE3"></order> Submit your XML file to us in this format and receive order documents that can be saved in your own document management system. You can batch as many order tags as you like in this XML request, but remember each file will be +/- 1.5 MB - This depends on the number of reports and images included in each report. Return XML Schema: <report reportid="2" FileNumber="12345" servicename="merchant Site Inspection" charge="45" invoicedate="4/5/2005" report="urlencoded Report"> <attachments reportid="2" imageid="1" extension="jpg" image="base64 Encoded Binary"/> <attachments reportid="2" imageid="2" extension="jpg" image="base64 Encoded Binary"/> </report> The XML schema returned is like the example above. The report data is sent to you in a URL Encoded format so you'll have to decode this to before reading it. The report is just an HTML table. The attachments are encoded using Base64 so you'll have to decode these as well using some sort of Base64 decode function. Let me know if you need help with either Please look in the exchange.zip file for the file "testnvmsget.xml" for an example of the XML data returned. You also need to watch for errors in the response file. If there are errors, an "<error>" tag will be returned with corresponding text. <error text="no attachments found for this report..." /> Version 1.5 - Updated: 10/10/2005 Page 4 of 5 2005 NVMS, Inc. All Rights Reserved.

Order Status XML Example (request) <?xml version="1.0" encoding="utf-8"?> <security username="test" password="password"/> <status ClientID="44"> <order file="2318653223"/> <order file="curves"/> <order file="8149468922"/> <order file="518564050123702"/> </status> Submit your XML file to us in this format and receive order status for each file number passed. You can use this info from your system to send us this request to tell which order are complete. If complete you may then run the "Retrieve" function to pull down the data of the full report. Return XML Schema: <?xml version="1.0" encoding="utf-8"?> <order filenum="2318653223" status="delivered" EntryDate="4/12/2004 12:47:00 PM" PropOwner="GINGER CREEK GIFT BASKET" InvoiceDate="4/21/2004 6:25:00 PM" StatusBool="True" userid="263" /> <order filenum="8149468922" status="delivered" EntryDate="4/12/2004 12:48:00 PM" PropOwner="SERVELLO GALLERY OF ART" InvoiceDate="4/19/2004 5:09:00 PM" StatusBool="True" userid="263" /> <order filenum="518564050123702" status="delivered" EntryDate="3/10/2004 5:55:00 PM" PropOwner="FIT IN THIRTY" InvoiceDate="3/16/2004 6:19:00 PM" StatusBool="True" userid="263" /> Version 1.5 - Updated: 10/10/2005 Page 5 of 5 2005 NVMS, Inc. All Rights Reserved.