Hi all,
cxf-servlet.xml from wsdl_first sample:    <jaxws:endpoint        
id="hello_world"        implementor="demo.hw.server.GreeterImpl"        
wsdlLocation="WEB-INF/wsdl/hello_world.wsdl"        address="/hello_world">     
           <jaxws:features>       <bean 
class="org.apache.cxf.feature.LoggingFeature"/>                
</jaxws:features>    </jaxws:endpoint>The implementor is 
demo.hw.server.GreeterImpl.
If the implementor is a proxy, how to config it?The following is how we achieve 
this via java code.
        HelloWorld implementor = //new HelloWorldImpl();            
(HelloWorld)java.lang.reflect.Proxy.newProxyInstance(                
Thread.currentThread().getContextClassLoader(),                new 
Class[]{HelloWorld.class},                new 
java.lang.reflect.InvocationHandler() {                    private 
HelloWorldImpl hwi = new HelloWorldImpl();                    public Object 
invoke(Object proxy, Method method, Object[] args)                        
throws Throwable {                        return method.invoke(hwi, args);      
              }                });        String address = 
"http://localhost:9001/helloWorld";;        Endpoint.publish(address, 
implementor);
 
I want to publish the service to Tomcat. Alternatively, how to publish a 
service to Tomcat via JAX-WS APIs instead of XML configuration?
 
Thanks!
 
-tong
_________________________________________________________________
用手机MSN聊天写邮件看空间,无限沟通,分享精彩!
http://mobile.msn.com.cn/

Reply via email to