IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Disable Namespace validation

    Posted 11/11/11 10:19 AM

    Originally posted by: julienmotch


    Hello,

    We are processing xml files cmming from our Swift provider.

    My problem is that this provider uses prefix without defining them and it makes the WTX validation fail by responding that the namespace has not been mapped to any uri.

    This is the part of my message which makes the validation process fail:

    <AckTxt>
    <Sw:SnFRef>swi00001-2011-11-02T07:41:41.15595.16648989Z</Sw:SnFRef>
    <Sw:SnFRefType>InterAct</Sw:SnFRefType>
    <Sw:AcceptStatus>Accepted</Sw:AcceptStatus>
    <Sw:AckSwiftTime>2011-11-02T07:41:43Z</Sw:AckSwiftTime>
    </AckTxt>
    The 'Sw' prefix is not defined anywhere in the file
    I was thinking to disable the xsd validation by settings the Verifiction property of the card to 'Well formed only' but this is not enough.

    Do you know another way to by-pass this kind of validation?

    I use on WTX8.3.0.2 on DataPower.

    Thanks,

    Julien

    PS: I join you the file and the xsd
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Disable Namespace validation

    Posted 11/22/11 03:55 PM
      |   view attached

    Originally posted by: SystemAdmin


    Hi Julien,

    I am not sure if you are importing your xsd using Xerces or Classic to generate the typetree. If you did you use Xerces to import ur typetree, there is no way around validating the file.

    But if you use Classic option to import your XSD to generate the typetree, you can change the tree to make sure the typetree validates successfully no matter what tags are availale within <AckTxt> group.

    You need to remove the RESTRICTION LIST and also change the Initiator, Terminator and Empty to NONE in the ReceptAckMsg>AckTxt>anyElem field.

    I have attached the XSD, typetree and a test map for your reference.

    Hope this helps!!

    -Phil
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange

    Attachment(s)



  • 3.  Re: Disable Namespace validation

    Posted 12/28/11 09:38 AM

    Originally posted by: SystemAdmin


    Hi,

    Thanks for your response, it could solve my problem.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender