If I create a Purchase_Create in C# and send to QuickFile, it fails with a rather odd message:
The method called is not listed in this application manifest.
However if I copy the same XML into the sandbox, it works fine. Obviously something must be different with this request, as all of my other requests (e.g. Client_Search
, Client_InsertContacts
, Invoice_Create
, etc) all work fine.
How I send the request:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://quickfile.co.uk/WebServices/API/invoices.ashx");
request.Method = "POST";
request.ContentType = "application/xml;charset=UTF-8";
request.Accept = "application/xml;charset=UTF-8";
using (System.IO.Stream stream = request.GetRequestStream())
{
using (System.IO.StreamWriter writer = new System.IO.StreamWriter(stream))
{
writer.WriteLine(xmlDocument);
}
}
Task<WebResponse> responseTask = Task.Factory
.FromAsync<WebResponse>(request.BeginGetResponse,
request.EndGetResponse,
null);
Any hints on what I am doing wrong? Thanks!