Below is sample configuration on how to complete the Action Type API. This configuration is bascially the building blocks for the SOAP Envelope needed. The following configuration will write to two seperate Name-Values based on the Part Record ID.
Keep in mind the way Actions work in EZ-MES. It can be used to make API calls onto EZ-MES itself, or be used to make API calls to external applications.
This Action will fire based on a successful Trigger fired from the Event Configuration.
URL:
http://gemini.eazyworks.com/eazywebservice.asmxURL Proxy:
SOAPAction:
"http://eazyworks.com/mWriteNVValueToPRID"ContentType:
text/xml; charset=utf-8
Method:
POST
Timeout:
1000
Accept:
text/xml
SOAP XML:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<mWriteNVValueToPRID xmlns="http://eazyworks.com">
<sUser>vsalazar</sUser>
<sPassKey>m9V1qzGVSXeSt/2Y3/vWmk8cAzdYNtoxaMmRW3k97lUTAJVVBZc1aA==</sPassKey>
<S_o>{
"arPRID": [
[
{
"sPRID": "PR13-000000040",
"NV13-000000031": {
"sNewVal": "1"
},
"NV13-000000032": {
"sNewVal": "1"
}
}
]
}</S_o>
</mWriteNVValueToPRID>
</soap:Body>
</soap:Envelope>