开发者问题收集
我正在开展WSO2 ESB项目,对于如何正确处理故障情况我有些疑惑。例如,我有这个 API:<?xml version="1.0" encoding="UTF-8"?><api context="/weather/crop_calendar" name="crop_calendar" xmlns="http://ws.apache.org/ns/synapse"><resource methods
我在 Netbeans 上使用默认的 JEE7 REST 应用程序。我尝试调用的 REST 方法是:@GET@Path("{id}")@Produces({"application/xml", "application/json"})public Customer find(@PathParam("id") Integer id) {return super.find(id);}我可以成功获取所有
有人能帮我如何在 Webservice 中获取 JSON 字符串吗?我正在向我的 /api/register 发送 JSON,如下所示:{"name":"MyName","surname":"MySurename","email":"[email protected]","street":"MyStreet","number":"3","zip":"12345","city":"myCity","