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

  • 相关阅读:
    dedecms代码研究五
    dedecms代码研究四
    判断有没有真正点击打印
    SAP中删除假脱机请求
    商品扩地点不成功
    记录一些使用的abap小程序帮助开发
    sap abap 程序 中使用 FTP . <转载>
    SM37 后台调试
    ftp上传下载| 图片上传下载
    ALV调用的几个标准函数 <转自 思微随想>
  • 原文地址:https://www.cnblogs.com/wmz/p/1062184.html
Copyright © 2011-2022 走看看