我希望发布的wsdl文件可以包含http:operation,可以通过post方法调用。
但是目前发布的wsdl文件是这样的,只能通过soap方式调用
使用的是springboot,apache cxf包,发布的部分是这样的
@Bean
public Endpoint endpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, service);
endpoint.publish("/service");
return endpoint;
}
service部分的代码是这样:
//@WebMethod(operationName = "queryInfo", action = "queryInfo")
//@WebResult(name = "String")
@Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@Path("/queryInfo")
@POST
public String queryInfo(@PathParam(value = "input") String request) {
...
}
求助!