Menu

how to encode type of xs:hexBinary

Get Help
Anonymous
2019-04-30
2019-07-19
  • Anonymous

    Anonymous - 2019-04-30

    Hi Rumen,
    in my schema ,
    <xs:simpletype name="sessionIDType">
    <xs:restriction base="xs:hexBinary">
    <xs:maxlength value="8">
    </xs:maxlength></xs:restriction>
    </xs:simpletype>

    and
    <xs:element type="v2gci_t:sessionIDType" name="SessionID">
    <ns3:sessionid>0000000000000000</ns3:sessionid>
    then in my encode ,i set
    static char SOME_BINARY_DATAt[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,0x00};
    TRY_CATCH_ENCODE(serialize.binaryData(&testStrm, SOME_BINARY_DATAt, 8));
    but the result is error
    GET_EXI_TYPE 0
    Production type is not a binary</xs:element>

    Error EXIP_INCONSISTENT_PROC_STATE:8 at ../../examples/simpleEncoding/encodeTestEXI.c, line 269
    Error (code: 8) during encoding of:

    wait your help
    thanks

     
    • Rumen Kyusakov

      Rumen Kyusakov - 2019-05-01

      Hi,

      Could it be you do not use the correct schema when you encode?
      Maybe the order of events is not following the grammar defined by the schema?
      I am sorry but I cannot help you - this could be cause by many different things including bug in exip code.

      // Rumen

       
  • Anonymous

    Anonymous - 2019-05-06

    yes,the schema is error ,thanks

     

Anonymous
Anonymous

Add attachments
Cancel