Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HTML Form Submit with jQuery AJAX</title>
<!-- import jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
<global-element name="json_to_case" type="http://www.mulesoft.org/schema/mule/ee/data-mapper/config" entity-id="DataMapper#2">
<properties>
<property name="name" value="json_to_case"/>
<property name="transformationGraphPath" value="json_to_case.grf"/>
<property name="auxiliary;index" value="6"/>
</properties>
</global-element>
<flow SubFlow="false" name="tweets" type="http://www.mulesoft.org/schema/mule/core/flow" entity-id="3410dee6-d10a-4c16-b8ed-6dd3f0bb74c9">
<properties>
<property name="initialState"/>
[org.codehaus.jettison.json.JSONException: Expected a ',' or '}' at character 417 of {"plan":{"active":true,"description":"function (e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)}","name":"function (e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)}","price":function (e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)}}}]
at org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider.readFrom(AbstractJAXBProvider.java:105)
log:
**********************************************************************
* Application: testecrm *
* OS encoding: Cp1252, Mule encoding: UTF-8 *
* *
* Agents Running: *
* DevKit Extension Information *
* Clustering Agent *
* JMX Agent *
**********************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="CurrencyExchangeVFS"
transports="vfs"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full"/>
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="CurrencyExchangeVFS"
transports="vfs"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full"/>
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="tr_currencyconverter"
transports="vfs"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full"/>
<api xmlns="http://ws.apache.org/ns/synapse" name="ClimaAPIV2" context="/api/v2/clima">
<resource methods="GET" uri-template="/{country}/{city}">
<inSequence>
<log level="full"></log>
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"></property>
<payloadFactory media-type="xml">
<format>
<ws:GetWeather xmlns:ws="http://www.webserviceX.NET">
<ws:CityName>$1</ws:CityName>
<ws:CountryName>$2</ws:CountryName>
@edgars
edgars / gist:03f1293adc616c504d37
Created May 22, 2015 17:31
smooks-config-csv.xml
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
<!--Configure the CSVParser to parse the message into a stream of SAX events. -->
<resource-config selector="org.xml.sax.driver">
<resource>org.milyn.csv.CSVParser</resource>
<param name="fields" type="string-list">name,description</param>
</resource-config>
</smooks-resource-list>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="databaseSequence">
<log level="full">
<property name="sequence" value="before-smooks"></property>
</log>
<smooks config-key="smooks-csv">
<input type="text"></input>
<output type="xml"></output>
</smooks>
<log level="full">
<property name="sequence" value="after-smooks"></property>