SAP调用外部WebService.docx
- 文档编号:28454233
- 上传时间:2023-07-13
- 格式:DOCX
- 页数:8
- 大小:407.56KB
SAP调用外部WebService.docx
《SAP调用外部WebService.docx》由会员分享,可在线阅读,更多相关《SAP调用外部WebService.docx(8页珍藏版)》请在冰豆网上搜索。
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. 结果:
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SAP 调用 外部 WebService