SAGE ID and password in order to test your implementation. If you do not yet have the service activated
on your account, you can use our test account in order to test your implementation. Please note that the
test account will not return all of the real product and supplier information – since it is purely for testing.
However, it will return something for all of the fields for each query so that you can fully test your
implementation before subscribing to the service.
The test account Acct ID is 9000, Login ID is TestXMLDSUser, and the password is abc123.
public string SendCategoryXmlRequest()
{
string xmlString = GetCategoryXML();
string requestUrl = ConfigurationSettings.AppSettings["SageUrl"].ToString().Trim();
WebClient wc = new WebClient();
string response = wc.UploadString(requestUrl, "POST", xmlString);
return response;
}
//get the xml from the file and put into a string
private string GetCategoryXML()
{
StringBuilder sbXML = new StringBuilder();
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
sbXML.Append("
return sbXML.ToString().Trim();
}
No comments:
Post a Comment