Set Web Service in SAP
There is project to create Web Service in SAP to allow our client to access to customer info through web service. I am trying to create a proto type of solution to prove that it will work.
I know how to create Web service for FM. I need to know how to configure / set up the other required SAP components like UDDI and/or proxy, etc.
I am trying to test SAP Web service in my local machine, I have installed application server tomcat - jakarta-tomcat-4.0.6 in my machine. What else do I need to be able to get access to new SAP web service via tomcat?
Any help is greatly appreciated.
Reza
Thanks for the info.
I still don't know how to release and use the SAP Web service that I have created. That would be realy helpful if you could give me tasks/step that I need to take to complete the process.
Thanks in advance.
Similar Messages
-
Error in testing XML query result set web service
Hi
I was trying to test a <b>XML query result set web service</b> in BW system with tcode wsadmin but getting error like
<b>Cannot download WSDL from http://ibmbtsb02.megacenter.de.ibm.com:8070/sap/bw/xml/soap/queyview?sap-client=001&wsdl=1.1&mode=sap_wsdl: F:\usr\sap\W70\DVEBMGS70\j2ee\cluster\server0\apps\sap.com\com.sap.engine.services.webservices.tool\servlet_jsp\wsnavigator\root\WEB-INF\temp\ws1139464945296\wsdls\wsdlroot.wsdl (The system cannot find the path specified)</b>
I had tried it first time few days ago and was able to test it successfully with the same configuration settings.
Could any one of you please provide any suggestion on this?
Thanks in advance
Sudiphi
check this links it may help u.
http://help.sap.com/saphelp_nw04/helpdata/en/c3/e3072e65f04445a010847aa970b68b/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d8/3bfc3f8fc2c542e10000000a1550b0/frameset.htm
Regards,
Manoseelan -
INVOKING WEB SERVICE FROM SAP ERP
Hi to all
I need interchange informacion between NON-SAP system and SAP ERP using web services
I know publish web services in SAP ERP, but I don't know how SAP consume a WS of other system
Please, somebody know how can I do it this ? I don't want that XI consume this WS, I want that SAP ERP consume it.
Thank you and regards
DarioHi,
we can do it using Webdynpro for Java or ABAP. In addtiion to this check wtih any EDI related ones or ALE-IDOCS.
Psl check this abt the Web Services information-
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/109aa318-5aa6-2a10-799d-a495383c1e01
Reward if helpful.
Best Wishes,
Chandralekha -
Dear All,
How can we call web service from SAP?
Thanks in Advance,
RamanaHI kcr,
pls see this link
http://****************/Tutorials/Others/ValidateEmailID/Webservice.htm
write this program
REPORT zvalidate_email.PARAMETERS: p_mail(100) LOWER CASE. " E-Mail id to be verifiedDATA: http_client TYPE REF TO if_http_client .DATA: w_string TYPE string ,
w_result TYPE string ,
r_str TYPE string .DATA: result_tab TYPE TABLE OF string.START-OF-SELECTION .
CLEAR w_string .
CONCATENATE
'http://www.webservicex.net/ValidateEmail.asmx/IsValidEmail?Email=' p_mail
INTO
w_string . CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = w_string
IMPORTING
client = http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4. CALL METHOD http_client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2. CALL METHOD http_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
CLEAR w_result .
w_result = http_client->response->get_cdata( ). REFRESH result_tab .
SPLIT w_result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab . READ TABLE result_tab INTO r_str INDEX 2.
IF r_str+44(1) = 't'.
WRITE:/ 'Valid email address'.
ELSE.
WRITE:/ 'Invalid email address'.
ENDIF.Output:
thanks
karthik -
Error when creatibg a web service in SAP r/3 ecc 5, WebAS 640
We are trying to expose a BAPI (BAPI_CUSTOMER_GETSALESAREAS) as a web service on SAP R/3 ECC 5. web AS 640.
We created the virtual interface (Z_VI_CUSTOMER_BAPI)and the web service definition (Z_WSD_CUSTOMER_BAPI)from SE80. When we try to release the web service definition from WSCONFIG, we get an error saying:
"Error when creating web service(Web Service Definition Z_WSD_CUSTOMER_BAPI for SOAP application unbekannt)"
Please help...
Thanks,
ShaileshHi.
I think I must clarify my question.
The Web Service is not called inside SAP R/3 but externally. For testing pourpose I actually use WS Navigator and XMLSpy.
The method inside ABAP Server Proxy which is exposed as a Web Server in SAP R/3 system is the following. Note that the Web Service is Asynchronous.
METHOD zpi_ii_test_ws_4_in~test_ws_4_in.
DATA: lwa_zpi_test TYPE zpi_test.
lwa_zpi_test-mandt = input-mt_test-record-client.
lwa_zpi_test-bukrs = input-mt_test-record-company.
lwa_zpi_test-belnr = input-mt_test-record-document.
lwa_zpi_test-gjahr = input-mt_test-record-year.
INSERT zpi_test FROM lwa_zpi_test.
COMMIT WORK.
ENDMETHOD.
I have created another Web Service in SAP R/3 which is Synchronous, and the error does not occurs. The following is the method inside ABAP Server Proxy which is exposed as a Web Service in SAP R/3 system.
METHOD zpi_ii_test_ws_3_in~test_ws_3_in.
DATA: l_bukrs TYPE bukrs,
l_belnr TYPE belnr_d,
l_gjahr TYPE gjahr,
lr_belnr TYPE RANGE OF belnr_d,
lwa_zpi_test TYPE zpi_test.
l_bukrs = input-mt_req-msg+0(4).
l_gjahr = input-mt_req-msg+4(4).
SELECT MAX( belnr ) INTO l_belnr
FROM zpi_test
WHERE bukrs EQ l_bukrs
AND belnr IN lr_belnr
AND gjahr EQ l_gjahr.
IF l_belnr IS INITIAL.
l_belnr = '4700000000'.
ELSE.
l_belnr = l_belnr + 1.
ENDIF.
lwa_zpi_test-mandt = sy-mandt.
lwa_zpi_test-bukrs = l_bukrs.
lwa_zpi_test-belnr = l_belnr.
lwa_zpi_test-gjahr = l_gjahr.
INSERT zpi_test FROM lwa_zpi_test.
COMMIT WORK.
output-mt_resp-msg = l_belnr.
ENDMETHOD.
I hope to have clarified my question.
Rafael Rojas. -
Error when consuming Web Service in SAP R/3 ECC 6.0
Hi to everyone.
I have created an asynchronous Web Service in SAP R3, which I want to use in SAP PI later.
When I test the Web Service using WS Navigator or XMLSpy the following error occurs:
SOAP Runtime Protocol: ABAP Runtime exception: 1F09B73915F6B645E10000000A11447B occurred in program CL_SOAP_APPLICATION_PROXY=====CP CP in include CL_SOAP APPLICATIONPROXY=====CM008 at position 110
SOAP Runtime Protocol: Exception message: An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
I tested another synchronous Web Service developed by me in the same system, and the error does not occurs.
I just searched an OSS Note and does not find anything.
There are some restrictions in Web Service type developed in SAP R/3?
Thanks in advance.
Rafael Rojas.Hi.
I think I must clarify my question.
The Web Service is not called inside SAP R/3 but externally. For testing pourpose I actually use WS Navigator and XMLSpy.
The method inside ABAP Server Proxy which is exposed as a Web Server in SAP R/3 system is the following. Note that the Web Service is Asynchronous.
METHOD zpi_ii_test_ws_4_in~test_ws_4_in.
DATA: lwa_zpi_test TYPE zpi_test.
lwa_zpi_test-mandt = input-mt_test-record-client.
lwa_zpi_test-bukrs = input-mt_test-record-company.
lwa_zpi_test-belnr = input-mt_test-record-document.
lwa_zpi_test-gjahr = input-mt_test-record-year.
INSERT zpi_test FROM lwa_zpi_test.
COMMIT WORK.
ENDMETHOD.
I have created another Web Service in SAP R/3 which is Synchronous, and the error does not occurs. The following is the method inside ABAP Server Proxy which is exposed as a Web Service in SAP R/3 system.
METHOD zpi_ii_test_ws_3_in~test_ws_3_in.
DATA: l_bukrs TYPE bukrs,
l_belnr TYPE belnr_d,
l_gjahr TYPE gjahr,
lr_belnr TYPE RANGE OF belnr_d,
lwa_zpi_test TYPE zpi_test.
l_bukrs = input-mt_req-msg+0(4).
l_gjahr = input-mt_req-msg+4(4).
SELECT MAX( belnr ) INTO l_belnr
FROM zpi_test
WHERE bukrs EQ l_bukrs
AND belnr IN lr_belnr
AND gjahr EQ l_gjahr.
IF l_belnr IS INITIAL.
l_belnr = '4700000000'.
ELSE.
l_belnr = l_belnr + 1.
ENDIF.
lwa_zpi_test-mandt = sy-mandt.
lwa_zpi_test-bukrs = l_bukrs.
lwa_zpi_test-belnr = l_belnr.
lwa_zpi_test-gjahr = l_gjahr.
INSERT zpi_test FROM lwa_zpi_test.
COMMIT WORK.
output-mt_resp-msg = l_belnr.
ENDMETHOD.
I hope to have clarified my question.
Rafael Rojas. -
How to publish a SAP Web Service in SAP XI/PI 7.0
Hi,
First I've to say that I'n new in this deals with SAP Web Services and SAP XI/PI.
I've created a Web Service with TX SE80 using a standard BAPI.
I've created the Client Proxy with TX SE80.
I've created a Logical Port wiht TX LPCONFIG.
I've tried this is SOAMANAGER but I have this error...
"SRT Framework exception: Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL"
I would like to publish this service in my SAP XI/PI 7.0
How can I solve the error in SOAMANAGER?
How can I publish de SAP WS that I've created in SAP XI/PI?
Thanks a lot.
Waiting for your news.
Fernando.Hi Dimitri,
I had the same problem:
"SRT Framework exception: Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL"
And by following Nags hints I got solution:
1, On the system where is your service provider, run transaction SICF
2, Execute this transaction
3, Go to node: default_host/sap/bc/srt/wsil
4, Right click on "wsil" -> choose "Test service" - web browser should open with XML definition of service
5, Find your service provider. In my case it looks like this:
<service>
<name>ZTEST_WS</name>
u2212
<wsdlNamespace>
urn:sap-com:document:sap:soap:functions:mc-style/service
</wsdlNamespace>
<wsdlName>service</wsdlName>
u2212
<wsdl>
http://xxx.yyy.com:8000/sap/bc/srt/wsdl/srvc_DF838C999AA282F18829001CC4D74176/wsdl11/service/ws_policy/document?sap-client=800
</wsdl>
</service>
5, Look for WSDL link -> in my case:
http://xxx.yyy.com:8000/sap/bc/srt/wsdl/srvc_DF838C999AA282F18829001CC4D74176/wsdl11/service/ws_policy/document?sap-client=800
I dont know why, but this link is different like WSDL link in service definition which I can see in SE80:
http://xxx.yyy.com:8000/sap/bc/srt/wsdl/sdef_ZTEST_WS/wsdl11/ws_policy/document?sap-client=800
6, Use this link (from "wsil") instead of link from SE80 in SOAMANAGER to create logical port
7, Yours logicall port should be created without errors.
My question - have anybody idea, why this links are different and why only that second one works?
Peter -
How to create WEB SERVICE in SAP
Hi guys ,
i am new to WEB SERVICE IN ABAP.what's the purpose of web service ?
can anyone give me step by step example to create web service in SAP?
ur answers will be rewarded.
Regards
pabitraCheck the below links.
Web Services-Based Connectivity
Providing and Consuming Web Services in ABAP
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
Web Services Development in ABAP
Web Services-Based Connectivity?rid=/webcontent/uuid/83b7ec4d-0a01-0010-03a9-e5a3b42522b8 [original link is broken]
Web Services (SAP Library - Web Services)
http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm
ABAP Proxy Runtime (SAP Library - Web Services)
http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
Hope this helps.
Thanks,
Balaji -
Is it possible to create WEB SERVICE in SAP 4.7
Hi guys,
is it possible to create WEB SERVICE in SAP 4.7 ?
i want to make a FM as web service enabled.
plz advice.
Regards
pabiHi,
The definitive (and in my experience only) documentation on this is at;
http://help.sap.com/saphelp_47x200/helpdata/en/94/f8c8a2e68811d6b2dc00508b5d5211/frameset.htm
This same information is available combinded as a single pdf, but I can't find this.
Regards,
Nick -
Hi freinds,
I need a big help. I am really new to this web service in SAP. Some how I have created a web service using a function module and now it can be view from the browser.
I am facing an issue when it's running with the parameters. Here I am pasting the messages I am getting .
This is the request part.
POST /sap/bc/srt/rfc/sap/GL_Balance_Date_Range_WSD?sap-client=200 HTTP/1.1
Host: R3DEVQA.hemas.lk:8001
Content-Type: text/xml; charset="UTF-8"
Connection: close
Cookie: <value is hidden>
Cookie: <value is hidden>
Authorization: <value is hidden>
Content-Length: 1107
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><ns1:ZbapiGlaccGetDateRange xmlns:ns1='urn:sap-com:document:sap:soap:functions:mc-style'><Balancespgli xsi:nil='true'></Balancespgli><Companycode xsi:type='xs:char4' xmlns:xs='urn:sap-com:document:sap:rfc:functions'>6500</Companycode><Glaccount xsi:type='xs:char10' xmlns:xs='urn:sap-com:document:sap:rfc:functions'>10005500</Glaccount><Keybalance xsi:nil='true' xsi:type='ns1:TableOfbapi30073'></Keybalance><KeybalanceFrom xsi:nil='true' xsi:type='ns1:TableOfbapi30073'></KeybalanceFrom><KeybalanceTo xsi:nil='true' xsi:type='ns1:TableOfbapi30073'></KeybalanceTo><Keydatefrom xsi:type='xs:date' xmlns:xs='urn:sap-com:document:sap:rfc:functions'>2005-09-01</Keydatefrom><Keydateto xsi:type='xs:date' xmlns:xs='urn:sap-com:document:sap:rfc:functions'>2005-12-31</Keydateto><Noteditems xsi:nil='true'></Noteditems></ns1:ZbapiGlaccGetDateRange></SOAP-ENV:Body></SOAP-ENV:Envelope>
And here is the responce part:
HTTP/1.1 200 OK
content-type: text/xml; charset=utf-8
content-length: 681
sap-srt_id: 20070815/162506/v1.00_final_6.40/46C1274F895B09FF01000000AC15012E
server: SAP Web Application Server (1.0;640)
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><n0:ZbapiGlaccGetDateRangeResponse xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style"><Keybalance><item><SpGlInd></SpGlInd><Currency></Currency><DbCrInd>H</DbCrInd><TCurrBal>0.0</TCurrBal><LocCurrcy></LocCurrcy><LcBal>0.0</LcBal></item></Keybalance><KeybalanceFrom></KeybalanceFrom><KeybalanceTo></KeybalanceTo><Return><Type></Type><Code></Code><Message></Message><LogNo></LogNo><LogMsgNo>000000</LogMsgNo><MessageV1></MessageV1><MessageV2></MessageV2><MessageV3></MessageV3><MessageV4></MessageV4></Return></n0:ZbapiGlaccGetDateRangeResponse></soap-env:Body></soap-env:Envelope>
Pls help me to solve this out. I don't know where it is gone wrong.
If u have any documents related to this sap web service pls mail it to my mail address.
Mail addr: [email protected]
thanks in advance
Regards
ThanuraHi Thanura,
Please be specific about the ERROR?
I can not see any error in the response you have paste here. The HTTP retrurn code 200 means the execution of the webservice is successful.
If the problem is that you are not getting the values in the return code then you can try the followings-
1. Try log-in using SAPGUI directly into SAP system and execute the RFC by providing the same parameter as you are sending through POST.
or 2. Try putting a external breakpoint in RFC. Then execute the call to webservice and check the values it is receiving and returning back.
By the way, what is the client you are using to invoke the webservice. Is it HTTP DOM?
Regards. -
How to test/consume asynchronous web services in SAP?
Hi,
How do we test/consume asynchronous web services in SAP - either version 4.7 or ECC6.0?
TIA,
Regards
DeepthiGo through the following link to know how to consume web services using ABAP:
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3]
Regards,
Siva. -
How to call WEB Service From SAP
Hi Friends,
How to call WEB Service From SAP.
Thanks in advance,
Murali Krishna KHi,
if you mean calling a web service in Web Dynpro ABAP, see the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm">documentation</a>, if you mean calling a web service in general, this is not the correct forum. This here is the Web Dynpro ABAP forum, for general questions on ABAP, use the ABAP forum.
Regards, Heidi -
Hi guys,
is it possible to create WEB SERVICE in SAP 4.7 ?
i want to make a FM as web service enabled.
plz advice with step by step procedure.
Regards
pabiHi,
Yes, it is possible to create a web service in 4.7, this is the first release where it is possible so the approach differs from later releases.
Take a look at the replies you got the last time you asked this question,
is it possible to create WEB SERVICE in SAP 4.7
Regards,
Nick -
Web service in sap 4.6c(wsconfig,wsadmin,soamanager does not exist)
Hi all,
i am trying to create web service in sap 4.6c.
there is no option like utilities->more utilities->web services
& WSCONFIG, WSADMIN TRANSACTIONS R not exist.
so, can i create web service in 4.6c version.
Regards
pabiHi Prabby,
the SAP Basis technology platform that underpins the 4.6c system does not provide a HTTP server so it cannot itself act a webservice provider.
However you can expose SAP functionality as a web service in three ways.
Firstly, SAP provide the SAP Business Connector that will provide access to all remote-enabled function modules (and other functionality) out of the box. This product is essentially an OEM version of WebMethods Integration Server and is available for download from SAP.
Secondly, you can use any available middleware, such as WebLogic, WebSphere, .Net, and the appropriate SAP Connector (J-Co, DCOM, .NET) to write a SOAP handler that exposes your SAP functionality.
Thirdly, you can use a SAP system that is running on a later release to expose the functionality you want and call it via RFC. What I am suggesting is that you write a "wrapper" function module on a WAS ABAP system such as your Solution Manager system and have it call the 4.6C functionality via RFC. Then expose the wrapper function module as a webservice using the WSCONFIG, WSADMIN transactions already mentioned.
Cheers
Graham Robbo -
How to use and configure web services in sap
Hi,
Experts,
could you please tell me, how to configure web services in sap.
As one of my client using handheld software for inventory, where in whatever tansaction happens in the depot it has to update in sap.through non sap software please help me out with necessary configuration.
Thanks
Edited by: Ahmed quadry on Jun 9, 2009 2:25 PMHi Ahmed,
Kindly find the below link will helps you to create web service in SAP
http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
Also find the below documents will helps you to create web services in SAP
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/06adbf03-0a01-0010-f386-d8e45561a3c4
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3004a2d2-0653-2a10-779c-f5562b3fac39
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/bb0764f2-0b01-0010-bd85-c7849b40561e
Regards
Venkata Rao .G
Maybe you are looking for
-
Why do I keep getting an error message when trying to install CC on my new Macbook Pro 13" retina? Keeps saying it is missing or damaged. I have a membership and have already installed the program on another computer - iMac.
-
Read a doc file and write back to a doc file
How to read line by line from a doc file and then arrange it. Like--> amit sumit prem jeev these four names are present in the doc file. Now how to read by means of java program and sort these names and write back to a new doc file????? What packages
-
JavaFX and JDK 1.7.x? (x=latest minor build as of 5/13)
Good morning. I was playing around with building a standalone GUI app last night and wanted to test drive JavaFX 2.0 as the tool to build the UI. After reading through the documentation on the download site, I downloaded the JDK version 1.7.x (64 bit
-
Is there a change in FF8 for filenames in UTF-8 sended as attachment
I send files with non-ASCII-Characters in their filename to the browser.<br /> I use Content-Disposition: attachment; <nowiki>filename*="utf-8''myfilename"</nowiki>.<br /> This worked well for FF7 and below.<br /> In FF8 the filename is ignored (Linu
-
SAP Inventory Manager 4.0 installation problems
I am having problems when trying to install the new version of Inv Manager 4.0 on windows server 2008. The installation is performed by first installing and patching to latest release an SMP 3.0 server, followed by an installation of the SAP Invento