The SIF® Zone
creating, assimilating, and promoting excellence in SIF® agent development

Version mismatch connecting to service provider's ZIS in UK

rated by 0 users
Not Answered This post has 0 verified answers | 2 Replies | 3 Followers

Top 75 Contributor
1 Posts
Points 45
amitoj posted on 01-28-2010 8:34

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.

  • | Post Points: 45

All Replies

Top 10 Contributor
72 Posts
Points 1,495

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

  • | Post Points: 5
Top 10 Contributor
215 Posts
Points 5,055

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 Elmhorst
Chief Architect
Edustructures 

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright ©2006-2009 sifzone.com
Sponsored by Edustructures
We Connect the Systems that Power Education
 
SIF and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.