SAP ABAP实用技巧介绍系列之 获得webservice的schema node

Created by Jerry Wang, last modified on Jul 23, 2014

webservice WSDL URL:
https://:44324/sap/bc/srt/wsdl/flv_10002A111AD1/bndg_url/sap/bc/srt/rfc/sap/zjerry_date/700/ztest/ztest?sap-client=700

在浏览器里打开WSDL得到operation name:
SAP ABAP实用技巧介绍系列之 获得webservice的schema node_第1张图片
使用如下utility code得到WSDL包含的schema node:

DATA: lv_wsdl_own_url TYPE string value 'https://ldcix3d.wdf.sap.corp:44324/sap/bc/srt/wsdl/flv_10002A111AD1/bndg_url/sap/bc/srt/rfc/sap/zjerry_date/700/ztest/ztest?sap-client=700',
      lv_wsdl_operation TYPE string value 'Z_JENS_GET_DATA',
      lr_schema_list TYPE REF TO data.

CALL METHOD cl_crm_oi_util=>get_schema
  EXPORTING
       iv_wsname         = space
       iv_wsdl_url       = lv_wsdl_own_url
       iv_wsdl_operation = lv_wsdl_operation
  RECEIVING
       er_schema_list    = lr_schema_list.

返回结果:
clipboard2
SAP ABAP实用技巧介绍系列之 获得webservice的schema node_第2张图片

你可能感兴趣的:(ABAP)