SAAJ0511:无法从给定来源创建信封

时间:2018-10-15 18:39:52

标签: java web-services spring-boot soap payload

我是Spring Boot和Web服务的新手,并且正在尝试创建soap Web服务,我遵循了教程,但仍然遇到以下错误:

SAAJ0511: Unable to create envelope from given source

代码段如下:

多数民众赞成xsd

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://www.binarystorage.com/binary-storage-soap"
        xmlns:tns="http://www.binarystorage.com/binary-storage-soap"
        elementFormDefault="qualified">

    <element name="store-request" type="tns:binaryData"/>
    <element name="store-response" type="tns:idBody"/>
    <element name="retrieve-request" type="tns:idBody"/>
    <element name="retrieve-response" type="tns:binaryData"/>
    <element name="remove-request" type="tns:idBody"/>
    <element name="remove-response"/>
    <complexType name="binaryData">
        <sequence>
            <element name="name" type="string"/>
            <element name="content" type="string"/>
            <element name="content-type" type="string"/>
            <element name="meta" minOccurs="0" maxOccurs="unbounded">
                <complexType>
                    <attribute name="key" type="string"></attribute>
                    <attribute name="value" type="string"></attribute>
                </complexType>
            </element>
        </sequence>
    </complexType>
    <complexType name="idBody">
        <sequence>
            <element name="id" type="string"/>
        </sequence>
    </complexType>
</schema>

下面的屏幕截图是我尝试使用的端点:

thats the endpoint

请咨询

谢谢

0 个答案:

没有答案
相关问题