donb
04-21-06, 05:38 PM
I have a vendor who will be sending inventory updates. The code that they send the updates with looks like this.
if (strXMLResponse.length() > 10)
{
httpConnection = new HTTPConnection(new URL (server));
// httpConnection.setDefaultHeaders(headers);
rsp = httpConnection.Post(server, strXMLResponse, headers);
System.out.println("rsp content type = " + rsp.getHeader("Content-Type"));
printout.writeBytes(strXMLResponse);
}
printout.flush ();
I need a suggestion as to how I should recieve the data. I would like to do it with a small miva script that simply recieved the stream and writes to a file but I am not quite clear on how to setup recieving vars.
Any suggestions? I am not a perl guru. I know just enought to create havoc.
Thanks
Donb
if (strXMLResponse.length() > 10)
{
httpConnection = new HTTPConnection(new URL (server));
// httpConnection.setDefaultHeaders(headers);
rsp = httpConnection.Post(server, strXMLResponse, headers);
System.out.println("rsp content type = " + rsp.getHeader("Content-Type"));
printout.writeBytes(strXMLResponse);
}
printout.flush ();
I need a suggestion as to how I should recieve the data. I would like to do it with a small miva script that simply recieved the stream and writes to a file but I am not quite clear on how to setup recieving vars.
Any suggestions? I am not a perl guru. I know just enought to create havoc.
Thanks
Donb