Ulf, would it throw a 500 error if it had a problem with the SOAP/xml format or the http headers i'm sending to it? Just for kicks, I changed the url to something innocuous that didn't have any service, like
www.yahoo.com, and posted to it...i received a 501 error back, saying it was an unsupported request. That tells me somehow yahoo could decipher the http headers and SOAP/xml enough to know it doesn't run the service...
these are the request headers i'm setting...do you see anything obviously funny with any of this?...and even so, would it cause the server to throw a 500 response back?...
urlconn is the httpurlconnection to the service...
urlconn.setDoOutput (true);
urlconn.setDoInput (true);
urlconn.setUseCaches (false);
urlconn.setRequestProperty("Content-Type", "text/xml; charset=utf-8");
urlconn.setRequestProperty("Content-Length",String.valueOf(xmlcode.length()));
urlconn.setRequestProperty("Authorization", "Basic " + encode(user_name +":"+ user_password));
urlconn.setRequestMethod("POST");
then the hard-coded
SOAP xml, for this connection
test...
String xmlcode="<?xml version=\"1.0\" encoding=\"UTF-8\"?> " +
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">" +
"<soapenv:Body>" +
"<OpenCustomer xmlns=\"\">" +
"<GeneralData xsi:type=\"ns1:ItemInfo\" xmlns:ns1=\"http://www.mystore.com/MyWebService/\">" +
"<OrderDate xsi:type=\"xsd:string\">6/2/2006</OrderDate>" +
"<ReceiptDate xsi:type=\"xsd:string\"></ReceiptDate>" +
...
thank you again.
[ July 19, 2006: Message edited by: Tom Griffith ]