on 05-29-2006 2:49 PM
Hi Guys,
I am wondering how I could implement a generic XI Java proxy...
My goal is to specify the sender (service, ns, <b>interface</b> ...) dynamically and assign the corresponding payload directly to the proxy.
Unfortuantely I only find methods for configuring the receiver in the MesseageSepcifier interface - and not the sender. with <i>setPayload</i> I should be able to set any payload I guess.
Do I really need to use a WS client in order to dynamically set the sender or is there another way?
Thx in advance!
Helge
Hi Helge,
could explain, why you cannat create a Java proxy for each interface and why you need different senders?
You can set the sender service name dynamically, check out for the methods of the interface MessageSpecifier. It is not mentioned in the online help, but it exists anyway.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
the program is like a general purpose adapter. we have different files and each of it should be easily insertied into xi. Then we just want to use the directory to configure the connection since we do not need mappings etc.
I also thought that there should be some method like setSender since the help indicated sth. like that.
I will try. Thanks for the hint!
Regards,
Helge
Hi ,
The Java Proxy is created with the Message type contained in the Message Interface whose Java proxy is created.
SAPXI will expect Payload in the metadata of the Message type being used. If you can make this generic then I think you can use it in multiple places.
Regards
Vijaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
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.