2014年7月23日

Axis2发布webservice(4)—webservice的异步调用

摘要: 一,发布一个webservice,代码如下 package com.hoo.service;public class AsynchronousService { public String execute() throws InterruptedException{ //让当前线程睡眠5钟,展示异步调用 Thread.sleep(5000)... 阅读全文

posted @ 2014-07-23 21:11 不会熬夜的程序员 阅读(491) 评论(0) 推荐(0)

Axis2发布webservice(4)—利用XML文件同时发布多个webservice和跨多个WebService管理Session

摘要: 我们需要ServiceGroupContext保存跨越多个webservice的session信息;同时需要设置services.xml文件的中service的scope属性为application 一、编写两个webservice: LoginServiceApplication.java代码如下: package com.hoo.service;import org.apache.... 阅读全文

posted @ 2014-07-23 14:40 不会熬夜的程序员 阅读(688) 评论(0) 推荐(0)

Axis2发布webservice(4)—WebService的session管理

摘要: 一、WebService中添加session管理代码,用到了MessageContext类和ServiceContext类。代码如下:package com.hoo.service;import org.apache.axis2.context.MessageContext;import org.a... 阅读全文

posted @ 2014-07-23 14:18 不会熬夜的程序员 阅读(1208) 评论(0) 推荐(0)

导航