欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

如何在SAPCRM里創(chuàng)建和消費(fèi)Webservice

Created by Wang, Jerry, last modified on Dec 19, 2014

The following steps demonstrates how to expose a function module as a web service in CRM.

成都創(chuàng)新互聯(lián)公司專(zhuān)注于鋼城網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供鋼城營(yíng)銷(xiāo)型網(wǎng)站建設(shè),鋼城網(wǎng)站制作、鋼城網(wǎng)頁(yè)設(shè)計(jì)、鋼城網(wǎng)站官網(wǎng)定制、重慶小程序開(kāi)發(fā)公司服務(wù),打造鋼城網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供鋼城網(wǎng)站排名全網(wǎng)營(yíng)銷(xiāo)落地服務(wù)。

  1. create a FM to return product description by given product ID.

Just use the following source code:

SELECT SINGLE A~short_text INTO rv_text FROM COMM_PRSHTEXT  AS A
INNER JOIN comm_product AS B ON B~product_id = iv_prod_id AND B~product_guid = A~product_guid.

Make sure the FM is marked as "Remote enabled".

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

  1. start the web service creation wizard:

    如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

Just follow the wizard to finish creation. Choose the appropriate authentication approach according to your use case.

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

  1. Once creation is finished, you would find your service definition as below:

    如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

click tab WSDL, write down your WSDL link:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

  1. tcode SOAMANAGER, click Web Service Configuration

    如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

you can find your service definition created just now:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

click the hyperlink and create a new service:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

Make sure you use SSL.

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

Otherwise, you will meet with the following error code in the runtime. This is simply because web service via HTTP protocal is set as forbidden in Suite landscape and all such communication will be redirected, as set up in SMICM.

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

click Finish button.

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

Now your web service is ready for consumer. click this icon:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

write down this link for later usage:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

How to consume web service in CRM

  1. tcode SE80, create a new service consumer:

    如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

  1. Choose external WSDL:

    如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

choose the url got from "how to create web service in CRM", step3

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

activate your consumer proxy and write down the ABAP class name.

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

  1. go back to SOAMANAGER, find the consumer proxy created in step2:

    如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

create a new logical point:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

  1. Make sure you specify URL got from web service creation last step. If you just use the URL got from SE80 in tab "WSDL", you will meet with below error.

    如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

choose HTTPS:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

  1. consume the web service in ABAP report:

data: lr_proxy TYPE REF TO CO_ZPRODUCTDESCRIPTION4,
input TYPE ZGET_PROD_DESCRIPTION,
output TYPE ZGET_PROD_DESCRIPTION_RESPONSE.
input-iv_prod_id = 'ARNO_TEST004'.
CREATE OBJECT lr_proxy
EXPORTING
LOGICAL_PORT_NAME = 'ZLP_JERRY1'.
CALL METHOD lr_proxy->ZGET_PROD_DESCRIPTION
EXPORTING
input      = input
IMPORTING
output     = output.

Now we get the web service execution result:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

How to consume public web service in CRM

The steps to consume the public web service is almost exactly the same as consuming SAP internal web service.

Use the public web service  http://www.webservicex.com/FinanceService.asmx?WSDL as example.
First it is necessary to verify whether this web service is working correctly for the time being - test it in soapUI:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

Just test the consumer proxy class in class builder:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

Specify request input just the same as in SoapUI:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

Execution result is the same as what we get in SoapUI:

如何在SAP CRM里創(chuàng)建和消費(fèi)Web service

要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":

新聞標(biāo)題:如何在SAPCRM里創(chuàng)建和消費(fèi)Webservice
網(wǎng)頁(yè)URL:http://chinadenli.net/article46/gidehg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供面包屑導(dǎo)航外貿(mào)建站、自適應(yīng)網(wǎng)站服務(wù)器托管、定制網(wǎng)站標(biāo)簽優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設(shè)