• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.activation. UnsupportedData TypeException

 
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to pass an object String [] as a soap attachment.

Reading the docs, if I pass a parameter as type datahandler, it is automatically treated as an Attachment.

I used the constructor DataHandler (Object obj, String mimeType)

where the object was my StringArray, and MIME is the XML representation of
a java type, which according to weblogic docs is NMTOKENS,IDREF or ENTITIES.

It threw the same error for the other two.

Am I using DataHandler correctly, is MIME the SOAP representation of the Java Object in memory.

Thanks for any help

Tony



my code was as follows:
DataHandler dh = new DataHandler (attachments, "ENTITIES");
String [] results = port.scanForViruses(dh);

This threw the following exception:

<bea_fault:stacktrace xmlns:bea_fault="

http://www.bea.com/servers/ wls70/webservice/fault/1.0.0">

javax.activation.UnsupportedDataTypeException:

no object DCH for MIME type ENTITIES
reply
    Bookmark Topic Watch Topic
  • New Topic