The EZ_SoapReader application can be used to query any available information from the MES application. It is a simple application that just creates the SOAP HTTP POST message as described in the previous chapter. From the returned SOAP message it decodes the file and saves it at the defined location.
Any MES Query you define in the EZ_SoapReader can be saved to file. Just save it as .txt. file by pressing the SAVE button. You will be able to load it back into the EZ_SoapReader by pressing the LOAD button and then execute it.
If you save the preconfigured sample (Press the Sample button to load the preconfigured sample) to a txt file you will get a text file with the following content:
{"arJSColm":"[{\"sTyp\":\"jobname\",\"sNm\":\"sJob\",\"sFilterValue\":\"\",\"sTitle\":\"No\"}]","o":"{\"sFlowName\":\"FR_Flow\"}","arCheckVals":"null","oSort":"null"}
This file is in JSON notation, see more about JSON in Chapter 2. Please note that all the MES Query arguments are combined as arguments for a single JSON object. Furthermore the ‘S_’ prefix as used in the SOAP request and EZ_SoapReader is removed for the argument names.
The EZ_SoapReader is using the EZ_SoapReader.exe.config file to store the web address for the web server. Change this address to match the MES application you would like to connect to.
You can check if it works by entering the address into a browser: http://xxx.eazyworks.com
Below the content of the config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="EZ_SoapReader.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<applicationSettings>
<EZ_SoapReader.Properties.Settings>
<setting name="EZ_SoapReader_EZ_SOAP_EazyWebService" serializeAs="String">
<value>http://mes.acme.com/EazyWebService.asmx</value>
</setting>
</EZ_SoapReader.Properties.Settings>
</applicationSettings>
</configuration>
Useful Links
- General SOAP Information
- Making Your First Client / Web Service Connection
- SOAP Instruction Set
- MES Query Syntax
- MES Objects
- MES Data Structure
- Example MES Queries
- Use Fiddler to get MES Queries