Topic: axis下发布web服务出错,请大侠帮忙

  Print this page

1.axis下发布web服务出错,请大侠帮忙 Copy to clipboard
Posted by: yijunsun
Posted on: 2004-08-17 20:25

小弟写了个不能再简单的java:

package mypack;

public class HelloService {

public String sayHello(String username) {

return "Hello:"+username;
}
}

并且编译成功。

在axis下定制发布

<!-- Use this file to deploy some handlers/chains and services -->
<!-- Two ways to do this: -->
<!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
<!-- after the axis server is running -->
<!-- or -->
<!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
<!-- from the same directory that the Axis engine runs -->

<deployment name="test" xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

<service name="urn:helloservice" provider="java:RPC">
<parameter name="className" value="mypack.HelloService" />
<parameter name="allowedMethods" value="sayHello" />
</service>

</deployment>

classpath 设置的好像没问题

然后 java org.apache.axis.client.AdminClient deploy.wsdd
出现问题:
Exception:: java.net.ConnectException: Connection refused :connect

请大侠指点

2.Re:axis下发布web服务出错,请大侠帮忙 [Re: yijunsun] Copy to clipboard
Posted by: sssmaan
Posted on: 2004-09-06 20:50

可能服务器没有启动???


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923