apache-wink

    1热度

    2回答

    尝试使用POST方法执行宁静的Web服务。这里是我的界面的相关部分: @Path("/customers") public interface CustomerResource { @POST @Consumes(MediaType.APPLICATION_XML) public Response createCustomer(InputStream is); ..... }

    3热度

    3回答

    我正在尝试设置一个玩具应用程序(可能有一天会转向一个真实的应用程序)。我遇到了眨眼和杰克逊的问题。我有两个应用程序:一个在码头上运行wink-server,似乎正在提供一些JSON数据;一个在jetty上运行wink-client并且收到JSON数据就好了。问题在于自动将JSON数据反序列化回Java bean。 下面是我在眨眼客户机操作使用的代码: RestClient client = new

    0热度

    1回答

    使用Jettison提供程序。 public Set getClasses() { Set s = new HashSet(); s.add(DatabaseResource.class); return s; } public Set<Object> getSingletons() { Set s = new HashSet();

    0热度

    1回答

    我通过HTTP接收JSON请愿书。当从Internet Explorer 8解析未来失败例外: InPart inPart = mp.next(); MyClass myClass = inPart.getBody(MyClass.class, null); com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((