Hello,
But how can I consume the XML data from WSDL...
You don't need to consume xml data from WSDL. It will be automatic process.
Where I have to write the code..
Once AMT consume the web service and calls it, SAP will receive a service call then it calls the corresponding FM, so whatever logic is written in FM that will be executed and results will be returned to service back.