cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulhas Bhole <ulhas.bh...@iona.com>
Subject Re: CXF rejected, Axis working
Date Fri, 04 Jul 2008 10:40:04 GMT
One more difference id Transfer-Encoding: chunked.
Can you try disabling chunking in CXF configuration?

Regards,

Ulhas Bhole

Bård Magnus Kvalheim wrote:
> Hi,
>
> I've exposing and consuming webservices with cxf.
> Everything works fine on my local setup.
>
> I've purchased tomcat hosting and deployed my webservice there.
>
> WS calls made from cxf clients are rejected by this server, but axis calls
> are accepted. (I get a 406 response, see below)
>
> I'm currently in dialog with the hosting company to figure out why it's
> rejected, but wanted to ask cxf community for input and workarounds as well.
>
>
> I've grabbed the request/response in both cases:
>
> #1 Apache cxf not working
>
> POST /instantlbs-core-0.0.1-SNAPSHOT/services/clientWS HTTP/1.1
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: ""
> Accept: *
> Cache-Control: no-cache
> Pragma: no-cache
> User-Agent: Java/1.6.0_06
> Host: instantlbs.com
> Connection: keep-alive
> Transfer-Encoding: chunked
>
>
> 1bd
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:getClient
> xmlns:ns1="http://client.api.common.instantlbs.com/"><ns2:arg0 xmlns="
> http://db.beans.common.instantlbs.com" xmlns:ns2="
> http://client.api.common.instantlbs.com/">magnus</ns2:arg0><ns2:arg1 xmlns="
> http://db.beans.common.instantlbs.com" xmlns:ns2="
> http://client.api.common.instantlbs.com/
> ">magnus</ns2:arg1></ns1:getClient></soap:Body></soap:Envelope>
>
> 0
>
>
>
> HTTP/1.1 406 Not Acceptable
> Date: Fri, 04 Jul 2008 09:14:10 GMT
> Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_jk/1.2.25
> mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
> Content-Length: 483
> Keep-Alive: timeout=5, max=100
> Connection: Keep-Alive
> Content-Type: text/html; charset=iso-8859-1
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>406 Not Acceptable</title>
> </head><body>
> <h1>Not Acceptable</h1>
> <p>An appropriate representation of the requested resource
> /instantlbs-core-0.0.1-SNAPSHOT/services/clientWS could not be found on this
> server.</p>
> <hr>
> <address>Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_jk/1.2.25
> mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at
> instantlbs.com Port 80</address>
> </body></html>
>
>
> #2 Axis working
>
> POST /instantlbs-core-0.0.1-SNAPSHOT/services/clientWS HTTP/1.0
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> User-Agent: Axis/1.4
> Host: instantlbs.com
> Cache-Control: no-cache
> Pragma: no-cache
> SOAPAction: ""
> Content-Length: 371
>
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
> http://www.w3.org/2001/XMLSchema" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getClient xmlns="
> http://client.api.common.instantlbs.com/
> "><arg0>magnus</arg0><arg1>magnus</arg1></getClient></soapenv:Body></soapenv:Envelope>
> HTTP/1.1 200 OK
> Date: Fri, 04 Jul 2008 09:38:00 GMT
> Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_jk/1.2.25
> mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
> SOAPAction: ""
> Content-Length: 661
> Connection: close
> Content-Type: text/xml;charset=UTF-8
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:getClientResponse
> xmlns:ns1="http://client.api.common.instantlbs.com/"><ns1:return><ns2:client_id
> xmlns:ns2="http://db.beans.common.instantlbs.com">12</ns2:client_id><ns2:firstname
> xmlns:ns2="http://db.beans.common.instantlbs.com">Magnus</ns2:firstname><ns2:lastname
> xmlns:ns2="http://db.beans.common.instantlbs.com">Kvalheim</ns2:lastname><ns2:password
> xmlns:ns2="http://db.beans.common.instantlbs.com">magnus</ns2:password><ns2:username
> xmlns:ns2="http://db.beans.common.instantlbs.com
> ">magnus</ns2:username></ns1:return></ns1:getClientResponse></soap:Body></soap:Envelope>
>
>
> I can see that axis provide more detailed headers like accept and
> Content-Length, but I'm not sure if that's what the server dislikes.
>
> Any thoughts are greatly appreciated.
> CXF integrates well into our product so I would rather use this over axis if
> possible.
>
> Thanks in advance
> Magnus Kvalheim
>
>   

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Mime
View raw message