Deepa,
When the partner posts document say XML via http/https trasnport basically you can give url [url]http://localhost:5555/invoke/wm.tn/receive[/url] (TN gateway service).
If your partner posts to a custom gateway flow service then the service input should be node(object)and the flow steps will be
pub.schema:validate(if you want to perform any schema/data validation)
XMLNodeToDocument(parses the XML document to IDATA structure for doing mapping)
Do Mapping to target format(canonical or EDI or FF)
As said please go thru the WM IS/Developer/TN documentation it helps lot…
HTH,
RMG
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services