I am able to send attachments(pdf,jpg) as inputs to a webService call . Using pub.soap.utils:getXOPObjectContent the attachments can be seen as bytes,64base string or stream . Now i want this attachment to be stored in some directory path . I passed the the output of pub.soap.utils:getXOPObjectContent to bytesTofile ans StreamToFile services giving appropriate file name but the file is not created . kindly let me know hpw this can be handled.