Forum Discussion

schauhan's avatar
schauhan
New Contributor
8 years ago

WCF Service is unable to parse MTOM generated by Soap UI

We have a WCF service that consumes MTOM and saves it to the database. I have enabled MTOM on my Soap UI request and added attachment, but WCF service is responding back with error "Malformed Header" when trying to deserialize MTOM. Any help will be appreciated to get this issue sorted. Are there any setting sin Soap UI that I can set-up header for the attachment?

2 Replies

  • Can you verify that the attachment is sent as MTOM? Switch to Raw tab to see the request you send.

    Some possible issues:

    • Is the attachment Type XOP? Otherwise Ready! API might be using MIME instead.
    • Other possible issue is that you did not specify the Part to attach the request to:https://staging-support.smartbear.com/readyapi/docs/_images/projects/requests/attachments/soap-part.png