王洪伟的专栏

http://blog.teamlet.org 本站搜索关键字:王洪伟+teamlet

王洪伟ID:teamlet
155720次访问,排名450好友1人,关注者46
10年软件开发设计经验,专注J2EE领域的技术架构和应用.
teamlet的文章
原创 95 篇
翻译 9 篇
转载 67 篇
评论 135 篇
teamlet的公告

本站采用创作共用版权协议, 要求署名、非商业用途和相同方式共享. 转载本站内容必须也遵循“署名-非商业用途-相同方式共享”的创作共用协议.

关注SOA技术的发展,跟进SCA技术的理论和实现,努力实践。愿与同行者一起分享,互相勉励,共同进步。
最近评论
SNOW:还请问一下,我按照你的说明步骤操作,
出现org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider 未定义
getElement() 未定义,
请问这是什么原因呢?
陈森虎:常看王老师的东西,自已不会学,只有顶一下了
lixinso:可以使用代理吧,ultralsurf,很好用
sse:想请教您gforge的安装过程中,按照您 的安装配置过程一步步进行,可是今天来了重启后http.conf 里有个模块加载不上, LoadModule php5_module modules/libphp5.so
LoadModule dav_svn_module modules/mod_dav_svn.so请问好何解决。邮箱是cqupt_wang@hotm……
xaser:GOOGLE一下“Vidalia Bundle”,安装后就能正常访问SF了,也能正常下载文
文章分类
收藏
    相册
    资源联接
    Cruise Control
    Open CSA
    OSOA
    SOA Tools Project
    theserverside
    中国Java开发网
    满江红
    知识共享@中国大陆
    左邻右舍
    donews的blog
    msn的blog
    Tuscany中文社区
    我用Subversion
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 用Eclipse3.2+MyEclipse5.5M1+axis2_1.1.1+tomcat5.5 开发Web Services(续)收藏

    新一篇: Tuscany是什么?为什么要用Tuscany命名SCA规范的实现? | 旧一篇: 回答:细说SCA V1.0规范(2) --Composite与架构 网友xiexie的问题

           今年的3月5号,我在博客中发表了一篇<<用Eclipse3.2+MyEclipse5.5M1+axis2_1.1.1+tomcat5.5 开发Web Services>>,受到很多网友的关注.陆续有网友发表不同的意见.很多网友不能很好的实现文中说描述的最终结果,更有的网友认为这篇文章是假的,根本不可能实现.

          今天我把代码找出来,在jdk 5.0 + Tomcat 5.0.28 + eclipse-rcp-europa-fall2-win32 环境 run了一下,完全没有问题! 下图是运行结果的截图.

     需要注意的是,在运行JUnit Test的时候,Tomcat一定要处于启动的状态!!!

    如果不能得到正确的结果,请验证环境设置是否一致,是否遗漏了某些步骤.

     

    发表于 @ 2007年11月29日 21:05:00|评论(loading...)|编辑

    新一篇: Tuscany是什么?为什么要用Tuscany命名SCA规范的实现? | 旧一篇: 回答:细说SCA V1.0规范(2) --Composite与架构 网友xiexie的问题

    评论

    #isle_t 发表于2008-04-28 08:47:04  IP: 218.64.17.*
    楼主,非常感谢!我是楼主的步骤一步一步成功的实现了,一开始也有错误,主要plugin-in有版本上有点问题,后来下了几次,终于成功了!
    想问楼主一些axis2的问题,我在一个wsdl文件中部署两个服务,可是第二个服务不能访问,报这样一个错误:
    org.apache.axis.AxisFault:java.lang.RuntimeException:Unexpected subelement sql 其中sql是其中一个服务的element,另外一个服务的可以访问的!下面的wsdl文件的原码:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/ProcSql/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ProcSql" targetNamespace="http://www.example.org/ProcSql/">
    <wsdl:types>
    <xsd:schema targetNamespace="http://www.example.org/ProcSql/">
    <xsd:element name="ExecSql">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="authData" type="xsd:string" />
    <xsd:element name="aliasName" type="xsd:string"></xsd:element>
    <xsd:element name="sql" type="xsd:string"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="ExecSqlResponse">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="out" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="ExecProc">
    <xsd:complexType>
    <xsd:sequence>

    <xsd:e
    #isle_t 发表于2008-04-28 08:51:33  IP: 218.64.17.*
    好像评论不有那么多的内容哦
    第一部分:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/ProcSql/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ProcSql" targetNamespace="http://www.example.org/ProcSql/">
    <wsdl:types>
    <xsd:schema targetNamespace="http://www.example.org/ProcSql/">
    <xsd:element name="ExecSql">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="authData" type="xsd:string" />
    <xsd:element name="aliasName" type="xsd:string"></xsd:element>
    <xsd:element name="sql" type="xsd:string"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="ExecSqlResponse">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="out" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="ExecProc">
    <xsd:complexType>
    <xsd:sequence>

    <xsd:element name="authData" type="xsd:string"></xsd:element>
    <xsd:element name="aliasName"
    type="xsd:string">
    </xsd:element>
    <xsd:elem
    #isle_t 发表于2008-04-28 08:54:02  IP: 218.64.17.*
    第二部分:
    ent name="pName"
    type="xsd:string">
    </xsd:element>
    <xsd:element name="params"
    type="xsd:string">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="ExecProcResponse">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="out" type="xsd:string"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="ExecSqlRequest">
    <wsdl:part element="tns:ExecSql" name="ExecSqlRequest"/>
    </wsdl:message>
    <wsdl:message name="ExecSqlResponse">
    <wsdl:part element="tns:ExecSqlResponse" name="ExecSqlResponse"/>
    </wsdl:message>
    <wsdl:message name="ExecProcRequest">
    <wsdl:part name="ExecProcRequest" element="tns:ExecProc"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="ExecProcResponse">
    <wsdl:part name="ExecProcResponse" element="tns:ExecProcResponse"></wsdl:part>
    </wsdl:message>
    <wsdl:portType name="ProcSql">
    <wsdl:operation
    #isle_t 发表于2008-04-28 08:54:56  IP: 218.64.17.*
    第三部分:
    name="ExecSql">
    <wsdl:input message="tns:ExecSqlRequest"/>
    <wsdl:output message="tns:ExecSqlResponse"/>
    </wsdl:operation>
    <wsdl:operation name="ExecProc">
    <wsdl:input message="tns:ExecProcRequest"></wsdl:input>
    <wsdl:output message="tns:ExecProcResponse"></wsdl:output>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="ProcSqlSOAP" type="tns:ProcSql">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="ExecSql">
    <soap:operation soapAction="http://www.example.org/ProcSql/NewOperation"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ExecProc">
    <soap:operation soapAction="http://www.example.org/ProcSql/NewOperation"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="ProcSql">
    <wsdl:port binding="tns:ProcSqlSOAP" name="ProcSqlSOAP">
    <soap:address location="http://www.example.org/"/>
    </wsdl:port
    #isle_t 发表于2008-04-28 08:56:21  IP: 218.64.17.*
    最后一点点:
    >
    </wsdl:service>
    </wsdl:definitions>


    楼主看了我写的wsdl,应该可以知道我的意图,麻烦楼主了哦!
    #SNOW 发表于2008-07-24 00:51:55  IP: 221.122.70.*
    还请问一下,我按照你的说明步骤操作,
    出现org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider 未定义
    getElement() 未定义,
    请问这是什么原因呢?
    发表评论  


    登录
    Csdn Blog version 3.1a
    Copyright © teamlet