axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Supun Kamburugamuva" <supu...@gmail.com>
Subject Re: setting content-type
Date Tue, 21 Oct 2008 04:17:22 GMT
Hi Mark,

When you set the SOAP version to 1.1 the content type should be text/xml.
Can you please capture the HTTP messages and send? You can use a tool like
TCPmon to capture the messages.

Supun.

On Tue, Oct 21, 2008 at 12:19 AM, Mark Webb <elihusmails@gmail.com> wrote:

> Thanks for the help, but I am still getting the similar problems.
> Below are the 2 settings I am using and the errors on the server.  The
> web service is one that I wrote as a tester in NetBeans using JDK1.6.
>
> AXIOM_SOAP11
> 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]
>
> AXIOM_SOAP12
> 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]
>
> Thanks
> Mark
>
>
>
> On Sat, Oct 18, 2008 at 1:53 AM, Manjula Peiris <manjula@wso2.com> wrote:
> > 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
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>


-- 
Software Engineer, WSO2 Inc
http://wso2.org

Mime
View raw message