![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java.Aixs
desert3
这个作者很懒,什么都没留下…
展开
-
用Axis2开发Webservice
1,相关概念 [list] [*]SOAP:simple object access protocal 简单对象访问协议是一种轻量的、简单的、基于 XML 的协议,它被设计成在 WEB 上交换结构化的和固化的信息。是一种应用协议,和各种传输协议(HTTP,SMTP,MIME)结合使用 [*]Wsdl: Web Services Description Language用来描述Web服务和说明...原创 2010-10-26 14:09:42 · 97 阅读 · 0 评论 -
resin Axis2 报异常信息 property "javax.xml.stream.isCoalescing" not supported
使用axis2开发webservice,部署到tomcat上没有问题,部署到resin上报下边异常。 [code="xml"] [INFO] java.lang.IllegalArgumentException: property javax.xml.stream.isCoalesci ng not supported [11:07:12.390] {main} java.lang....原创 2010-10-27 11:39:25 · 561 阅读 · 0 评论 -
Axis2 客户端调用时报【Transport error: 411 Error: Length Required】
Aixs2 RPC客户端报错 [code="xml"] org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310) [axis2-transpo...原创 2010-10-27 14:23:53 · 315 阅读 · 0 评论 -
pb9调用ws时,调用向导页面找不到Service
发现pb报错误:the data type,'anyType' is not supported 在wsdl文件中查看,发现anyType对象对应的项目是BeansException, 然后查看对应的ws代码,发现是在实现ApplicationContextAware接口时候BeansException加入到代码里面的 去掉BeansException后,发现pb能正常调用了...2010-11-02 09:36:10 · 311 阅读 · 0 评论 -
Axis2发布的WebService中排除不需要公开的public方法
Axis2默认把Service类中所有的public方法都发布成web service的operation(就是对外公布的ws接口) 在services.xml用如下方法可以排除不需要公开的public方法 [code="xml"] test Web Service org....2010-11-03 10:10:05 · 178 阅读 · 0 评论 -
Mime text/xml 和 application/xml 字符集编码(转)
对于Webservice的应用来说,我们通常都是用UTF-8进行网络传输,但也有通过GBK和GB2312传输的情况,但是在我们Webservice的代码实现中,其实是不用关心具体的传输编码的,因为[color=red]根据RFC2376的定义,Webservice的引擎(axis,cxf,jaxws..)会根据文件传输的ContentType及XML 声明部分定义的编码自动将网络传输过来的内容(字...原创 2012-02-21 10:00:07 · 378 阅读 · 0 评论 -
Axis1.4客户端 wsdl2java 使用方法
用Eclipse 和 axis1.4 结合来自动生成JAVA代码非常方便。 1. 下载 axis1.4 相关包,解压后取得其中lib 下的所有JAR包,并导入ECLIPSE工程中。 2. 取得服务端提供的 wsdl 描述文件。 3. 在工程中运行 axis 包中的 wsdl2java : org.apache.axis.wsdl.WSDL2Java 并设置参数 -u F...原创 2012-03-26 16:49:07 · 560 阅读 · 0 评论