axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-4427) axis sends soap messages on error in http binded services
Date Thu, 24 Jul 2014 02:57:39 GMT

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

Martin Gainty commented on AXIS2-4427:
--------------------------------------

JAX-WS supports RPC or DOC-LITERAL styles in @SoapBinding
http://www.mkyong.com/webservices/jax-ws/jax-ws-hello-world-example-document-style/

if you want rest calls bound to HTTP Methods implement JAX-RS
http://www.mkyong.com/tutorials/jax-rs-tutorials

Good Luck
Martin

> axis sends soap messages on error in http binded services
> ---------------------------------------------------------
>
>                 Key: AXIS2-4427
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4427
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: fedora 11 openjdk 1.6 tomcat 6
>            Reporter: Christoph Höger
>
> I have the followoing POJO deployed:
> @WebService(name="counterService", targetNamespace="http://www.umpa-net.de/services/counterService")
> @BindingType(value=HTTPBinding.HTTP_BINDING)
> public class Service {
> 	
> 	    @WebMethod(operationName = "echoMethod")
> 	    public String echoString(@WebParam(name="stringIn")String s){
> 	        return s;
> 	    }
> 	    
> 	    @WebMethod(operationName = "greeting")
> 	    public String sendGreeting() {
> 	    	return "Hello from a webservice, Mareike!";
> 	    }
> }
> Invoking: http://192.168.2.106:8080/axis2/services/ServiceService/echoMethod?inString=Hallo
> works as expected, but the error case
> http://192.168.2.106:8080/axis2/services/ServiceService/echoMethod
> returns: 
> <soapenv:Reason>
> <soapenv:Text xml:lang="en-US">java.lang.NullPointerException</soapenv:Text>
> </soapenv:Reason>
> Why do I get SOAP stuff on http binded services? Shouldn't that be plain text?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
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