Webservice issue in cq5 - [A WebService annotation is not present on class] | Community
Skip to main content
New Participant
October 16, 2015
Solved

Webservice issue in cq5 - [A WebService annotation is not present on class]

  • October 16, 2015
  • 1 reply
  • 668 views

Hi Team,

I was working on SOAP JAX-WS with CQ5. I was trying the example available on link "http://cqblog.inside-solutions.ch/2013/11/01/consuming-soap-web-service-with-jax-ws-in-cq5-6-1/". I used the command "wsimport -keep -verbose http://www.w3schools.com/webservices/tempconvert.asmx?wsdl" to generate the stubs. When i am calling this below line in my WebServiceClient class, i am getting error as "A WebService annotation is not present on class: com.mercer.jaxws.TempConvertSoap". TempConvertSoap is a proxy class.

*line :- return super.getPort(new QName("http://www.w3schools.com/webservices/", "TempConvertSoap"), TempConvertSoap.class);

i am adding the below dependencies to resolve the required jars in maven pom.xml :-

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
    <version>1.1.2</version>
</dependency>


<dependency>
    <groupId>javax.xml.ws</groupId>
    <artifactId>jaxws-api</artifactId>
    <version>2.2.8</version>
</dependency>

Please provide pointers on the same.

Thanks, Kiran Parab

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

We have AEM/Web Service articles that use JAX-WS and Apache CXF and uses an Eclipse Plug-in project. 

1 - http://helpx.adobe.com/experience-manager/using/creating-cq-bundles-consume-web.html (uses JAX-WS)

2 - http://helpx.adobe.com/experience-manager/using/creating-cxf-bundles-consume-web.html (uses Apache CXF)

The article that you referenced is a non-Adobe article. I recommend asking that community member about questions related to that article. That is, leave a question on their blog. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

We have AEM/Web Service articles that use JAX-WS and Apache CXF and uses an Eclipse Plug-in project. 

1 - http://helpx.adobe.com/experience-manager/using/creating-cq-bundles-consume-web.html (uses JAX-WS)

2 - http://helpx.adobe.com/experience-manager/using/creating-cxf-bundles-consume-web.html (uses Apache CXF)

The article that you referenced is a non-Adobe article. I recommend asking that community member about questions related to that article. That is, leave a question on their blog.