[英]Editing the WSDL generated by a web service
I have a basic web service that parses XML sent from a client. 我有一个基本的Web服务,解析从客户端发送的XML。 The web service works fine but I was asked to remove elements from the WSDL file generated by the web service. Web服务工作正常但我被要求从Web服务生成的WSDL文件中删除元素。 Is it even possible to do this? 甚至可以这样做吗?
Here are the first lines from the WSDL file: 以下是WSDL文件的第一行:
<wsdl:definitions targetNamespace="localhost">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="localhost">
<s:element name="HTTPWebService">
<s:complexType/>
</s:element>
<s:element name="HTTPWebServiceResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HTTPWebServiceResult">
<s:complexType mixed="true">
<s:sequence>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="HTTPWebServiceSoapIn">
<wsdl:part name="parameters" element="tns:HTTPWebService"/>
</wsdl:message>
Is it possible to remove the lines <s:element name="HTTPWebServiceResponse">
and it's contents, and <s:element name="HTTPWebServiceResponse">
? 是否可以删除行<s:element name="HTTPWebServiceResponse">
及其内容, <s:element name="HTTPWebServiceResponse">
?
WSDL is a system generated xml file and editing its content may cause unexpected behavior and may not be load during introspecting. WSDL是系统生成的xml文件,编辑其内容可能会导致意外行为,并且在内省期间可能无法加载。 You cannot edit those lines without understanding what functionality these elements do. 如果不了解这些元素的功能,则无法编辑这些行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.