on 12-03-2008 9:00 AM
Dear Experts,
i want to pass the whole input xml as a string to the UDF which does a soap look up . how do we do it ?
It is file to soap lookup to jdbc.
Qos would normally be that of the sender. In the case of soap lookup , where do we specify the QOS?
Does the soap reciever adapter make use of wsdl while creating the soap request , and if yes , how ?
Thanks,
Aju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aju,
UDF which does a soap look up
[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5001] [original link is broken] [original link is broken] [original link is broken];
Read Input Text File as a Single Field
[https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/readInputTextFileasaSingle+Field.]
Regards,
RajeshKumar.D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aju,
Passing the whole input as a string can be easily achieved through java mapping. Use the following code in the execute method of your java class:
StringBuffer strbuffer = new StringBuffer();
byte[] b = new byte[[4096]];
for (int n; (n = in.read(b)) != -1;)
{
strbuffer.append(new String(b, 0, n));
}
data = strbuffer.toString();
For more on SOAP lookUp use this blog:
Thanks and Regards,
Sanjeev.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The best way for do it is to develop a Java Mapping. This Java mapping have a target message with one tag where you put the whole XML message. It would be better convert this message to BASE64 format because the parser don´t let you put '<' and '>' characters and will fail the parsing if you use this characters.
Into the UDF function the first step is decode BASE64 message.
Best Regards
Iván
Edited by: Carlos Ivan Prieto Rubio on Dec 3, 2008 10:17 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
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.