Today I found out that a simple %inside string parameter passed from client to server results in Bad Request 400.
Since I have basic knowledge with web services, I don't know if this is normal behavior. Am I missing something (is it my responsibility to avoid strings?), Or should I look somewhere else?
Client Code:
@WebMethod(operationName = "push", action = "urn:Push")
public boolean push(String msg);
Server Code:
@XmlRootElement(name = "push", namespace = "http://ws.something.com/")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "push", namespace = "http://ws.something.com/", propOrder = {"arg0"})
public class Push {
@XmlElement(name = "arg0")
private java.lang.String arg0;
public java.lang.String getArg0() {
return this.arg0;
}
public void setArg0(java.lang.String newArg0) {
this.arg0 = newArg0;
}
}
Note:
This client / server pair works fine locally on our development host server, even with an %inside line parameter. However, this results Bad Request 400in a different host server. Thus, this may be related to the server environment. If so, I would like to get a hint of what might cause this.