zoukankan      html  css  js  c++  java
  • How can I share types when generate WebSevice proxies using local paths

     As we knowed, We can sharetypes using command line: wsdl /sharetypes <URL>, but now I have local wsdl files (together with xsd files) and I want to generate the service proxy classes using wsdl <Path>.

    Such as:

     wsdl /out:D:\WebserviceProxies\AdvancedQuery.cs /n:CEWorkstation.WebService D:/wsdl/advancedquery/AdvancedQuery.wsdl D:/wsdl/RISEntity.xsd D:/wsdl/advancedquery/GetCustomizedAdvanceQuery.xsd D:/wsdl/advancedquery/Search.xsd D:/wsdl/advancedquery/UpdateCustomizedAdvanceQuery.xsd

    and

     /out:D:\WebserviceProxies\AuditService.cs /n:CEWorkstation.WebService D:\wsdl\auditservice\AuditService.wsdl D:\wsdl\RISEntity.xsd D:\wsdl\auditservice\AuditOperationEvent.xsd D:\wsdl\auditservice\AuditSecurityEvent.xsd D:\wsdl\auditservice\GetAuditOperationEventPropByOperationEventID.xsd D:\wsdl\auditservice\GetAuditOperationEventsByRequestedProcedureID.xsd

    Unfortunately, the command: wsdl <path> can't use with the parameter /sharetypes. After I generated the proxies and build them, I got "the already contains a definition" error. Because the common entities defined in  RISEntity.xsd are used in all of the service and the entities are generated repeatedly.

    Somebody can give me some advices to share types using wsdl <path>?

    Thanks a million!
    wsdl files

  • 相关阅读:
    2021年2月22
    2021年2月21
    2021年2月20
    2021年2月19
    动态添加titie属性
    根据内容改变文字颜色!
    自定义弹出层!
    来回切换图标以及文字
    20180831xlVBA_WorksheetsCosolidate
    20180830xlVBA_合并计算
  • 原文地址:https://www.cnblogs.com/wmz/p/1062184.html
Copyright © 2011-2022 走看看