Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue in creating web service for a ABAP Function Module

Former Member
0 Likes
393

Hi,

now i'm learning how to create web service for a ABAP Function Module. I used the following steps.

1. select the Function Module, named "zws_test".

2. in the context menu, select "create->proxy object". so we enter into wizard.

3. in the wizard, press the radio button "Service Provider".

4. in the next page, press the radio button "Existing ABAP Objects(Inside Out)".

5. In the next page, Enter the "zws_test_prvider" as Service Definition and select "Function Module" as Endpoint Type.

6. in the next page, enter "zws_test" as Function Module and mark the "Mapping der Namen" button

7. in the next page,select "PRF_DT_IF_SEC_LOW" as Profile and mark "Deploy Service".

8. Save in the local package.

9. then it will pop up a window with title "WSDL Source". i selected "URL/HTTP Destination" and press "OK".

10.in the next page, i enter the URL as "http://hostname:portnumber/", and press "OK".

11. then it will pop up a window with title "Display logs". A record with error message "HTTP error(return code 404, message "Not found")" appears.

12. i press "ok" and a service provider with name "zws_test_prvider" appears in my local package.

13. i use "zws_test_prvider"'s URL to create a service consumer "ZCO_WS_TEST_CONSUMER" and logic portal "LP1".

14. But when i test my service consumer "ZCO_WS_TEST_CONSUMER", it will throw an exception "cx_ai_system_fault" with errortext "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/".

15. I use t-code SM59 to test connection and get the following info.

Status HTTP Response 200

Status Text OK

Duration Test Call 328 ms.

who can give me the reasons about item 11 and 14, and explain me how to create service provider and service consumer for a Function Module.

Thanks in advance

Johnney

2 REPLIES 2
Read only

athavanraja
Active Contributor
0 Likes
357

have you seen this weblog

/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices

Read only

Former Member
0 Likes
357

Get Solution from internal colleague