We have developed an agent (SIF UK 1.2 standards) which is tested against the Edustructres' ZIS. During the course of integration with our client's ZIS server, we experienced some issues related to Version mismatch between the Agent and the ZIS server. First attempt was made with following version setup in the code - ADK.initialize( SIFVersion.LATEST, SIFDTD.SDO_LEARNER); The reply was DEBUG [ADK] SIF_Ack Does NOT support version: 2.3 Earliest: 2.0 Latest : 2.2 DEBUG [ADK.Agent$Connectathon5] Receive SIF_Ack (Status = none; Errors = 1) DEBUG [ADK.Agent$Connectathon5] [Category=1; Code=1] XML format error or SIF Message format error: Could not retreive SIF_Message, SIF_Header or SIF_SourceId XML elements Second attempt with - ADK.initialize( SIFVersion.SIF22, SIFDTD.SDO_LEARNER); SIF packet sent: DEBUG [ADK.Agent$Connectathon5] <SIF_Message xmlns="http://www.sifinfo.org/uk/infrastructure/2.x" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.2"> <SIF_Register> <SIF_Header> <SIF_MsgId>F1CF2146011D4CD887E464D55A587CDC</SIF_MsgId> <SIF_Timestamp>2010-01-28T09:51:55-00:00</SIF_Timestamp> <SIF_Security> <SIF_SecureChannel> <SIF_AuthenticationLevel>0</SIF_AuthenticationLevel> <SIF_EncryptionLevel>0</SIF_EncryptionLevel> </SIF_SecureChannel> </SIF_Security> <SIF_SourceId>SIFTest</SIF_SourceId> </SIF_Header> <SIF_Name>SIFTest</SIF_Name> <SIF_Version>2.2</SIF_Version> <SIF_Version>1.1</SIF_Version> <SIF_Version>1.5r1</SIF_Version> <SIF_Version>2.0</SIF_Version> <SIF_Version>2.0r1</SIF_Version> <SIF_Version>2.1</SIF_Version> <SIF_MaxBufferSize>393216</SIF_MaxBufferSize> <SIF_Mode>Pull</SIF_Mode> </SIF_Register> </SIF_Message> The reply: DEBUG [ADK.Agent$Connectathon5] <SIF_Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="2.3" xmlns="http://www.sifinfo.org/uk/infrastructure/2.x"><SIF_Ack><SIF_Header><SIF_MsgId>5363A390A0D349E392D87FA4CB3F11EF</SIF_MsgId><SIF_Timestamp>2010-01-28T09:43:45.510599+00:00</SIF_Timestamp><SIF_SourceId>Connectathon5</SIF_SourceId></SIF_Header><SIF_OriginalSourceId>SIFTest</SIF_OriginalSourceId><SIF_OriginalMsgId>F1CF2146011D4CD887E464D55A587CDC</SIF_OriginalMsgId><SIF_Error><SIF_Category>12</SIF_Category><SIF_Code>3</SIF_Code><SIF_Desc>Message SIF Version is not supported by Zone</SIF_Desc><SIF_ExtendedDesc>Supported SIF Versions: 2.0r1,2.1,2.3</SIF_ExtendedDesc></SIF_Error></SIF_Ack></SIF_Message> DEBUG [ADK.Agent$Connectathon5] Receive SIF_Ack (Status = none; Errors = 1) DEBUG [ADK.Agent$Connectathon5] [Category=12; Code=3] Message SIF Version is not supported by Zone: Supported SIF Versions: 2.0r1,2.1,2.3 Third attempt with - ADK.initialize( SIFVersion.SIF21, SIFDTD.SDO_LEARNER); The reply : DEBUG [ADK.Agent$Connectathon5] <SIF_Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="2.1" xmlns="http://www.sifinfo.org/uk/infrastructure/2.x"><SIF_Ack><SIF_Header><SIF_MsgId>E0B4F29C6AF84761806CC9B9C93FBCA1</SIF_MsgId><SIF_Timestamp>2010-01-28T09:46:43.1188373+00:00</SIF_Timestamp><SIF_SourceId>Connectathon5</SIF_SourceId></SIF_Header><SIF_OriginalSourceId>SIFTest</SIF_OriginalSourceId><SIF_OriginalMsgId>7AD880AB6D8745448EB9543A0CF60C31</SIF_OriginalMsgId><SIF_Error><SIF_Category>5</SIF_Category><SIF_Code>4</SIF_Code><SIF_Desc>Version not supported</SIF_Desc><SIF_ExtendedDesc>1.1</SIF_ExtendedDesc></SIF_Error></SIF_Ack></SIF_Message> DEBUG [ADK.Agent$Connectathon5] Receive SIF_Ack (Status = none; Errors = 1) DEBUG [ADK.Agent$Connectathon5] [Category=5; Code=4] Version not supported: 1.1 Our client's suggestion to fix this is "The zone you’re connecting to currently only supports UK 1.0 (Infra 2.0r1), UK 1.1 (Infra 2.1) or UK 1.2 (Infra 2.3) so you’ll need to remove: <SIF_Version>2.2</SIF_Version> <SIF_Version>1.1</SIF_Version> <SIF_Version>1.5r1</SIF_Version> <SIF_Version>2.0</SIF_Version> From your message." I am trying to use following code, as instructed in the documentation AgentProperties props = zone.getProperties(); props.setZisVersion("2.1"); But it is still sending multiple SIF_Version elements, whereas the documentation (page 41) says that there would only be a single SIF_Version element. How do I fix this issue? Regards, Amitoj.
Hi,
Which versions of the ADK and ZIS are you using? You may want to use the latest as UK 1.2 support is new. It was just released this month in the ADK.
Jon
By default, the ADK will register all supported Infrastructure versions to the ZIS. Some ZISs do not support all versions. To connect to this ZIS, you will need to set the adk.provisioning.overrideSifVersions property in addition to the ADK.sifVersion property.
Recommended settings:
ADK.sifVersion : "2.1"
adk.provisioning.overrideSifVersions: "2.1, 2.*"
If using the agent.cfg, you can set the above property using this syntax:
<property name=”adk.provisioning.overrideSifVersions” value=”2.0r1,2.1,2.*” />
Andrew ElmhorstChief ArchitectEdustructures