Hey -
I have a few things to add to the original conversation:
One really easy way to post XML to a flow service from an HTML form (without using JavaScript or anything) is to give the TEXTAREA (or whatever will hold your XML in the form) the name $xmldata. From GEAR’s XML Services Developer’s Guide:
[FONT=PalatinoLinotype][SIZE=2]
[/SIZE][/FONT]Here’s a simple example:
Given this, one can realize that it is possible (but not practical) to send XML to a flow service by including the XML in the URL itself. One of the challenges, however, is that the XML and the $xmldata tag must be URL-encoded. Here’s an example:
http://localhost:6155/invoke/postTest:receiveXml?%24xmldata=<SimpleXml>
<Element>Data<%2FElement>
<%2FSimpleXml>
This URL when “executed” will send the following XML to the postTest:receiveXml service:
Data
A bigger challenge, however, is that the length of the URL is usually limited by the browser, so this practice would most likely not work for large XML documents.
Now, dhimate, if all you want to do is to post plain text data to a flow service, then how about creating a flow service that takes a String variable as input, call it flatFileData, for example. Then, create an HTML form where the TEXTAREA name is the same as your variable name and the action is the URL to your service. Example:
When you submit the form, your input variable will be assigned the text from the TEXTAREA.
#webMethods#webmethods-Protocol-and-Transport#Integration-Server-and-ESB