import  org.apache.axis.client.Call
import  org.apache.axis.client.Service
import  org.apache.axis.message.SOAPEnvelope
import  org.apache.axis.utils.Options我想引用上面的几个包,但是在eclipse中找不到,请问该怎么引用apache的jar包?
还是有别的什么问题谢谢了哈

解决方案 »

  1.   

    到www.apache.org去下载axis相关.jar
      

  2.   

    到 http://ws.apache.org/,下载axis
      

  3.   

    1)下载。2)
    1.在Eclipse的“Package Explorer”View里,右键单击你的项目,点击“Properties”。
    2.在出现的“properties for ProjectName”窗口左侧,点击Java Build Path。选择右侧的“Libraries”
    3.点击“Add External JARs”,添加jar
      

  4.   

    打不开?不是吧
    http://ws.apache.org/axis/
      

  5.   

    根据上面那些包
    有个这样的xml文件
    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <ns:kaiinsyokai xmlns:ns="urn:cpq_tns_kaiinsyokai">xml中的具体数据及其内容
    <trepcd_in xsi:type=\"xsd:unsignedShort\">0</trepcd_in></ns:kaiinsyokai>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    这个xml文件的头尾是固定的写法么?
    trepcd_in 这个节点中的xsi是什么意思啊?还有就是他的type 都有什么类型a
    第一次接触这样的问题,大家帮忙a谢谢先了。
      

  6.   

    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <ns:kaiinsyokai xmlns:ns="urn:cpq_tns_kaiinsyokai">
    这个xml文件的头尾是固定的写法么?axis 是基于soap通信的,soap服务与soap客户之间采用符合soap规范的xml数据进行通信,它的形式就是你上面给出的形式。
    SOAP-ENV:Envelope 是根元素。包含<SOAP-ENV:Body 》和<SOAP-ENV:Head>子元素。再 <SOAP-ENV:Body 》中包含具体的客户请求和服务响应数据。
    trepcd_in 这个节点中的xsi是什么意思啊?还有就是他的type 都有什么类型a
    xsi是xml name space(也就是xmlns)的一个前缀。
      

  7.   

    to ttaallkk1(小昊) 
    那  ns:kaiinsyokai xmlns:ns="urn:cpq_tns_kaiinsyokai这行的ns代表什么意思啊
    对阿,哪位朋友有这方面的教程啊?
    谢谢
      

  8.   

    给你个例子。
    xml文档1:
    <table>
    <tr><td> aa</td></tr>
    </table>
    xml文档2:
    <table>
    <name>bb</name>
    </table>
    两个xml在一起,<table>会冲突吧。
    所以这样写:引入一个前缀名
    xml 1:
    <h:table>
    <h:tr><h:td>aa</h:tr></h:td>
    </h:table>
    xml 2:
    <f:table>
    <f:name>bb</f:name>
    <f:table>
    这样元素名就没冲突了吧如果使用名字空间就这样写
    xml1:
    <h:table xmlns="一个namespace">
    <h:tr><h:td>aa</h:tr></h:td>
    </h:table>
    xml2类似。一般的语法就是这样的:xmlns:namespace_prefix="namespace"
    这里的namespace就是你的urn:cpq_tns_kaiinsyokai
    namespace一般为uri(url和urn都属于uri)
      

  9.   

    上面的是xml的东西,可以找些xml的书看。一般都有介绍。如果你想知道apache axis的资料。
    它的doc里写得很详细,你下个axis,里面就有很多。:)
    而且写得很清脆明白。^_^
      

  10.   

    to http://community.csdn.net/Expert/topic/4816/4816115.xml?temp=.7434351 
    这个帖子也帮忙看一下a
    分一定,现在soap这一头雾水a
    郁闷