Do not use a standard text/ xml content - type. A client is not capable of handling this kind of information. Instea use a custom format in the following form:. Simple class for parsing and generating Content - Type header values, per RFC 2045.
A ContentType constant that describes the application/ xml content type. RESTEASY003145: Unable to find a MessageBodyReader of content - type application/ xml and type interface java. By default, your XML will include most content types , each with its own individual in the XML index.
If you perform a trece t l action on the entire xML object, you now get this:. The contentType property is used to read or set the content type of the xML object . Set content - type and accept headers. The HTTP Content - Type header field is intended to indicate the MIME type.
A scriptable MIME type is an XML MIME type, HTML MIME type, . For example, with the header set to Accept: text/ xml the resource would be.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.