开发者

JAX-RPC Web Services WSDL2Java

开发者 https://www.devze.com 2023-04-11 16:46 出处:网络
I\'m having a problem with JAX-RPC wsdl2java technology. My wsdl2java ant task: <wscompile fork=\"true\"

I'm having a problem with JAX-RPC wsdl2java technology. My wsdl2java ant task:

    <wscompile
            fork="true"
            server="true"
            client="false"
            base="${build.main.generated.jaxrpc.dir}"
            config="${src.main.config.dir}/jaxrpc-service-config.xml"
            keep="true"
            features="">
        <classpath refid="jaxrpc.classpath"/>
    </wscompile>

When I run this task wscompile does not include JAXRPCServlet in web.xml.

<servlet-class>com.sun.xml.rpc.server.http.JAXRPCServlet</servlet-class>

and when deploy web service the endpoint is not available. JAX-RPC config file looks as follows:

<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">

<wsdl location="src/main/webapp/WEB-INF/wsdl-jaxrp开发者_如何学Pythonc/MyWsdl.wsdl" packageName="my.package.name">
    <namespaceMappingRegistry>
        <!-- Name space mappings -->
    </namespaceMappingRegistry>
</wsdl>

Maybe I'm missing something or my ant task is bad?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号