Any chance you could wireshark this to see what really is being sent on the 
wire.   There really isn't any way that CXF should be sending that content-
type for a soap message.   

Note: also update to 2.2.3 if possible. (and 2.2.4 will be out early next 
week)

Dan

On Wed October 7 2009 2:46:31 pm dave derry wrote:
> I'm trying to create a SOAP client for an existing web service. I used the
> wsdl2java utility to generate a client from the project's wsdl. I am able
>  to populate a request, but when I submit it (running in Eclipse) I am
>  getting a 415 response code. When I check the application log it indicates
> "Unsupported Content-Type: application/x-www-form-urlencoded Supported ones
> are: [text/xml]".
> 
> I have searched for how to set the content-type, but haven't been able to
> find anything useful. I'm using CXF 2.2. Is there an easy way to accomplish
> this?
> 
> Thanks,
> Dave Derry
> 

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to