Hi Experts,
We are currently integrating the AII system with ECC using PI as a middleware. We are trying to post one type of message in AII which will check the tag event in that message and do the required action in AII.
Now point is AII team is expecting a PML mesage as below -
<?xml version="1.0" encoding="utf-8" ?>
- <pmlcore:Sensor xmlns:pmlcore="urn:autoid:specification:interchange:PMLCore:xml:schema:1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:autoid:specification:interchange:PMLCore:xml:schema:1 ./PML/SchemaFiles/Interchange/PMLCore.xsd">
<pmluid:ID xmlns:pmluid="urn:autoid:specification:universal:Identifier:xml:schema:1" />
- <pmlcore:Observation>
<pmlcore:DateTime>2012-02-08T16:41:26.760</pmlcore:DateTime>
<pmlcore:Command>TAG_DECOM_BATCH</pmlcore:Command>
- <pmlcore:Data>
- <pmlcore:XML>
<PRODUCT>TRN_PROD_13</PRODUCT>
<BATCH_ID>ATRN_PROD13B</BATCH_ID>
<LogicalDeviceID>DG_AMBOISE_LINE_1</LogicalDeviceID>
</pmlcore:XML>
</pmlcore:Data>
</pmlcore:Observation>
</pmlcore:Sensor>
And they have also provided the standard PML message xsd to us but when we are importing it in to XI it is giving the below error -
Change list activated; note the following information
Check result for External Definition: PML | urn:sugata_PI_LFTP: Document check found errors
Cause: Loaded document contains incorrect XSD definition
Name of '/schema/element("XML")' starts with 'xml'
as we can see in the above XML there is a tag called <pmlcore:XML> if we change this to something like <pmlcore:ABC>
it is imported successfully and we can see the message structure in the XSD also.
As PML XSDs are standard so the AII team is also not changing the same as mentioned above.
Please advise how can we import this XSD in PI with tag name XML?
Another question, which is very confusing to us - is PI able to send PML message as mentioned above? or PI will send a simple XML as below -
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_Batch_DECOMM xmlns:ns0="http://pfizer.com/serialization/batch_expiration">
- <Observation>
<DateTime>2012/02/08</DateTime>
<Command>TAG_DECOM_BATCH</Command>
- <Data>
- <XML>
<PRODUCT>F000000211</PRODUCT>
<BATCH_ID>00000TESTAII001</BATCH_ID>
<DOCUMENT_NO>0000000004811027</DOCUMENT_NO>
<LogicalDeviceID>DG_GLOBAL</LogicalDeviceID>
</XML>
</Data>
</Observation>
</ns0:MT_Batch_DECOMM>
and AII will convert it to PML message using some PML engine or PML converter in AII?
Request your urgent help in this regard. Any help will be appreciated and rewarded.
The standard XSDs we are using are - PMLCore.xsd and Identifier.xsd , first one is referring the second one.
Thanks
Sugata B Majumder