[ 
http://issues.apache.org/jira/browse/AXIS2-1721?page=comments#action_12454211 ] 
            
Ryan Groe commented on AXIS2-1721:
----------------------------------

I realize that there are likely a bunch of causes for this and I am an axis 
novice, but I was able to fix this problem by setting 
enableRESTInAxis2MainServlet to false (which is the default value).  I had set 
it to true to do some quick web testing and didn't realize it would be a 
problem.

> Invalid content type on request
> -------------------------------
>
>                 Key: AXIS2-1721
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1721
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1
>            Reporter: Russell J. Nile
>
> I'm not sure if this is a bug but I am receiving a remote exception 
> indicating:
> org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n 
> application/x-www-form-urlencoded/n multipart/related; nested exception is: 
>       org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n 
> application/x-www-form-urlencoded/n multipart/related
> the content-type set on the request is set to "application/soap+xml"
>  >> "POST /O2CServiceContainer/services/EventRecorder HTTP/1.1[\r][\n]"
> =,2006-11-16, 07:34:44:715, [main], Adding Host request header
> =,2006-11-16, 07:34:44:730, [main], >> "User-Agent: Axis2[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Host: localhost:9080[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Transfer-Encoding: chunked[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "Content-Type: application/soap+xml; 
> charset=UTF-8;action="urn:recordEvent";[\r][\n]"
> =,2006-11-16, 07:34:44:730, [main], >> "[\r][\n]"
> I'm not sure what I can do to change this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to