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 ((