Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8247373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:49:45+00:00 2026-06-07T22:49:45+00:00

For a project I’m implementing a SOAP service using Apache Axis2 1.6.2. I have

  • 0

For a project I’m implementing a SOAP service using Apache Axis2 1.6.2. I have a service which needs to receive a file using MTOM. But sadly I keep having issues with receiving a MTOM attached file. I keep getting the exception:

org.apache.axiom.om.OMException: A data handler was not found for content id cid:491414508823

….

I’ve tried to search the web for an answer, but was not succesful. I hope someone can get me in the right direction. My wsdl contains the following snippet:

...
<xs:element minOccurs="0" name="PDF_Attachment">
  <xs:complexType>
     <xs:all>
         <xs:element minOccurs="0" name="PDF_AttachmentName" type="xs:string"/>
         <xs:element name="PDF_AttachmentContent" type="xs:base64Binary"/>
     </xs:all>
   </xs:complexType>
</xs:element>
...

I use SoapUI to generate the request and have set the property ‘use MTOM’ to true.

Is there anyone who has encountered the same problem or knows how to solve this. Help would be greatly appreciated!

Richard

UPDATE

I think I’ve tackled the problem. The issue was within my xsd/wsdl definitions. I used jaxb to convert my business objects defined in external xsd’s to POJO with JAXB annotations. But the xs:base64Binary was converted as byte[]. Changing the xsd with:

<xs:schema ... xmlns:xmime="http://www.w3.org/2005/05/xmlmime"> ...

And changing the element to:

<xs:element name="PDF_AttachmentContent" minOccurs="1" maxOccurs="1" type="xs:base64Binary" xmime:expectedContentTypes="application/octet-stream">

JAXB now created a DataHandler as return type in the getPDF_AttatchmentContent. The only issue I have to tackle is to allow SOAPUI to send the MTOM attachments. Somehow A testclient I’ve created works perfectly, but SOAPUI does not send the attachment…

Source for the solution above: http://cxf.apache.org/docs/mtom-attachments-with-jaxb.html

UPDATE 2:
http://ssagara.blogspot.nl/2012/03/test-axis2-jax-ws-mtom-service-using.html solved my SOAPUI issues with MTOM. I did not edit the correct cid in my soap message. I assumed that SOAPUI would assist me with that, but it didn’t.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:49:47+00:00Added an answer on June 7, 2026 at 10:49 pm

    The details of the solution are in the original message above. The issues were resolved using the following two sites:

    1. DataHandler issue: http://cxf.apache.org/docs/mtom-attachments-with-jaxb.html
    2. SoapUI issue: http://ssagara.blogspot.nl/2012/03/test-axis2-jax-ws-mtom-service-using.html

    I hope this is helpful for some of you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My project have no visible error but when i try to run it gives
Project Requirements: I need to build a web service that will receive chunks of
Project Description: I have to make an application in android which gets the Latitude
My project is currently using a svn repository which gains several hundred new revisions
Project: ASP.NET 3.5 with C# I have this much :- A table which used
My Project have two Screen in which Activity A and Activity B. Activity A
My project directory contains a CMakeLists.txt file and src and include directories at its
This project was coped almost exacatly from the example on the admob page but
My project is ARC enabled (the build settings have Objective-C Reference Counting set to
This project is in Obj-C for iphone. I'm using the double float version of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.