我一直在寻找这个问题的答案,但我在任何地方都找不到。想知道是否有人可以帮助我。
我有一个这样的 WSDL:
<ws:types>
<xs:schema targetNamespace="http://tempuri.org/" xmlns:ww="http://ww"
elementFormDefault="qualified">
<xs:element name="GenericNode">
<xs:complexType>
<xs:sequence>
<xs:element name="request">
<xs:complexType>
<xs:sequence>
<xs:element name="Message" minOccurs="0" maxOccurs="1"/>
<xs:element name="ServiceID" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</ws:types>
(部分名称因保密原因而更改)
我收到以下 SoapUI 消息:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:GenericNode>
<tem:request>
<!--Optional:-->
<tem:Message>anyType</tem:Message>
<!--Optional:-->
<tem:ServiceID>anyType</tem:ServiceID>
</tem:request>
</tem:GenericNode>
</soapenv:Body>
</soapenv:Envelope>
我的问题是,我不希望元素“Message”和“ServiceID”具有命名空间 tem:。我希望他们有命名空间 ww:。
我怎样才能在不更改其他任何名称空间的情况下做到这一点?
提前致谢