Introduction
Steps to Expose your Remote Enabled Function module as WebService
1.
Use transaction SE37 to open your function module.Go to Attributes tab page and confirm that the remote enabled radio button is selected.2.
Go to Utilities --> More Utilities --> Create WebService --> From the Function Module
A Wizard opens
WebDynpro Tutorials
1.Download the WSDL file locally or refer to the URL for the WSDL file in model creation wizard.
2.When you are using Userid/Passwd for authentication you need to pass the UserId/ Passwd with the model object before executing it.
Here I have provided the sample code:
public void executeRequest_ZemailKp_zPrashantRfc( )
{
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try{
wdContext.currentRequest_ZemailKp_zPrashantRfcElement().modelObject()._setUser("User Name");
wdContext.currentRequest_ZemailKp_zPrashantRfcElement().modelObject()._setPassword("Password");
wdContext.currentRequest_ZemailKp_zPrashantRfcElement().modelObject().execute();
} catch(Exception ce) {
manager.reportException(ce.getMessage(), false);
}
Troubleshooting
SOAP Marshalling Exception or Improper Message Structure Exception
.Authentication Exception
, check the userid/passwd you are providing or, the validity of client certificate.Please provide your valuable comments, feedbacks, suggestions.
Thanks
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
37 | |
10 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |