简体   繁体   English

编辑Web服务生成的WSDL

[英]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.

相关问题 WCF服务生成的WSDL - WCF Service Generated WSDL 如何在Web服务中使用WSDL生成的代理类? - How to use proxy class generated by WSDL in web service? 从WSDL生成的服务返回不同的WSDL - Service Generated from WSDL Returns Different WSDL WSDL.exe生成的Web服务代理代码与“更新Web引用” - 我应该关心吗? - Web Service Proxy Code Generated by WSDL.exe Versus “Update Web Reference” - Should I Care? 在为ASP.NET Web服务生成的WSDL中,在类型定义中控制“ minOccurs”,“ maxOccurs”和“ use”属性? - Controlling the “minOccurs”, “maxOccurs” and “use” attributes in a type definition in the WSDL generated for an ASP.NET Web Service? 将ColdFusion生成的WSDL Web服务从RPC编码更改为document-literal会产生什么影响? - What are the repercussions of changing a ColdFusion-generated WSDL web service from RPC-encoded to document-literal? 如何使用以下参数访问Web服务以及基于wsdl生成的客户端代理 - How to access a web service with the following parameters and client proxy generated based on a wsdl ASMX Web服务的自定义WSDL - Custom WSDL for an ASMX Web Service 如何使用WSDL Web服务 - How to consume WSDL web service 在 Javascript 中使用 web 服务 (WSDL) - Using a web service (WSDL) in Javascript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM