on 07-16-2008 7:29 AM
Hi,
Is it possible to call a web service from inside a java UDF in message mapping? The webservice can be any standard one. If this is possible please let me know how this can be done.
Regards,
Shiladitya
Hi Shila,
Hope u remember me
Here is the standard code used to call webservice from Java UDF
public String setSoapAction(String SOAPAction,Container container){
try{
DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey soapurl = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/SOAP" , "THeaderSOAPACTION");
conf.put(soapurl, SOAPAction);
return "";
}catch(Exception e){
e.getMessage();
}
return "";
}
Regards,
Arijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reward point if you find this helpfull
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can achieve this using lookups......
lookups: RFC Lookup: for SAP Data
JDBC Look up: for data base data
SOAP Look up: for webservice data.
So you can handle this by SOAP Look up
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm
Thanks,
Madhu
Edited by: Madhu sudhan Reddy on Jul 16, 2008 8:39 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes you can do it in UDF..and it is called SOAP lookup.
Try to find some blogs on SOAP lookup.
Thanks
Farooq.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.