我想使用SOAP编写Web服务,其中请求/响应应该是json格式而不是xml格式。
我尝试使用" @BindingType(JSONBindingID.JSON_BINDING)
"使用reference并最终导致错误Exception in thread "main" javax.xml.ws.WebServiceException: Wrong binding ID: https://jax-ws-commons.dev.java.net/json/
任何人都可以为我提供除上述参考之外的简单(SOAP-JSON)示例。
先谢谢。