Skip to content

Instantly share code, notes, and snippets.

@jdeoliveira
Created July 1, 2012 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdeoliveira/3026545 to your computer and use it in GitHub Desktop.
Save jdeoliveira/3026545 to your computer and use it in GitHub Desktop.
Groovy script to construct an Order object to call the WCF service
import com.mulesoft.wcfconsumer.*;
ObjectFactory of = new ObjectFactory();
Order o = of.createOrder();
o.setProductId(of.createOrderProductId(payload['productCode']));
o.setQuantity(of.createOrderQuantity(payload['qty']));
return o;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment