Hi,
It should be very simple. I’m trying to create a TN document type using WMTN service,
wm.tn.doctype:add
For the input parameter, type (of Object type), i’ve created a document initially (document reference: wm.tn.rec:BizDocType) and populated the values necessary.
And i’ve converted that document to bytes,which is then passed as the input to the mentioned TN service < wm.tn.doctype:add> and i got the below error:
wm.tn.doctype:add
- *
-
<JavaClass>java.lang.ClassCastException</JavaClass>*
-
<Message>[B cannot be cast to com.wm.app.tn.doc.BizDocType</Message>*
-
<StackTrace>java.lang.ClassCastException: [B cannot be cast to com.wm.app.tn.doc.BizDocType*
- at wm.tn.doctype.add(doctype.java:204)*