params.addElement(" "); contains special character , when I transfer the data to the drupal server,
the char "<' was replaced with blank string, such

---> p
how not filter the < character when transfer.

package net.sentom.xmlrpc;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Vector;
import org.apache.xmlrpc.XmlRpcClient;
import org.apache.xmlrpc.XmlRpcException;

public class MyXmlRpcClient {
public static void main(String[] args) {
try {
XmlRpcClient xmlrpc = new XmlRpcClient("http://localhost:8080/XMLRPC/MyXmlRpcServer");
Vector params = new Vector();
params.addElement(" ");
String result = (String) xmlrpc.execute("myHandler.sayHello",params);
System.out.println(result);
} catch (MalformedURLException e) {
System.out.println(e.toString());
} catch (XmlRpcException e) {
System.out.println(e.toString());
} catch (IOException e) {
e.printStackTrace();
}
}

Comments

eimhee’s picture

Category: bug » support
marcingy’s picture

Status: Active » Postponed (maintainer needs more info)

Please provide more information re the service you are calling as it looks as if you have written a custom service.

marcingy’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

closing as no follow up.