how to hand special character in xml rpc

Events happening in the community are now at Drupal community events on www.drupal.org.
eimhee's picture

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

Try two

cstachris's picture

Hi,

Try << >.

(that's two << a space then the closing >)

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: