【发布时间】:2020-10-16 07:49:19
【问题描述】:
假设我有以下 xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="abcd" elementFormDefault="qualified" xmlns:ebppif1="abcd">
<xs:element name="Test">
<xs:complexType>
<xs:sequence>
<xs:element name="someValue" type="xs:long"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
我跟随 this tutorial 创建了 SOAP Web 服务,它运行良好。
但问题是命名空间被缩短为“abc”(在 SoapIU 上)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:abc="abcd">
<soapenv:Header/>
<soapenv:Body>
<abc:Test>
<abc:someValue>123</abc:someValue>
</abc:Test>
</soapenv:Body>
</soapenv:Envelope>
如何禁用或更改命名空间长度缩短以实现请求中的完整命名空间?
【问题讨论】:
标签: web-services soap xsd wsdl soapui