Created
July 1, 2012 02:30
-
-
Save jdeoliveira/3026545 to your computer and use it in GitHub Desktop.
Groovy script to construct an Order object to call the WCF service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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