cancel
Showing results for 
Search instead for 
Did you mean: 

Web Service call from java UDF in message mapping

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos
      • Reward point if you find this helpfull

Former Member
0 Kudos

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1...

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

Former Member
0 Kudos

Yes you can do it in UDF..and it is called SOAP lookup.

Try to find some blogs on SOAP lookup.

Thanks

Farooq.

Former Member
0 Kudos

Just type SOAP lookup in search text field and you will get it...Everything on SDN is simple..just little bit efforts and you will get the answer by you own.:)

This is the right blog.

Thanks

farooq