Showing posts with label Web service. Show all posts
Showing posts with label Web service. Show all posts

Monday, October 12, 2015

Regenerate Web services after SAP upgrade

Symptom: Webservices weren’t working after SAP upgrade. They fail with error ‘Virtual Interface not found’.
Solution:
Below Link is quite useful:
SAP notes:  1903490  and 1847901
Program: WS_MANUAL_WEBI_AFTER_IMPORT
Follow below steps and issue will be resolved. (Step 2 is not always required)

1. Run Report Program - WS_MANUAL_WEBI_AFTER_IMPORT by selecting Single Service Definition and by clicking on "Force Generation" check box.
2. Run Report Program - WEBI_CHECK_REPAIR by selecting Single Service Defination to remove inconsistancy in web service.

After this two program run, the web service will be operational again.
To monitor and check the webservice calls, use SRT_UTIL tcode

Tuesday, March 31, 2015

Tuesday, March 25, 2014

Web services Testing


SOAP UI

SOAP UI is good tool to test web services.  Get 'binding WSDL' for the webservice from SOAMANAGER, and save it as xml file.
Open SOAP UI  -   create a new project  - give the wsdl file
To setup certificates - Go to File->Preferences->SSL certificates.  (check below link)
http://geekswithblogs.net/gvdmaaden/archive/2011/02/24/how-to-configure-soapui-with-client-certificate-authentication.aspx

In SAP

Go to SE80 -> Enterprise services -> Service definition -> give service definition name
Test (Click on 'Test')
Get template -> Edit and give parameters

Tuesday, March 18, 2014

Webservices Links

Certificates in SAP


STRUST is tcode to setup certificates in SAP

You can setup SSL certificate for your web service and then share the certificate details with third-party , so that to establish secure connection.  - Set for everything.. Import and add to Certif list

After the certificates are set , then do a restart of ICM(smicm->admin->ICM->Restart->Yes).

And to map certificate to user id, Go to SM30 -> view VUSREXTID, type=DN -> maintain user id for certificate and tick 'Activated'.  Also check if the userid has erquired authorizations.  'Min date' - better make it blank.. we faced some issues - as sometimes certificate valid date may go beyond that, and you forget to change this.

How to automatically select SAP client certificate in Google chrome
                        
http://scn.sap.com/blogs/ivazharov/2013/10/22/how-to-automatically-select-sap-client-certificate-in-google-chrome

Monday, March 17, 2014

Webservices tcodes


Traces:

SRT_UTIL - To monitor web service calls  - > Click on 'Error Logs'
SRT_UTIL - We can configure (set up) logging for a user for particular service definitions - helps in logging (performance, functional, payloads). Set 'Functional trace' to 'Low' for user in Configuration tab. Then check in 'Funct Trace' tab for logs.

Webservices need to be set up in authorization role (if WEBUSER soesnt have SAP_ALL).
ST01 - this can be used to see what authorizations are missed for WEBUSER (user for webservices)

SMICM-> Goto->Tracefile->display all
SMICM -> Goto -> Trace level (Level 3 is highest)
SAP note 495911 - to trace errors for Logon problems
After setting logs (level 3), if you set system parameter (rz10) icn\trace_secured_data to '1' (TRUE), then you can see SSL data in logs.

SAP note 1292171 - Troubleshooting Guide: ABAP Web Services Runtime  (is good)


SOAMANAGER -  You can use this tcode as well to check logs (it is similar to SRT_UTIL)

SE80 - Go to 'Edit Object' and then check for Enterprice services - Service definition

STRUST -  To setup certificates  After the certificates are set , then do a restart of ICM(smicm->admin->ICM->Restart->Yes).

SICF - Maintain services

SMICM - ICM monitor   (SMICM-> Goto->Tracefile->display all , SMICM -> Admin->ICM->Restart  , SMICM->Goto->Connections )

 

Thursday, February 27, 2014

Webservices: If you add/remove parameter


If you add/remove parameter in function module. Then go to webservice from SE80 -> Enterprice services. Then click on 'Check' (this will give a pop up to adjust) and then activate.

http://scn.sap.com/thread/1892427

Tuesday, January 21, 2014

Web service setup for RFC


        go to SE37
-->FM name : < the RFC name >
-->open in Edit mode
-->Utilities -> More Utitlities->Create Web service -> From FM
then follow the wizard which will guide u to create the webservice from the RFC
after that inorder for u to execute the web service follow this link

 To test using SOAPUI – download wsdl from below to htm file.

Web service can aslo be tested using 'Test' button in SE80 -> Enterprise services -> Give Service name and press enter