Patryk Molek

Greenhorn
+ Follow
since May 24, 2014
Patryk likes ...
Ubuntu
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Patryk Molek

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

9 years ago
I am having a problem with Web Service annotations, namely I have a Web Service application with following interface defined :



And the service code :




For me the `downloadOperation` is important. From the wsdl that I have defined for that service I have created with `wsdl2java` some client code. I am trying to use it as follows




but I get the following exception :

Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: SEI gov.loc.zing.srw.interfaces.SRWPort has method downloadOperation annotated as BARE but it has more than one parameter bound to body. This is invalid. Please annotate the method with annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)


I am really confused and I do not know how to resolve this issue. Any suggestions ?

When I change the annocation of `dowloadOperation` to `WRAPPED` then on deploy or tomcat start I get this :

May 25, 2014 1:54:26 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://www.loc.gov/zing/srw/srwabosi/}SRWABOSI from WSDL: wsdl/srw-abosi-service.wsdl
May 25, 2014 1:54:41 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean initializeClassInfo
WARNING: Could not unwrap Operation {http://www.loc.gov/zing/srw/interfaces/}DownloadOperation to match method "public abstract void gov.loc.zing.srw.interfaces.SRWPort.downloadOperation(java.la
ng.String,java.lang.String,org.w3._2000._09.xmldsig.KeyInfoType,javax.xml.ws.Holder,javax.xml.ws.Holder,javax.xml.ws.Holder)"
May 25, 2014 1:54:41 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
May 25, 2014 1:54:41 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/abosi] startup failed due to previous errors

9 years ago