I am working on an application that will access a service using XMLRPC and PHP on the server. I am new to this, so I am having some problems. I need to create xmlrpc messages and send them to the server, and the first thing I tried was using kXMLRPC. However, this only works when calling java on the server ('execute' command in J2ME). The service I am calling on the server is PHP script (accepting a XMLRPC message). I am trying to create the XMLRPC message manually, and then do a http post, but I am not getting anything back. I guess it's possible that the message is getting there and that the server script is executed, and that my program doesn't know what to do with the response.
This is just a test on my local machine, but the same principle applies to what I will be calling later. The server script I am calling in my test works fine from a PHP client in a web browser, so I know that part works.

Here is the relevant code (I think):

String params2= "<methodCall><methodName>function_times2</methodName><params><param><value><int>50</int></value></param></params></methodCall>";
//String url = ""+params2;
String url = ""+params2;
HttpConnection conn = (HttpConnection) Connector.open(url);

conn.setRequestProperty("IF-Modified-Since","20 Jan 2001 16:19:14 GMT");
conn.setRequestProperty("User-Agent","Profile/MIDP-2.0 Confirguration/CLDC-1.0");
conn.setRequestProperty("Content-Language", "Text/XML");
conn.setRequestProperty("Content-Method", "POST");
conn.setRequestProperty("Content-Type", "xml version=1.0 encoding=text/xml");
conn.setRequestProperty("Content-Length", Integer.toString(url.length()));
ostream = conn.openOutputStream();
istream = conn.openDataInputStream();
int ch=0;
int counter=0;
int i=0;
String output="";

while((ch=istream.read()) != -1){

I don't make it inside the while loop, so I assume I am doing something wrong.

Any suggestions??