On Wed, Oct 7, 2009 at 12:22 PM, kondapalli <kondapallipa...@gmail.com>wrote:
> > thanks Isure , i will try with "RawXMLINOutMessageReceiver " receiver > If you want some more details on this, have a look at this post in which I've explained this matter in bit more details.. http://isurues.wordpress.com/2009/10/06/how-to-use-axis2-json/ Thanks, ~Isuru > > > Isuru Suriarachchi wrote: > > > > Hi Pavan, > > > > I think you are using a POJO service with the RPCMessageReceiver. This > > doesn't work with JSON. You can only use the RawXMLINOutMessageReceiver > > and > > you have to get an OMElement as the parameter in your method. > > > > You can have an idea about this by loking at the JSONIntegration test > at.. > > > > > https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/json/test/org/apache/axis2/json/Echo.java > > > > Thanks, > > ~Isuru > > > > On Wed, Sep 30, 2009 at 10:59 AM, kondapalli > > <kondapallipa...@gmail.com>wrote: > > > >> > >> Hi > >> > >> I am facing “namespace mismatch” problem while calling axis2 service as > >> content type is JSON > >> > >> I tried with > >> > >> 1. Valid name space > >> 2. I made element as unqualified in service.xml <schema > >> elementFormDefaultQualified="false"/> > >> 3. Two notations badgerfish and mapped > >> > >> Even then I am getting same error. > >> > >> Here I copied the requests and responses > >> > >> I am using axis2-1.5, tomcat 5.0 and also I have attached my axis2.xml > , > >> client and .aar file > >> > >> I was struck, Can any one help me please > >> > >> > >> Request -- badgerfish > >> > >> > >> POST http://localhost:8080/axis2/services/Test/testRequest HTTP/1.1 > >> Content-Type: application/json/badgerfish; charset=UTF-8 > >> User-Agent: Axis2 > >> Proxy-Authorization: Basic Og== > >> Host: localhost:8080 > >> Proxy-Connection: Keep-Alive > >> Transfer-Encoding: chunked > >> > >> 23 > >> {"testRequest":{"in":{"$":"json"}}} > >> 0 > >> > >> > >> > >> Response > >> > >> HTTP/1.1 500 Internal Server Error > >> Content-Type: application/json/badgerfish;charset=UTF-8 > >> Transfer-Encoding: chunked > >> Date: Tue, 29 Sep 2009 08:14:41 GMT > >> Server: Apache-Coyote/1.1 > >> Connection: close > >> > >> f1 > >> {"Fault":{"$":"<soapenv:Fault > >> xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org > >> > \/soap\/envelope\/\"><faultcode>soapenv:Server<\/faultcode><faultstring>namespace > >> mismatch require http:\/\/simple found <\/faultstring><detail > >> \/><\/soapenv:Fault>"}} > >> 0 > >> > >> > >> Request -- badgerfish > >> > >> > >> POST http://localhost:8080/axis2/services/Test/testRequest HTTP/1.1 > >> Content-Type: application/json/badgerfish; charset=UTF-8 > >> User-Agent: Axis2 > >> Proxy-Authorization: Basic Og== > >> Host: localhost:8080 > >> Proxy-Connection: Keep-Alive > >> Transfer-Encoding: chunked > >> > >> 4f > >> > >> > {"ns:testRequest":{"@xmlns":{"ns":"http:\/\/simple"},"ns:in":{"$":"testdata"}}} > >> > >> 0 > >> > >> > >> Response > >> > >> HTTP/1.1 500 Internal Server Error > >> Content-Type: application/json/badgerfish;charset=UTF-8 > >> Transfer-Encoding: chunked > >> Date: Tue, 29 Sep 2009 08:16:01 GMT > >> Server: Apache-Coyote/1.1 > >> Connection: close > >> > >> f1 > >> {"Fault":{"$":"<soapenv:Fault > >> xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org > >> > \/soap\/envelope\/\"><faultcode>soapenv:Server<\/faultcode><faultstring>namespace > >> mismatch require http:\/\/simple found <\/faultstring><detail > >> \/><\/soapenv:Fault>"}} > >> 0 > >> > >> > >> > >> Request – mapped > >> > >> POST http://localhost:8080/axis2/services/Test/testRequest HTTP/1.1 > >> Content-Type: application/json; charset=UTF-8 > >> User-Agent: Axis2 > >> Proxy-Authorization: Basic Og== > >> Host: localhost:8080 > >> Proxy-Connection: Keep-Alive > >> Transfer-Encoding: chunked > >> > >> 1d > >> {"testRequest":{"in":"json"}} > >> 0 > >> > >> > >> Response > >> > >> HTTP/1.1 500 Internal Server Error > >> Content-Type: application/json;charset=UTF-8 > >> Transfer-Encoding: chunked > >> Date: Tue, 29 Sep 2009 08:18:16 GMT > >> Server: Apache-Coyote/1.1 > >> Connection: close > >> > >> eb > >> {"Fault":"<soapenv:Fault > >> xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org > >> > \/soap\/envelope\/\"><faultcode>soapenv:Server<\/faultcode><faultstring>namespace > >> mismatch require http:\/\/simple found <\/faultstring><detail > >> \/><\/soapenv:Fault>"} > >> 0 > >> > >> > >> Request – mapped > >> > >> > >> POST http://localhost:8080/axis2/services/Test/testRequest HTTP/1.1 > >> Content-Type: text/javascript; charset=UTF-8 > >> User-Agent: Axis2 > >> Proxy-Authorization: Basic Og== > >> Host: localhost:8080 > >> Proxy-Connection: Keep-Alive > >> Transfer-Encoding: chunked > >> > >> 1d > >> {"testRequest":{"in":"json"}} > >> 0 > >> > >> > >> Response > >> > >> HTTP/1.1 500 Internal Server Error > >> Content-Type: text/javascript;charset=UTF-8 > >> Transfer-Encoding: chunked > >> Date: Tue, 29 Sep 2009 08:20:33 GMT > >> Server: Apache-Coyote/1.1 > >> Connection: close > >> > >> eb > >> {"Fault":"<soapenv:Fault > >> xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org > >> > \/soap\/envelope\/\"><faultcode>soapenv:Server<\/faultcode><faultstring>namespace > >> mismatch require http:\/\/simple found <\/faultstring><detail > >> \/><\/soapenv:Fault>"} > >> 0 > >> > >> > >> http://www.nabble.com/file/p25675229/axis2.xml axis2.xml > >> http://www.nabble.com/file/p25675229/Client.java Client.java > >> http://www.nabble.com/file/p25675229/test.aar test.aar > >> > >> > >> Thanks > >> -Pavan > >> -- > >> View this message in context: > >> > http://www.nabble.com/I-have-a-problem-with-Axis2--Json-%3A%E2%80%9Cnamespace-mismatch%E2%80%9D-tp25675229p25675229.html > >> Sent from the Axis - Dev mailing list archive at Nabble.com. > >> > >> > > > > > > -- > > Senior Software Engineer, > > WSO2 Inc. http://wso2.org/ > > Blog : http://isurues.wordpress.com/ > > > > > > -- > View this message in context: > http://www.nabble.com/I-have-a-problem-with-Axis2--Json-%3A%E2%80%9Cnamespace-mismatch%E2%80%9D-tp25675229p25781383.html > Sent from the Axis - Dev mailing list archive at Nabble.com. > > -- Senior Software Engineer, WSO2 Inc. http://wso2.org/ Blog : http://isurues.wordpress.com/