JaxWsPortProxyFactoryBean 类在 Spring Boot 3.0.5 版本中不起作用

问题描述 投票:0回答:1

我正在将 Spring Boot 项目从 2.5.6 迁移到 3.0.5。另外,我已将 java 版本从 java 8 迁移到 17。该项目包含 wsdl Web 服务。之后,下面的 bean 类就不起作用了。

public JaxWsPortProxyFactoryBean proxyClass() throws MalformedURLException {
  JaxWsPortProxyFactoryBean ret = new JaxWsPortProxyFactoryBean();
  ret.setWsdlDocumentUrl(new URL(crmDelegatorURL));
  ret.setServiceInterface(CRMDelegator.class);
  ret.setEndpointAddress(crmDelegatorURL);
  ret.setNamespaceUri("url");
  ret.setServiceName("testService");
  ret.setPortName("port");
  return ret;

}

以下包不包含 spring 框架。

import org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean;

对于上述 bean 类,我可以使用哪些替代方案?

spring-boot spring-mvc wsdl2java
1个回答
0
投票

该课程已在此票中删除。我认为您应该能够使用 Spring Web Services 实现一些东西。我面临类似的问题,如果您已经找到解决方案,请告诉我。

© www.soinside.com 2019 - 2024. All rights reserved.