Jasper175
14 years agoFrequent Contributor
XML Request through Groovy
Hello,
We have a task that falls outside the request methods that are contained in the wsdls. A developer created an xml file on a linux machine that contains this xml code that will set a customer to "Active":
Once we modify the code, we run this command:
QUESTION:
Any have any expertise in having the above process created in Groovy Script?
Thank you,
Rob
We have a task that falls outside the request methods that are contained in the wsdls. A developer created an xml file on a linux machine that contains this xml code that will set a customer to "Active":
<account_info>
<xsdVersion>2</xsdVersion>
<requestID>100003</requestID>
<accountNumber>100020516</accountNumber>
<userID>nov1_0850@vonage.com</userID>
<firstName>Nov</firstName>
<lastName>First</lastName>
<status>ACTIVE</status>
<fraudFlag>subscriber</fraudFlag>
<billingAddress>
<streetAddr1>23 Main St.</streetAddr1>
<city>Holmdel</city>
<state>NJ</state>
<postalCode>07733</postalCode>
<country>US</country>
</billingAddress>
</account_info>
Once we modify the code, we run this command:
curl -v -X PUT -d@setaccount_rlong.xml 'http://10.112.140.56:8080/slprovisioning/2/account/100020516'
QUESTION:
Any have any expertise in having the above process created in Groovy Script?
Thank you,
Rob