论坛首页 Java企业应用论坛

自己动手写淘宝开放平台:Rop(将WebService REST进行到底!!)

浏览 99819 次
该帖已经被评为精华帖
作者 正文
   发表时间:2012-03-07  
学习中,先mark,再报名,哈哈哈,不错,喜欢这个东西~~~
0 请登录后投票
   发表时间:2012-03-07  
谢谢了,正在研究这个,刚好可参考
0 请登录后投票
   发表时间:2012-03-07  
你让我情何以堪 写道
我先学习Spring MVC 再研究这个。mark

我也在学这个!
0 请登录后投票
   发表时间:2012-03-07  
正在研究学习中,能够做出类TOP的rest开源框架,真是不错...共勉..
0 请登录后投票
   发表时间:2012-03-07  
LZ的示例项目怎么不做成maven的标准结构呢,这样方便check依赖和打包运行
0 请登录后投票
   发表时间:2012-03-07  
tomleader 写道
LZ的示例项目怎么不做成maven的标准结构呢,这样方便check依赖和打包运行


呵呵,好的,我最近就弄下。maven我原来一直没有用,发现现在的开源都是用maven的,要顺应大势:)
0 请登录后投票
   发表时间:2012-03-07  
貌似跑不起来啊
Exception in thread "main" org.springframework.web.client.RestClientException: Cannot extract response: no Content-Type found
0 请登录后投票
   发表时间:2012-03-07  
godson_2003 写道
貌似跑不起来啊
Exception in thread "main" org.springframework.web.client.RestClientException: Cannot extract response: no Content-Type found


   你把整个异常粘一下。
0 请登录后投票
   发表时间:2012-03-07  
牛X,前几天公司用到TOP的的API,自己粗读了下,感觉的确不错,可惜只是简单的完成了接接。后来公司对外提供API,直接弄了个xfire,如果楼主早发此帖的话,我有福了,虽然现在离职了,但研究下。。。
0 请登录后投票
   发表时间:2012-03-07  
Exception in thread "main" org.springframework.web.client.RestClientException: Cannot extract response: no Content-Type found
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:56)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:352)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:307)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:234)
at UserRestServiceClientTest.main(UserRestServiceClientTest.java:39)



37 form.add("sign", sign);
38 String response = null;
39 response = restTemplate.postForObject("http://localhost:8080/scm",  form, String.class);
System.out.println("response:\n" + response);
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics