Tuesday, July 22, 2014

Restful Service in webMethods

 Create the Rest service from the designer

 then fallow below steps.


MTOM attachment in Webmethods.

Mtom attachment will work for only soap 1.2 version 
so that while creating wsdl choose the soap 1.2 version.
and in the WSDL enable the mtom attachment property true .
Please fallow the below steps for the attachments in Integration server:
1. Create a flow service 
2.pub.file.getFile 
   in the get file service pipeline  add the file location and loadAs bytes.
3.   convert the loded file into base 64 encoding format.
      pub.string.base64 encode 
     in the  base 64 encode pipeline set useNewLine field false.
4. create a xop object for encoded string.
    pub.soap.utils.createXop Object     
    in the createXop service pipeline provice the contentType 
  EX: MIME type of the file. 
         application/pdf
For same service create the WSDL .