BASISI系统中如何配置web service
在不同的客戶端,需要對(duì)該客戶端進(jìn)行配置才能運(yùn)行Web?Service
1.?配置服務(wù)器
使之能解析Xml文件(這個(gè)只需要配置一次,以后就不需要配置了),
T-code:?SICF
分別激活下面幾個(gè)路徑的文件(如圖:黑體部分是需要激活的,如沒有完全打開,說明下層所有的都需要激活)
1.?Default_host?->?sap?->public?->?bc
2.?Default_host?->?sap?->public?->?bsp
Default_host?->?sap?->public?->?icman
Default_host?->?sap?->public?->?myssocntl
3.?Default_host?->?sap?->?bc?->?contentserver
Default_host?->?sap?->?bc?->?error?->?webgui
Default_host?->?sap?->?bc?->?srt?->?wsdl?->?wsil
Default_host?->?sap?->?bc?->?webdynpro
4.?default_host?->?sap?->?bw?->?xml?->?soap
2.?配置該Web?Service
T-code:?SOAMANAGER
2.1?Path:?SOAMANAGER?->?Business?Administrator?->?Web?Service?Adimistration
2.2?搜索需要配置的Web?Service,
2.3?選中目標(biāo)Web?Service,?點(diǎn)擊Apply?Selection
2.4?在出現(xiàn)的屏幕中選擇?configurations?進(jìn)行創(chuàng)建Service?和?Endpoint.
Details?of?Service?Definition:?ZTEST_BAPI_UPDATE_EE_INFO_WS
2.5?配置產(chǎn)生的Web?Service
在Transport?Guarantee?Type中?選擇No?Transport?Guarantee
在HTTP?Authentication?勾選?User?ID/Password,
其他的保持默認(rèn)即可,設(shè)置完畢,點(diǎn)擊Save按鈕,保存設(shè)置。
2.6?在屏幕中選擇Over?View?選項(xiàng),?查看Web?Service?的URL
Details?of?Service?Definition:?ZTEST_BAPI_UPDATE_EE_INFO_WS
2.7?點(diǎn)擊Open?WSDL?document?for?selected?binding,?取得Web?Service?的URL
http://centsdv2.hk.crystal.com:8001/sap/bc/srt/wsdl/bndg_DEA8DFAD516C4EF1A146001CC45FC0A4/wsdl11/allinone/ws_policy/document?sap-client=400
2.8?因?yàn)槲覀冃枰谕獠空{(diào)用到此Web?Service,?所以我們需要把URL中的ws_policy修改standard,?得到真正的Web?Service?地址為:
http://centsdv2.hk.crystal.com:8001/sap/bc/srt/wsdl/bndg_DEA8DFAD516C4EF1A146001CC45FC0A4/wsdl11/allinone/standard?/document?sap-client=400
3.?測(cè)試Web?Service
3.1?打開該服務(wù)器的portal,?選擇頂級(jí)目錄,如
http://centsdv2.hk.crystal.com:50200/index.html
3.2?打開Web?Services?Navigator
(需要Portal?端的用戶名和密碼)
3.3?在Web?Services?Navigator中輸入我們所需要測(cè)試的URL,進(jìn)行測(cè)試
(需要用ws_policy?這個(gè)URL才能在這里測(cè)試,?輸入SAP?R/3?的用戶名和密碼)
3.4?點(diǎn)擊Test?導(dǎo)航,輸入數(shù)據(jù)進(jìn)行測(cè)試
3.5?結(jié)果反饋,?查看數(shù)據(jù)庫(kù),成功添加一條記錄
For?date?format?should?be:?yyyy-mm-dd
在不同的客戶端,需要對(duì)該客戶端進(jìn)行配置才能運(yùn)行Web?Service
1.?配置服務(wù)器
使之能解析Xml文件(這個(gè)只需要配置一次,以后就不需要配置了),
T-code:?SICF
分別激活下面幾個(gè)路徑的文件(如圖:黑體部分是需要激活的,如沒有完全打開,說明下層所有的都需要激活)
1.?Default_host?->?sap?->public?->?bc
2.?Default_host?->?sap?->public?->?bsp
Default_host?->?sap?->public?->?icman
Default_host?->?sap?->public?->?myssocntl
3.?Default_host?->?sap?->?bc?->?contentserver
Default_host?->?sap?->?bc?->?error?->?webgui
Default_host?->?sap?->?bc?->?srt?->?wsdl?->?wsil
Default_host?->?sap?->?bc?->?webdynpro
4.?default_host?->?sap?->?bw?->?xml?->?soap
2.?配置該Web?Service
T-code:?SOAMANAGER
2.1?Path:?SOAMANAGER?->?Business?Administrator?->?Web?Service?Adimistration
2.2?搜索需要配置的Web?Service,
2.3?選中目標(biāo)Web?Service,?點(diǎn)擊Apply?Selection
2.4?在出現(xiàn)的屏幕中選擇?configurations?進(jìn)行創(chuàng)建Service?和?Endpoint.
Details?of?Service?Definition:?ZTEST_BAPI_UPDATE_EE_INFO_WS
2.5?配置產(chǎn)生的Web?Service
在Transport?Guarantee?Type中?選擇No?Transport?Guarantee
在HTTP?Authentication?勾選?User?ID/Password,
其他的保持默認(rèn)即可,設(shè)置完畢,點(diǎn)擊Save按鈕,保存設(shè)置。
2.6?在屏幕中選擇Over?View?選項(xiàng),?查看Web?Service?的URL
Details?of?Service?Definition:?ZTEST_BAPI_UPDATE_EE_INFO_WS
2.7?點(diǎn)擊Open?WSDL?document?for?selected?binding,?取得Web?Service?的URL
http://centsdv2.hk.crystal.com:8001/sap/bc/srt/wsdl/bndg_DEA8DFAD516C4EF1A146001CC45FC0A4/wsdl11/allinone/ws_policy/document?sap-client=400
2.8?因?yàn)槲覀冃枰谕獠空{(diào)用到此Web?Service,?所以我們需要把URL中的ws_policy修改standard,?得到真正的Web?Service?地址為:
http://centsdv2.hk.crystal.com:8001/sap/bc/srt/wsdl/bndg_DEA8DFAD516C4EF1A146001CC45FC0A4/wsdl11/allinone/standard?/document?sap-client=400
3.?測(cè)試Web?Service
3.1?打開該服務(wù)器的portal,?選擇頂級(jí)目錄,如
http://centsdv2.hk.crystal.com:50200/index.html
3.2?打開Web?Services?Navigator
(需要Portal?端的用戶名和密碼)
3.3?在Web?Services?Navigator中輸入我們所需要測(cè)試的URL,進(jìn)行測(cè)試
(需要用ws_policy?這個(gè)URL才能在這里測(cè)試,?輸入SAP?R/3?的用戶名和密碼)
3.4?點(diǎn)擊Test?導(dǎo)航,輸入數(shù)據(jù)進(jìn)行測(cè)試
3.5?結(jié)果反饋,?查看數(shù)據(jù)庫(kù),成功添加一條記錄
For?date?format?should?be:?yyyy-mm-dd
總結(jié)
以上是生活随笔為你收集整理的BASISI系统中如何配置web service的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: abap 调用外部web service
- 下一篇: java信息管理系统总结_java实现科