I am having some trouble with WSO2AM-1.7. When I try to GET a resource such as:

{      "hello there" : "world"}

The mediation step does not work, because of the space in "hello there". I know 
XML element types cannot contain spaces in their names, and the error I'm 
getting suggests that's precisely what the program is trying to do. This must 
mean that the data is implicitly changed to XML, even though all my data is 
supposed to stay in JSON. 
I am using the messagebuilder and formatters:
<messageFormatter contentType="application/json"                          
class="org.apache.synapse.commons.json.JsonStreamFormatter"/>
<messageBuilder contentType="application/json"                        
class="org.apache.synapse.commons.json.JsonStreamBuilder"/>
Is there another message builder or formatter I should be using instead?

Thanks,

Maz                                       
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to