
webservice
文章平均质量分 71
chen3531
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CXF框架的restful webservice 环境配置(二) 客户端
package com.client;import java.io.IOException;import java.io.UnsupportedEncodingException;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.Clie原创 2013-03-15 15:47:56 · 656 阅读 · 0 评论 -
CXF框架的restful webservice 环境配置(一) 服务端
1.导入CXF的jar包2.写对外发布的接口package com.service;public interface Service {public String SendMail(String xml);//POST方法参数常规写法public String getMail(@PathParam("appID")String appID){};//GET方法的路径参数要这原创 2013-03-15 15:24:54 · 955 阅读 · 0 评论 -
webservice工具方法
public String postMethodInvoke(String url,String xml) throws Exception{ DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(url); String state = null; tr原创 2013-03-15 15:51:35 · 535 阅读 · 0 评论 -
jersey调用webservice
@PostConstruct private void init() { ClientConfig clientConfig = new DefaultClientConfig(); clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE); client = Cl原创 2013-07-29 12:05:29 · 1072 阅读 · 0 评论 -
ajax和restful接口的传输
var u = new Object(); //对象属性需要与后台对象的属性一致,否则会报400错误u.accountId = $("#username").val();u.pwd = $("#password").val();public Map login(@RequestBody User user) {}参数中使用@RequestBody注解可以直接将前台对象转换为后台原创 2013-07-29 11:16:11 · 2745 阅读 · 0 评论