• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat: Attachments of type class org.w3._2001._04.xmlenc.EncryptedDataType are not supported.  RSS feed

 
Patryk Molek
Greenhorn
Posts: 2
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to send encrypted with AES file contents - represented in Java as byte[]. For now I have tried to use the following:




but after successful packing my file into the container (file parameter) I got this in Tomcat:


WARNING: Interceptor for {http://www.loc.gov/zing/srw/srwabosi/}SRWABOSI#{http://www.loc.gov/zing/srw/interfaces/}DownloadOperation has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Attachments of type class org.w3._2001._04.xmlenc.EncryptedDataType are not supported.
at org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.processAttachments(SwAOutInterceptor.java:226)
at org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.handleMessage(SwAOutInterceptor.java:144)
....


Which mime type should I use to send it?

I am using org.w3._2001._04.xmlenc.EncryptedDataType as follows to pack it in the file parameter:




http://www.w3.org/2001/04/xmlenc

EncryptedDataType



EncryptedType

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!