on 12-02-2008 3:03 PM
I use a HTTP Adapter to send XML Data via HTTP as form field. Therefore i use the prolog constant. Example: xmlfile=.... Now i need two new parameter (user and password) as post parameters. I can change to prolog like user=...&password=....&xmlfile=.. But in this case the prolog with the user is hard coded. in my scenaria the user and password should dynamically load from Message Mapping. The solution with the dynamic URL Parameter 1-6 could not be used, because this values are GET Parameters which are visible in der URI!
Is there a solution for post parameters dynamically via HTTP Adapter?
Ok the JAVA Mapping now works fine. In the first step i have a message mapping from source to destination. In the second step the Output from first mapping is merged with the constant Prolog user=...&password=....
Now i have the next problem, how can i get access from JAVA Mapping to the fields user and password from my Source XML structure? I think in the JAVA Mapping i can only get access to the output from the first mapping. And in this structure this fields should not be included?
Can i store the values anywhere and get access from Java Mapping?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, problem is solved now!
Best Regards
Swen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swen,
I have the same scenario as this but instead of using user and password as post parameter we need site_id=...&service_name=...&efx_request=XMLdata... I am new in using the HTTP adapter as HTTPS via HTTP Destination. Is it possible for you to share the steps in using the Java mapping including the java codes to make use of the Prolog dynamically?
Please kindly help.
Thanks
Rogie
Java Mapping? Give me please a short description, how i can add a additional java mapping to my existing message mapping.In moment i have a message mapping and a Operation Mapping. In the Operation mapping i have the Source Message and the Target Message and the necessary Message Mapping. How can i add a new java mapping?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The operation mapping aka Interface mapping's need not only use 1 single mapping.
In the interface mapping you can add multiple message mappings and / or other mapping programs.
The mappings get executed sequentially and the output of first mapping is input to second mapping and so on.
In this case, write a java mapping that will take the input as the output of your graphical mapping; add the prolog to this and make it the output of your Java Mapping and this is the final output of your Operation mapping!
Regards
Bhavesh
You can create the prolog with help of a Java mapping. The Java mapping can be added after the regular mapping, just to add the prolog.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.