SAP调用外部WebService.docx

上传人:b****6 文档编号:16434628 上传时间:2023-07-13 格式:DOCX 页数:8 大小:407.56KB
下载 相关 举报
SAP调用外部WebService.docx_第1页
第1页 / 共8页
SAP调用外部WebService.docx_第2页
第2页 / 共8页
SAP调用外部WebService.docx_第3页
第3页 / 共8页
SAP调用外部WebService.docx_第4页
第4页 / 共8页
SAP调用外部WebService.docx_第5页
第5页 / 共8页
SAP调用外部WebService.docx_第6页
第6页 / 共8页
SAP调用外部WebService.docx_第7页
第7页 / 共8页
SAP调用外部WebService.docx_第8页
第8页 / 共8页
亲,该文档总共8页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

SAP调用外部WebService.docx

《SAP调用外部WebService.docx》由会员分享,可在线阅读,更多相关《SAP调用外部WebService.docx(8页珍藏版)》请在冰点文库上搜索。

SAP调用外部WebService.docx

SAP调用外部WebService

SAP调用外部WebService

SAP调用外部WebService

打开事务码SE80.

prefix名称自己定义,需要Z开头.

选中SOAP方式

创建完成后保存,激活.

进入事务码SOAMANAGER.

SearchBy:

选择ConsumerProxy,Field:

BothNames.

在WebService地址中找到soapAction的值.

operationsoapAction="http:

//tempuri.org/HelloWorld"style="document"/>

保存.

 

代码:

data:

 exc type ref to cx_root.

data:

 msg type string.

start-of-selection.

  data proxy_test type ref to ZWS_QD_3CO_TEST_WEB_SERVICE1SO.

  try.

      if proxy_test is not bound.

        create object proxy_test type ZWS_QD_3CO_TEST_WEB_SERVICE1SO.

      endif.

      data:

 input type ZWS_QD_3HELLO_WORLD_SOAP_IN,

            output type ZWS_QD_3HELLO_WORLD_SOAP_OUT.

      input-AA = sy-uname.

      call method proxy_test->HELLO_WORLD

        exporting

          input  = input

        importing

          output = output.

      WRITE :

 output-HELLO_WORLD_RESULT.

    catch cx_ai_system_fault into exc.

      msg = exc->get_text( ).

      write:

/  msg.

  endtry.

结果:

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 求职职场 > 简历

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2