Java 不能';t暴露SpringBoot SOAP端点,表示找不到evaluateIMSRule的端点映射

Java 不能';t暴露SpringBoot SOAP端点,表示找不到evaluateIMSRule的端点映射,java,web-services,spring-boot,soap,endpoint,Java,Web Services,Spring Boot,Soap,Endpoint,这是我的webserviceConfig类: @EnableWs @Configuration public class WebServiceConfig extends WsConfigurerAdapter { @Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServl

这是我的webserviceConfig类:

@EnableWs
@Configuration
public class WebServiceConfig extends WsConfigurerAdapter {

    @Bean
    public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
        MessageDispatcherServlet servlet = new MessageDispatcherServlet();
        servlet.setApplicationContext(applicationContext);
        servlet.setTransformWsdlLocations(true);
        return new ServletRegistrationBean(servlet, "src/main/resources/wsdl/*");
    }

    @Bean(name = "evaluateIMSRule")
    public DefaultWsdl11Definition getRuleEngineSchema(XsdSchema ruleEngineSchema) {
        DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition();
        wsdl11Definition.setPortTypeName("port");
        wsdl11Definition.setLocationUri("src/main/resources/wsdl/evaluateIMSRule/");
        wsdl11Definition.setTargetNamespace("services/mobility");
        wsdl11Definition.setSchema(ruleEngineSchema);
        return wsdl11Definition;
    }

    @Bean(name = "itemNOSService")
    public DefaultWsdl11Definition getItemNOSSchema(XsdSchema itemNOSSchema) {
        DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition();
        wsdl11Definition.setPortTypeName("port");
        wsdl11Definition.setLocationUri("src/main/resources/wsdl/itemNotOnShelf/");
        wsdl11Definition.setTargetNamespace("services/mobility");
        wsdl11Definition.setSchema(itemNOSSchema);
        return wsdl11Definition;
    }

    @Bean
    public XsdSchema ruleEngineSchema() {
        return new SimpleXsdSchema(new ClassPathResource("src/main/resources/wsdl/evaluateIMSRule/evaluateIMSRule.xsd"));
    }

    @Bean
    public XsdSchema itemNOSSchema() {
        return new SimpleXsdSchema(new ClassPathResource("src/main/resources/wsdl/itemNotOnShelf/itemNotOnShelf.xsd"));
    }
}
这是我的控制器

@EnableAsync
@Endpoint
public class ServiceController {

    @PayloadRoot(namespace = "services/mobility", localPart = "evaluateIMSRule")
    @ResponsePayload
    public String getRuleEngineResponse(@RequestPayload EvaluateIMSRuleRequest request) {

       ....
....
        return response;
    }


    @PayloadRoot(namespace = "services/mobility", localPart = "itemNOSService")
    @ResponsePayload()
    public CreateItemNOSRecordResponse getItemNOSServiceResponse(@RequestPayload CreateItemNOSRecordRequest request) {
       ....
....
        return nosRecordResponse;
    }
}
当我在本地启动SpringBoot应用程序并点击端点“EvaluateImsRule”时,
它表示未找到[SaajSoapMessage{*/datatypes/evaluateIMSRule/1.0/}evaluateIMSRule]的端点映射。需要帮助。

您使用
http://www.xmlns/*/datatypes/evaluateIMSRule/1.0/}evaluateIMSRule
但您使用
服务/移动
命名空间公开端点。它们必须匹配。您发送带有
http://www.xmlns/*/datatypes/evaluateIMSRule/1.0/}evaluateIMSRule
但您使用
服务/移动
命名空间公开端点。他们必须匹配。