2011-07-05 3 views

답변

0

내가 생각할 클래스의 사용이 무엇인지 알려 주시기 바랍니다 만든 클래스가 있었다 서비스의 클라이언트 측 (프록시) 인스턴스를 만드는 데 사용할 수있는 'factory' 예를 들어 (''는 서비스 이름 어디) :

ExampleService locator = new ExampleService(); 
locator.addPort(ExampleService.Example, SOAPBinding.SOAP11HTTP_BINDING 
    , "http://myserver:8080/myapp/services/example"); 
// now get the instance 
Example example = locator.getExample(); 

CXF 사용하면 같은 JaxWsProxyFactoryBean 같은 유틸리티를 사용하여 <Service Name>Service 클래스를 무시할 수 있지만

. 예 :

JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); 
factory.setServiceClass(Example.class); 
factory.setAddress("http://myserver:8080/myapp/services/example"); 
factory.setUsername("user"); 
factory.setPassword("password"); 
Example example = (Example) factory.create(); 
+1

이 질문을 여러 달 전에 보았습니다. – kevinjansz

+0

답해 주셔서 감사합니다. – tamilnad

관련 문제