zoukankan      html  css  js  c++  java
  • C#调用SAPWebService

               其实和调用其它WebService 没有很大不同  只是不了解SAP的人 可能不太明白 SAP接口中的相关参数

        //调用接口 , 创建对象           

    ServiceReference1.Z_IF_MM_VENDOR_SYNCClient model  =new   ServiceReference1.Z_IF_MM_VENDOR_SYNCClient();
          

    //定义接口所需参数        

    ServiceReference1.ZstReturn[] list = new ServiceReference1.ZstReturn[] { };         

      ServiceReference1.ZstVendorList02 []lists = new ServiceReference1.ZstVendorList02[] { };

    //对象点方法 , 若该函数有返回值则根据返回类型接收     

    //因SAP 中的Tables 使用的是结构,且为可传可不传所以 在C#中是使用ref(内容为可传可不传)来进行传递

    string  str=  model.ZIfMmVendorSync("","",ref list,ref lists);
             

  • 相关阅读:
    SpringBoot整合jsp
    SpringBoot常用application.properties配置
    SpringBoot入门
    vue cli创建vue项目
    vue 指令
    vue hello
    pytest doc
    atom
    java csvutil
    Django uuidfield 实现自动生成唯一列,并设置为主键
  • 原文地址:https://www.cnblogs.com/-lxl/p/4844479.html
Copyright © 2011-2022 走看看