I have done some changes in xml.
I am setting the content in the form of byte array and passing in method.setRequestBody().
I am getting the following error :
(in classpath store file:E:/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': Wrapped org.apache.abdera.parser.ParseException: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character (NULL, unicode 0) encountered: not valid in any content
Isn't it possible to send the content as byte arrays through XML.