Information/Instructions | |
This is a standard interface for all requests to Hughes via Installation Portal.
*.xsd XML Style Definitions will be provide for each Message
A Standard Status return
URL: For all requests
https://dwayinstalls.hns.com/xml/Msg.jsp?msg=MSG_NAME&user=username&pass=password
OR https://dwayinstalls.hns.com/xml/Msg.jsp?msg=MSG_NAME with Basic Authentication (Available Sept 2019)
Messages:
Here's all the Current Message Names.
UserName:
Same Vantive UserName, can be used, needs to be setup for WebServices (XML Msg). Distributors can contact Hughes through normal channels.
Dealers Contact your Distributor for new Log-In request (Recommend a separate login for AutoProcessing. Ex: abc-autoprocess)
A Successful Manual Login into Installer Portal needs to occur after that,
so we can store you password for WebServices (Non-Vantive).
Each change password/Successful Login after that will resynchronize the password for WebServices.
If password is ReSet, a new Successful Manual Login is required. The Temporary ReSet login will not work with WebServices.
Password:
The Same Vantive Password, setup by a Manual Login after March 15, 2009.
Headers:
I've tested with these Headers.
Content-type: text/xml; charset=UTF8
Example:
Dealer Assignment: msg=
MSG_DEAL_ASSIGN Post to this URL
https://dwayinstalls.hns.com/xml/Msg.jsp?msg=MSG_DEAL_ASSIGN&user=username&pass=password
OR https://dwayinstalls.hns.com/xml/Msg.jsp?msg=MSG_NAME with Basic Authentication (Available Sept 2019)
Header: authorization=Basic dXNlcm5hbWU6cGFzc3dvcmQ= "Basic " + {Base64 username:password} (Note: Msg.jsp doesn't Prompt for Basic Authentication, must privide in Header with Request)
XML contents: Notice: You can usually send more than 1 request at a time.
<?xml version="1.0"?>
<HNS_Input xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://dwayinstalls.hns.com/xml/MSG_DEAL_ASSIGN.xsd">
<SO>
<SO_ID>123456</SO_ID>
<DEAL_ID>789</DEAL_ID>
</SO>
<SO>
<SO_ID>123457</SO_ID>
<DEAL_ID>456</DEAL_ID>
</SO>
<SO>
<SO_ID>123458</SO_ID>
<DEAL_UNASSIGN>true</DEAL_UNASSIGN>
</SO>
</HNS_Input>
Results: MSG_STD_OUTPUT.xsd
Notice: key Attribute contains the <SO_ID>123456</SO_ID> value,
and Message/Error information is in the tags Value.
<?xml version="1.0"?>
<HNS_Output xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://dwayinstalls.hns.com/xml/MSG_STD_OUTPUT.xsd">
<SUCCESS key="123456">Dealer (Un)Assigned New:789 Previous:</SUCCESS>
<ERROR key="123457">NO Assignment Allowed, Service Order is Locked:Locked</ERROR>
<SUCCESS key="123458">Dealer (Un)Assigned New:null Previous:789</SUCCESS>
</HNS_Output>