Java 暴露SPRING-WS WSDL时出现问题,can';我无法通过url访问它

Java 暴露SPRING-WS WSDL时出现问题,can';我无法通过url访问它,java,spring,jakarta-ee,wsdl,spring-ws,Java,Spring,Jakarta Ee,Wsdl,Spring Ws,我试图使用SpringWS生成并公开带有WSDL的SOAP服务,但我面临一个问题,启动服务器时没有错误,但我无法使用他的url访问WSDL 我在Tomcat上部署了一个WAR文件 这是我定义servlet的web.xml <servlet> <description>Servlet pour l'exposition du webservices SOAP de purge</description> <servlet-na

我试图使用SpringWS生成并公开带有WSDL的SOAP服务,但我面临一个问题,启动服务器时没有错误,但我无法使用他的url访问WSDL

我在Tomcat上部署了一个WAR文件

这是我定义servlet的web.xml

   <servlet>
      <description>Servlet pour l'exposition du webservices SOAP de purge</description>
      <servlet-name>spring-ws</servlet-name>
      <servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
      <init-param>
         <param-name>transformWsdlLocations</param-name>
         <param-value>true</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
      <servlet-name>spring-ws</servlet-name>
      <url-pattern>/ws/*</url-pattern>
   </servlet-mapping>

Servlet Pull l'Expositions du webservices SOAP反清除
春季天气预报
org.springframework.ws.transport.http.MessageDispatcherServlet
转换wsdllocations
真的
1.
春季天气预报
/ws/*
这就是我的spring ws-servlet.xml中的内容

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns = "http://www.springframework.org/schema/beans"
   xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
   xmlns:context = "http://www.springframework.org/schema/context"
   xmlns:sws = "http://www.springframework.org/schema/web-services"
   xsi:schemaLocation = "http://www.springframework.org/schema/beans

   http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
   http://www.springframework.org/schema/web-services
   http://www.springframework.org/schema/web-services/web-services-2.0.xsd
   http://www.springframework.org/schema/context 
   http://www.springframework.org/schema/context/spring-context-3.0.xsd">

   <context:component-scan base-package = "com.alm.*"/>
   <sws:annotation-driven/>

   <context:property-placeholder location="classpath:purge.properties" />

    <sws:dynamic-wsdl id = "purgev1"
      portTypeName = "purgev1Port"
      locationUri = "/ws/soap/purge/v1/" 
      <sws:xsd location = "classpath:xsd/purgev1.xsd"/>
   </sws:dynamic-wsdl>
</beans>


您必须在spring-ws-servlet.xml中提及完整的locationURI值,如/mamba/ws/soap/purge/v1/purgev1.wsdl 通常,locationURI参数将通过在主机名和端口前加前缀来公开wsdl


http://localhost:8080/mamba/ws/soap/purge/v1/purgev1.wsdl

它期待着一个post@LevKuznetsov我不能通过经典的http get访问wsdl吗?
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns = "http://www.springframework.org/schema/beans"
   xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
   xmlns:context = "http://www.springframework.org/schema/context"
   xmlns:sws = "http://www.springframework.org/schema/web-services"
   xsi:schemaLocation = "http://www.springframework.org/schema/beans

   http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
   http://www.springframework.org/schema/web-services
   http://www.springframework.org/schema/web-services/web-services-2.0.xsd
   http://www.springframework.org/schema/context 
   http://www.springframework.org/schema/context/spring-context-3.0.xsd">

   <context:component-scan base-package = "com.alm.*"/>
   <sws:annotation-driven/>

   <context:property-placeholder location="classpath:purge.properties" />

    <sws:dynamic-wsdl id = "purgev1"
      portTypeName = "purgev1Port"
      locationUri = "/ws/soap/purge/v1/" 
      <sws:xsd location = "classpath:xsd/purgev1.xsd"/>
   </sws:dynamic-wsdl>
</beans>