Hi, I was wondering if anyone's got JSON and REST working together.
I would like to send in a REST request and have the response be sent
in JSON.
I took the version sample and added the following two lines:
--- cut here ---
MessageContext mc = MessageContext.getCurrentMessageContext
().getOperationContext().getMessageContext
(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
mc.setProperty(Constants.Configuration.MESSAGE_TYPE, "application/
json");
--- cut here ---
What I got back was the following error:
<soapenv:Reason>
<soapenv:Text xml:lang="en-US">
Mapped formatted JSON with namespaces are not supported in Axis2.
Make sure that your request doesn't include namespaces or use the
Badgerfish convention
</soapenv:Text>
</soapenv:Reason>
Any idea what might be the problem?
thx
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]