Convert XML payload to HTML form data in Receiver HTTP Adapter
Hi,
I want to make a HTTP request ( Receiver HTTP Adapter ) to a servlet where I need to send the payload in HTML form format ( name=value ). As per the help document:
A typical HTML form comprises named fields. When transferring a completed form to the server or a CGI program, the data must be transferred in such a way that the CGI script can recognize the fields that make up the form, and which data was entered in which field.
The plain HTTP adapter constructs this format using a prolog and an epilog
Has anyone done this before? I looked through all help documents and forums but in vain. I can resort to Java Mapping to do this but I do not want to re-invent the wheel if I can do it easily using HTTP Adapter Configuration. Please help.
The parameters available in HTTP adapter for message header are:
HeaderFieldFive http://sap.com/xi/XI/System/HTTP
HeaderFieldFour http://sap.com/xi/XI/System/HTTP
HeaderFieldOne http://sap.com/xi/XI/System/HTTP
HeaderFieldSix http://sap.com/xi/XI/System/HTTP
HeaderFieldThree http://sap.com/xi/XI/System/HTTP
HeaderFieldTwo http://sap.com/xi/XI/System/HTTP
HTTPDest http://sap.com/xi/XI/System/HTTP
TargetURL http://sap.com/xi/XI/System/HTTP
URLParamFive http://sap.com/xi/XI/System/HTTP
URLParamFour http://sap.com/xi/XI/System/HTTP
URLParamOne http://sap.com/xi/XI/System/HTTP
URLParamSix http://sap.com/xi/XI/System/HTTP
URLParamThree http://sap.com/xi/XI/System/HTTP
URLParamTwo http://sap.com/xi/XI/System/HTTP
Similar Messages
-
How can I change the order of html form data submitted to me via email?
I am having customers contact me via an html form posted on my website using the "sendtoemail" command. When I receive the data in an e-mail it is not presented in the order it appears on the web page and I can't seem to find out what dictates the order the data is presented in or how I can change it.
Anyone have any ideas on how I can make HTML form data elements appear in the order I want?
Thanks,
AndyOr find a commercial form-to-email script that is compatible with your server's configuration (PHP, ASP, Perl...) and customize it to your needs.
Formm@ailer PHP from DB Masters
http://dbmasters.net/index.php?id=4
FormToEmail.com (free & pro versions available)
http://formtoemail.com/formtoemail_pro_version.php
Tectite
http://www.tectite.com/formmailpage.php
Forms to Go from Bebosoft (script generating software)
http://www.bebosoft.com/products/formstogo/overview/
Nancy O. -
Submitting html form data using ajax
Hi all
I am new to ajax..
i want to save my html form data into DB.
i usually do it in jsp by submiting data throug form action..
how can this be done using ajax..pls help me in this case.
thanx in advanceThis forum is about Sun Studio program development tools for C, C++, and Fortran programming.
You should ask your question in an appropriate Java forum. At the Sun Forums main page, click the "Java" or "Java ES" tab. -
How to send the payload to a jsp using receiver Http adapter?
Hi experts,
I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
service number : port no ,
path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test=.I tried this but it doesnt work.
Is there any way to check the URL that it forms after appending the querystring in the url ...?
So please provide help on this or suggest a solution to [email protected] as soon as possible.....
Thanx in advance.
Akshatahey Shekhar,
thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
http://xx.xx.xx.xx:8080/abcdef/trial/ And it gives a proper response message after clicking on the submit button.
now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
addressing type: url
target host : xx.xx.xx.xx
service no:8080
path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
content type: text/xml; charset=iso-8859-1
xml code: UTF-8
Mask special characters (URL escaping) checked.
now since the name of the inputfield is "test" in the prolog I gave test=
But it doesnt work I get this error "http request parameter [test] is null" in the response message which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
Thanx ,
Akshata -
How to config receiver http adapter for HTTP POST without XML tags ??
Hi All,
Can you please provide some infornation on How to config receiver http adapter for HTTP POST (Request) without XML tags ?? Our receiving product doesn't support XML formats.
Is there any option to bypass server authentication on the XI?
If anybody has the same experience or know how to please provide inputs.
Thanx
NavinHi,
you can use xsl mapping for this in which u xtract
the contents only but not the xml tag.
Ranjit -
Update XML files with HTML forms...
Hi,
I would like to know if its possible to update or insert data
to XML files from a HTML form? And how can I do it?
Does dreamweaver have any extension that does this?hi bregent!
im using php.
i have a xml flash slide show script, and i want to insert
this slide show on a site. No problem here, but i would like to
create a backoffice were i can update or insert the pictures of the
xml slide show.
can you help me on this? -
Converting XML document to HTMl using xsl
Hi,
I'm trying to convert an xml document into html page using xsl. But when I try to open the page in the browser nothing comes up.
I'm not sure if I am using the PrintWriter correctly.
StreamResult result = new StreamResult(new PrintWriter(new (File"text.html")));
Please help.Oops! I wrote the parenthesis wrong in the previous mail
This is the correct one I use in my program.
StreamResult result = new StreamResult(new PrintWriter(new File("text.html")));
Please help. Its urgent -
Dynamic file name (Date) in Receiver File Adapter
Hi,
can any one tell me how to create outbound file name with receiver file adapter in format like Name_22-08-2006.dat. I need from a current Date in the name of the message (without any other information). In message payload I dont have that date. Is it possible to use variable from user defined function in message mapping for that name?
Regards,
NaychoNaycho,
that's exactly what I've managed to perform using DynamicConfiguration. Check these links:
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/frameset.htm
Particularly, I've created a Java API for using setDirectory and setFileName methods through mappings. I use XSLT with java enhancement because it's a million times easier to parse and get node values with XSL than pure java.
I'm writing a blog on the subject, if you don't resolve the problem until it's out, let me know.
Regards,
Henrique. -
Appending data in receiver file adapter
Hi EveryBody,
I have an IDOC to File Scenario.I need to create a flat file in the receiver file adapter directory and want to append the data in the same file every time the IDOC is trigged.I have File Construction Mode as Append but still i am not able to append the data.It gives the following error : <b>Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: file already exists and must not be overwritten</b>Hi,
In Order to Append the files do the following. It worked in my case.
>change the file creation mode to create and select the check box for overwriting the file
>After selecting the check box change the file creation mode to Append.
You should be able to append the files now. Please award points if it works.
Regards,
Saipriya. -
Convert XML File from HTML file using java
Hi All,
I am trying to convert HTML file into XML file.
But, Unfortunatelly didnt get the exact result.
If anyone have a sample code please share with me.
Any suggestions greatly appreciated.
Thanks,
VeeraYou can have a look at [http://sourceforge.net/projects/light-html2xml|http://sourceforge.net/projects/light-html2xml]
-
Trouble Sending HTML Form Data
I've been tasked with replicating the following HTML in actionscript for the integration of a flash frontend onto an existing cart system:
HTML Code:
<form name="campaign" method="post" action="https://www.client.net/portal/site/client/template.APPFORM?app=CL_OC">
<input type="hidden" name="campaignSnippet" id="campaignSnippet" value="<campaign trackingCode="testing" xmlns="campaign"><ATONCE><styleColor number="123456-789"/></ATONCE></campaign>"/>
</form>
Now, I've been able to build the value string without any issues, but getting it to post successfully to the server is what's giving me problems. I've been able to use the above code in an HTML page to post the item to the cart successfully, but my code in AS3 (below) isn't successful:
ActionScript Code:
var sendOrder:URLRequest = new URLRequest( "https://www.client.net/portal/site/client/template.APPFORM?app=CL_OC" );
sendOrder.method = URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();
variables.type = "hidden";
variables.name = "campaignSnippet";
variables.id = "campaignSnippet";
variables.value = encodeURIComponent(stringBuilder);
sendOrder.data = variables;
sendToURL(sendOrder);
(stringBuilder is the value string from the HTML snippet above)
What am I doing wrong in building the HTTP request?
Thanks in advance for any help you can throw my way!Try:
var sendOrder:URLRequest = new URLRequest( "https://www.client.net/portal/site/client/template.APPFORM?app=CL_OC" );
sendOrder.method = URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();
variables.type = "hidden";
variables.name = "campaignSnippet";
variables.id = "campaignSnippet";
variables.value = encodeURIComponent(stringBuilder);
sendOrder.data = variables;
var loader:URLLoader = new URLLoader();
// loader.addEventListener(Event.COMPLETE, finished); // optional
loader.load(sendOrder); -
How to convert oracle report in html form into excel form?
Hi friends !! I m trying to convert oracle 10g report into excel form.Its coming in excel form but not with all formats.How to solve the problem?
Hello,
Please give us more information what kind of report(s). Sample example etc.,
Sri -
HTML form Date field - what's the best way to capture it on the backend?
Hi,
What would be a good way to capture a text field that contains a date string?
In my app I have a page with several text fields, that are populated by a calendar pop-up. On the server side I can capture them into a java.util.Date object, but Date is dperecated.
Should I still use Date or is there a better way?
I intend to use the date as part of an SQL query.
Thanks.The class java.util.Date is not itself deprecated, however several of its methods are.
For converting string -> date, you should use the class java.text.SimpleDateFormat. That allows you to specify format strings such as MM-dd-yyyy hh:mm:ss for converting date -> string -> date.
If you are wanting to set day/month/year on the date object directly, instead of the Date methods setDay, setMonth, setYear, you should instead use the java.util.Calender class:
calendar.set(Calendar.MONTH, 4);
The calendar can then be converted to a Date object by calling calendar.getTime().
If you are going to use the date as part of a sql query, I would recommend using a Prepared statement, and the java.sql.Date/java.sql.Timestamp class as well.
To convert from java.util.Date to java.sql.Date)
jva.util.Date utilDate = Calendar.getInstance().getTime();
java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());cheers,
evnafets -
AppendChild converts XML tags to HTML entities?!
I am working on an e4x statement. It is supposed to convert an XMLListCollection to a plain XML object. It ran without errors, but the destination object stayed blank. During debug I watched the variable value and found that as soon as the XML object ran the .appendChild command, all the appended XML content had its < and > characters replaced by < and > which I can only assume killed the XML and caused my new object to remain empty.
xmlTreeContents.appendChild(_modelListManagerTreeData.xmlTreeData);
xmlTreeContents is the XML object, _modelListManagerTreeData.xmlTreeData is an XMLListCollection.
A quick search turned up someone else with the same problem: http://stackoverflow.com/questions/2540414/flex-3-xml-remplacing-by-lt Unfortunately no one answered him, and I can't find another reference to this issue.
Has anyone here seen this problem, and can give me direction on what to do to solve it?
Thanks.
PaulI don't have a clue what is going on, but I found a way around it:
I was initially using
xmlTreeContents=<treeContents></treeContents>;
xmlTreeContents.appendChild(_modelListManagerTreeData.xmlTreeData);
and that caused the < > replacements.
Then I tried this and it works perfectly
var f:String="<treeContents>" + _modelListManagerTreeData.xmlTreeData.toXMLString() + "</treeContents>";
xmlTreeContents=XML(f);
Still confused, but hopefully this workaround can help someone else. -
HOW TO CONVERT A XML FILE TO HTML FILE FORMAT IN WINDOWS APPLICATION
Hi iam a fresher iam working on a project in that i should convert the data in xml file to html file. I dont have any idea regarding this can anyone help me how to convert the xml file to a html file format. I just written the code till how to read the xml
file. Now i stucked how to write the code for converting to html format.
Thanks and Regards,
Dileep.Hi iam a fresher iam working on a project in that i should convert the data in xml file to html file. I dont have any idea regarding this can anyone help me how to convert the xml file to a html file format. I just written the code till how to read the xml
file. Now i stucked how to write the code for converting to html format.
Thanks and Regards,
Dileep.
Hello,
For converting xml file to html, we could refer to the way shared in the following thread which uses an XSLT stylesheet to transform the XML into another format using the
XslTransform class.
http://www.codeproject.com/Articles/12047/How-to-Convert-XML-Files-to-HTML
Regards.
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Photoshop CS5 is unable to find the JavaScript plug-in.
I have been trying to run a number of actions in CS5 (Windows 7) and keep getting the error "Could not complete the command because Photoshop was unable to find the JavaScript plug-in." It does this with an action that was designed for me to put th
-
Manual for Printer deskjet 320 Product
I recently purchased a HP Deskjet 320 portable printer. On the bottom are the #'s Procuct C3005A Serial # {Personal Information Removed}. It did not have the instruction manual or cords. It was used only for a short time and put away in a bo
-
DYNPRO NOT FOUND - Runtime Error
A run time error "DYNPRO_NOT_FOUND" occurred while the ABAP program "SAPLCV130" was terminated. Error Analysis reports that system attempted to use dynpro 1231 in program "SAPLCV130" where in the dynpro did not exist. Can you provide us the options a
-
Need to add extra Payment modes in Claim Advance Request
Dear Friends, I need to add extra Payment modes such as Corporate Credit Card and Company Card options in Payment mode option dropdown list in ESS Claim Advance Request against a Reimbursement type. Below is the original thread created by me with sc
-
I am having trouble Crash in Safari
I am having trouble Crash in Safari after updating to the version iso5.1 in the iPhone