我有一个请求,当我使用 POSTMAN 和 POSTER 插件点击服务时,它工作正常,但是当我尝试点击负载平衡 url 时,我收到了错误。
海报(插件)中的错误:
邮递员(插件)中的错误:
部分代码:
@Path( "/" )
public class Check {
public ResultSet rs;
@POST
@Produces( MediaType.TEXT_PLAIN )
@Consumes( "application/xml" )
public String validate( String xmlContent ) throws Exception {
String value = "no";
String result = null;
Boolean inputCheck;
Contents unmarshalledValues = unmarshalingContent( xmlContent );
MIME 类型详细信息:
那么,MIME 类型的 xml
http://annevankesteren.nl/2004/08/mime-types
使用 XML 的示例