我使用cxf+spring实现webservice功能,直连都没有问题,但是存在一些客户端,是通过代理上网的,这样的客户端就无法连接到服务端,我在配置文件中加上代理不过没用,也许是我加错了,请大家给个正确的配置,谢谢!
  第一种配置:
          <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
         <property name="serviceClass" value="com.test.webservice.IService"/>
         <property name="properties">
      <props>
                 <prop  key="http.proxySet">true</prop>
                 <prop  key="http.proxyHost">192.168.2.1</prop>
                  <prop  key="http.proxyPort">808</prop>
              </props>
     </property>
        <property name="address" value="http://ip/webservice/CommunicationService"/>
     </bean>
  
   <bean id="communicationService" class="com.test.webservice.IService" 
           factory-bean="clientFactory" factory-method="create"/>
 第二中配置:          <jaxws:client 
id="communicationService" 
address="http://IP/cxf/webservice/CommunicationService" 
serviceClass="com.test.webservice.IService">
</jaxws:client>