我是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>
下面的屏幕截图是我尝试使用的端点:
请咨询
谢谢