1,axis本身可以servlet的形式集成到任何支持servlet的Web容器(web.xml)
2,当然需要让Web容器找到org.apache.axis.transport.http.AxisServlet
将axis所需库和资源配置到classpath里面
或者将axis的lib目录拷贝到WEB-INFO下
3,然后让axis接管WebService的url(web.xml)
<
servlet-name
>
AxisServlet
</
servlet-name
>
<
url-pattern
>
*.jws
</
url-pattern
>
<
servlet-name
>
AxisServlet
</
servlet-name
>
<
url-pattern
>
/services/*
</
url-pattern
>
4,剩下的只需要告诉axis每个WebService对应着哪个java类即可(server-config.wsdd(与web.xml同目录))
-
<
service name
="
OrganizationWebService
"
type
=""
provider
="
java:RPC
"
style
="rpc
"
use
="encoded
">
<
parameter
name
="
className
"
value
="
nucleus.organization.webservice.OrganizationWebService
" />
<
parameter
name
="
allowedMethods
"
value
="
isValid,personOfID,personsOfRole,queryCategories,queryPersons
" />
<
namespace
>http://webservice.organization.nucleus
</
namespace
>
<
typeMapping
encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/
"
qname
="ns1:CategoryInfo
"
languageSpecificType
="java:nucleus.organization.webservice.CategoryInfo
"
serializer
="org.apache.axis.encoding.ser.BeanSerializerFactory
"
deserializer
="org.apache.axis.encoding.ser.BeanDeserializerFactory
"
name
="CategoryInfo
"
xmlns:ns1
="
http://webservice.organization.nucleus
" />
</
service
>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。