axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manjula Peiris <manj...@wso2.com>
Subject Re: setting content-type
Date Sat, 18 Oct 2008 05:53:28 GMT
On Fri, 2008-10-17 at 13:17 -0400, Mark Webb wrote:
> I am new to Axis2c and have written a simple web service in NetBeans
> to test the Axis2c library.  I am able to connect to the web service,
> but I receive the following error message on the web service side:
> 
> Unsupported Content-Type: application/soap+xml;charset=UTF-8 Supported
> ones are: [text/xml]
> com.sun.xml.ws.server.UnsupportedMediaException: Unsupported
> Content-Type: application/soap+xml;charset=UTF-8 Supported ones are:
> [text/xml]
> 
> 
> I assume Axis2c can support text/xml, but how to I set this in the API?

You may need to send SOAP 1.1. you can do this by calling following
function in your client code.
axis2_options_set_soap_version(options, env, AXIOM_SOAP11);

> 
> Thanks
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message