axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josef Stadelmann (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-3817) JAXWS error occurs when invoking java-first service in RESTful manner
Date Wed, 28 Mar 2012 13:56:25 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240417#comment-13240417
] 

Josef Stadelmann commented on AXIS2-3817:
-----------------------------------------

In previous comment
Endpoint failed validation :: :: There is a mismatch between the wsdl and annotation information.
Please make sure both use the same binding namespace. The wsdl is [SOAP 1.1 HTTP Binding]namespace
= {http://schemas.xmlsoap.org/wsdl/soap/}. The annotation is [XML HTTP Binding]namespace =
{http://www.w3.org/2004/08/wsdl/http}.,

I change the annotation to @BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/")

Now the result is bad again
754151 [Timer-4] INFO  org.apache.axis2.jaxws.framework.JAXWSDeployer  - Deploying artifact
: C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.26\webapps\axis2\WEB-INF\servicejars\jaxws-version-1.6.1.jar
754198 [Timer-4] INFO  org.apache.axis2.jaxws.framework.JAXWSDeployer  - Exception creating
Axis Service : null
javax.xml.ws.WebServiceException: The ServiceDescription failed to validate due to the following
errors -- Validation Phase 2 failure:  :: Endpoint failed validation ::  :: Invalid annotation
binding value specified: http://schemas.xmlsoap.org/wsdl/soap/, Failing composite: org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite@3813c

So what is the proper action to get that simple example run in RESTmanner?
Josef
                
> JAXWS error occurs when invoking java-first service in RESTful manner
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-3817
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3817
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.4
>         Environment: Axis2-1.4, jdk15, winxp
>            Reporter: Charitha Kankanamge
>            Assignee: Isuru Eranga Suriarachchi
>            Priority: Critical
>         Attachments: ExamplePOJOService.jar
>
>
> Following error is thrown when invoking a java-first jaxws based service in RESTful manner.
> [ERROR] An error was detected during JAXWS processing
> org.apache.axis2.AxisFault: An error was detected during JAXWS processing
>         at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:187)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>         at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>         at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
>         at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:257)
>         at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
>         at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
>         at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
>         at java.lang.Thread.run(Thread.java:595)
> Steps to reproduce:
> ================
> 1. Deploy the attached service on Axis2server
> It includes the following jaxws annotated class
> package org.test;
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> @WebService
> public class ExamplePOJOService {
> 	@WebMethod
> 	public String reverse(String input) {
> 		StringBuffer buff = new StringBuffer();
> 		for (int i=input.length()-1; i>=0; i--) {
> 			buff.append(input.charAt(i));
> 		}
> 		return buff.toString();
> 	}
> }
> 2. Invoke the service in REStful manner
> http://10.100.1.150:8080/axis2/services/ExamplePOJOServiceService.ExamplePOJOServicePort/reverse?input=hello
> I copied jaxws-tools.jar and jaxws-rt.jar into Axis2/lib directory. However, I'm still
getting the same error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message