Forum Discussion

deepalip's avatar
Regular Visitor
7 years ago

Adding attachments on xsd:hexBinary gives unmarshalling error.

Hi folks,

I tried using open source Soap UI to send attachments.

My xsd is defined as follows    <element name = "attachment" type="xsd:hexBinary" xmlns:xsd=""/ >.

My requirement is to send attachment using MTOM. For that I set mtom = true in request properties and used mtompolicy to force all requests to MTOM. I get the following error for attachments in hexBinary.

Unmarshalling Error: java.lang.IllegalArgumentException: contains illegal character for hexBinary: PCFET0NUWVBFIGh0bWwgUFVCT ..... I used cxf 3.1.6 stack to create request service. 



Deepali Pathak

No RepliesBe the first to reply