server-config.wsdd文件说明了你要提供什么接口做web service,同时指明了需要什么样的参数以及返回的数据类型,所以这个文件是必须的。至于你说的test.jws,在Axis中,据我所知,是没必要保留扩展名为jws的java源文件,都编译成class文件,同时保留Axis提供的web.xml文件即可。建议使用JB中的export as a webservice功能来实现web service的发布
解决方案 »
- 初学Hibernate,坎坷重重
- 编程
- 用cookie和session自动登录问题?
- strut2问题求解 OgnlException while setting property 'location' on type 'org.apache.struts2.dispatcher.ServletDispatcherResult'
- 求助:Jftp 上传问题
- tomcat在windows20003sp1上使用80端口的问题
- 请问谁有开源的知识管理系统(knowledgebase)
- hibernate问题:
- 关于activeMQ的问题,求大神指点!!!
- mybatis 报错 大神帮我看看怎么回事
- XML(thanks a lot)
- 请问大家有没有Together的中文说明文档呀?谢谢
[email protected]
用以下方式试是否显示wsdl文件;
http://localhost:8080/axis/services/test?wsdl
java org.apache.axis.client.AdminClient deploy.wsdd
刚才生成的文件中包含文件ploy.wsdd和undeploy.wsdd,分别是用来发布和取消发布的web服务的。等web服务发布成功后,可以通过两种方法来查看发布是否成功:
1)通过axis的测试页面上的“View the list of deployed Web services”
2)使用命令java org.apache.axis.client.AdminClient list。
所有发布成功的web服务列表最终保存在axis/WEB-INF/server-config.wsdd文件中,第一次发布web服务的时候这个文件会被自动创建,AXIS启动的时候也会读取这个文件来加载已经发布的所有的web服务。
- Processing file deploy.wsdd
- Exception:
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultString: (500)No Context configured to process this request
faultActor: null
faultDetail:
null: return code: 500
<html><head><title>Apache Tomcat/4.0.4 - Error report</titl
e><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white;
background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color :
black;background-color : white;} B{color : white;background-color : #0086b2;} HR
{color : #0086b2;} --></STYLE> </head><body><h1>Apach
e Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process this request
</h1><HR size="1" noshade><p><b>type</b>
Status report</p><p><b>message</b> <u>No Context
configured to process this request</u></p><p><b>descript
ion</b> <u>The server encountered an internal error (No Context conf
igured to process this request) that prevented it from fulfilling this request.&
lt;/u></p><HR size="1" noshade></body></html&g
t;(500)No Context configured to process this request
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1296)
at org.apache.axis.client.AdminClient.process(AdminClient.java:319)
at org.apache.axis.client.AdminClient.process(AdminClient.java:298)
at org.apache.axis.client.AdminClient.process(AdminClient.java:305)
at org.apache.axis.client.AdminClient.process(AdminClient.java:256)
at org.apache.axis.client.AdminClient.main(AdminClient.java:341)
以后大家一起讨论吧。
如;封装好的访问oracle数据库的类,在Webservice 里面就不能用?(用了JDBC-ODBC)
讨论之:QQ 8639682