You’re right… I tried that too and it wouldn’t work so I found a way around the problem. I wrote a piece of java code (nothing much, just 4 lines really) to do this. I was hoping that there would be a better way to achieve this, but never got around researching for that ‘better’ way. In case you are interested, you can write something like this:
- Service takes ‘Length’ as an object input, which should be mapped from contentPart/Length
** This piece of code does not check for null value of the input, you might wanna include that check.
IDataCursor pCursor = pipeline.getCursor();
int len = ((Integer)IDataUtil.get(pCursor,“Length”)).intValue();
IDataUtil.put(pCursor,“Length”,len+“”);
pCursor.destroy();
HTH, Rohit
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services