我已经在WEB项目里建立了一个WEBSERVICES,测试没有问题。我打算在这个项目上生成另外一个WEBSERVICES,但是在SERVER.XML中已经存在,如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xfire.codehaus.org/config/1.0"> <service>
<name>filialeInterface</name>
<namespace>http://www.szcomtop.com/1.1</namespace>
<serviceClass>
com.comtop.iep.webservice.client.ReceiveDataService
</serviceClass>
<implementationClass>
com.comtop.iep.webservice.client.ReceiveDataServiceImp
</implementationClass>
<style>wrapped</style>
<use>literal</use>
<scope>application</scope>
</service>
<service>
<name>nwweb</name>
<serviceClass>
com.comtop.iep.webservice.client.SendDataService
</serviceClass>
<implementationClass>
com.comtop.iep.webservice.client.SendDataServiceImp
</implementationClass>
<style>wrapped</style>
<use>literal</use>
<scope>application</scope>
</service></beans>
但是在测试连接的时候还是只有第一个输入参数的地方,nwweb这个webservices不能用,请高手帮我解释一下。

解决方案 »

  1.   

    这个文件不需要你手工修改的,应该是自动生成的。我记得xfire是需要将接口和实现类指定后,就可以生成对应的webservice的。你的接口中是否指明了这2个方法了?
      

  2.   

    自带的axis中不就有两个service么
    我看具体的方法是 你创建多个wsdl文件, 然后分别发布到同一个项目中去不就可以了么