Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/344.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 在Spring-WSDL-XSD映射问题中生成soapweb服务_Spring Boot_Soap - Fatal编程技术网

Spring boot 在Spring-WSDL-XSD映射问题中生成soapweb服务

Spring boot 在Spring-WSDL-XSD映射问题中生成soapweb服务,spring-boot,soap,Spring Boot,Soap,我正在SpringBoot中创建一个Soap Web服务,但是我有一些与wsdl和xsd之间的映射相关的问题 1-在我的wsdl文件中,我有以下结构(只有几行显示问题) 2选项: @Endpoint public class WebServiceEndpoint { private static final String NAMESPACE_URI = "something"; @PayloadRoot(namespace = NAMESPACE_URI,

我正在SpringBoot中创建一个Soap Web服务,但是我有一些与wsdl和xsd之间的映射相关的问题

1-在我的wsdl文件中,我有以下结构(只有几行显示问题)

2选项:

@Endpoint
    public class WebServiceEndpoint {
        private static final String NAMESPACE_URI = "something";
        @PayloadRoot(namespace = NAMESPACE_URI, localPart = "notification_message")
        @ResponsePayload
        public void hello(@RequestPayload NotificationContainer request) {
        }
    }
所有这些选项都会导致以下错误:

No endpoint mapping found for [SaajSoapMessage {hella.xsd}notification_message]
我必须有一个名为notification_的对象消息?如何将通知消息映射到NotificationContainer

非常感谢!:)

@Endpoint
    public class WebServiceEndpoint {
        private static final String NAMESPACE_URI = "something";
        @PayloadRoot(namespace = NAMESPACE_URI, localPart = "NotificationContainer")
        @ResponsePayload
        public NotificationContainer hello(@RequestPayload NotificationContainer request) { 
        }
    }
@Endpoint
    public class WebServiceEndpoint {
        private static final String NAMESPACE_URI = "something";
        @PayloadRoot(namespace = NAMESPACE_URI, localPart = "notification_message")
        @ResponsePayload
        public void hello(@RequestPayload NotificationContainer request) {
        }
    }
No endpoint mapping found for [SaajSoapMessage {hella.xsd}notification_message]