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