ITeye博客

webservices

共 6 篇文章

Axis2中文教程-DOC

Axis2中文 教程 包括 以多种方式编写和发布WebService、JAX-RPC、JAX-WS、复杂类型传输、WebService会话管理、Axis2模块等

2010-07-29 09:54 · webservices · WebService

java-xmlrpc 解决中文传值乱码问题

实在无奈发现他提供了一个Base64的类,我便只好将所有的中文字符在Client端用 Base64编码,然后request到Server上,然后在Server端在用Base64解码,哈哈~~~问题也能解决!不过不知道还有没别的更好的办法了? /** * 字符串Base64编码后返回 * @param str * @return */ public static String strToBase64(String str){ byte[] bytes = org.apache.commons.codec.binary.Base64.encodeBase64(str.getBytes()); r…

2010-07-29 09:38 · webservices · Java · Apache

Apache xml-rpc入门 sevlet服务及启动服务器线程

由于最近做的一个项目需要,使用了apache xml-rpc,顺便整理一下使用的方法。 xml-rpc是一套允许运行在不同操作系统、不同环境的程序实现基于internet过程调用的规范和一系列的实现。这种远程过程调用使用http作为传输协议,xml作为传送信息的编码格式。xml-rpc的定义尽可能的保持了简单,但同时能够传送、处理、返回复杂的数据结构。 关于xml-rpc更详细的信息,请参阅http://www.xmlrpc.com。 1,客户程序 Apache xml-rpc提供两种客户类: org.apache.xmlrpc.XmlRpcClient:使用java.net.URLConn…

2010-07-28 17:14 · webservices · Java · Apache · .net · XML · Servlet

RPC 远程过程调用-非webservices

服务器端 public class Server { public static void main(String[] args) throws IOException { // XML解析器 XmlRpc.setDriver(SAXParser.class); // 监听端口 WebServer server = new WebServer(8888); // 业务处理类 server.addHandler("hello", new ServerHandler()); // 启动 server.start(); System.out.println("服务器已经启动:127.0.0.1:8…

2010-07-28 16:19 · webservices · XML

SOAP 获取 天气预报

package com.caituo.webservices; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.net.URL; import java.net.URLConnection; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; imp…

2010-07-28 15:30 · webservices · WebService · OS · .net · XML · SOAP

axis2 读取天气

package com.wether.test; import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMFactory; import org.apache.axiom.om.OMNamespace; import org.apache.axiom.soap.SOAP11Constants; import org.apache.axis2.Constants; import org.apache.axis2.address…

2010-07-28 10:57 · webservices · HTML · Apache · WebService · Blog · SOAP