• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Method is annotated as BARE but it has more than one parameter bound to body.Please annotate WRAPPED

 
Greenhorn
Posts: 2
Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
That is a really big piece of pie for such a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic