Skip to Content

adding xmln:dt attribute in

Hi,

I need to send data to SOAP receiver in following format.

<PaymentInfoMessage xmlns:dt="urn:schemas-microsoft-com:datatypes"> <PaymentInfoRequest> <CompanyCode> XYZ </CompanyCode> <PaymentInfo> <Account>012345</Account> <LastTransaction>00000</LastTransaction> </PaymentInfo>

<TransactionType>940</TransactionType> </PaymentInfoRequest> </PaymentInfoMessage>

When i am trying to add xmlns:dt as attribute to Element, it is giving error

Value "xmlns:dt" is not allowed for the attribute "name"
of type "NCName" in
element "/schema/complexType("PaymentInfoMessage")/attribute("xmlns:dt")"

please let me know how to add attibute "xmlns:dt"

issue.jpg (73.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 22 at 01:31 PM

    Hi Mohammad!

    You could add desired namespace to "Target XML namespace" property of respective message type.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Mohammad!

      You use data type to create the message type upon it further. When you create the message type, you have an option to provide xml namespace for your message using "Target XML namespace" parameter. You could try to set your namespace "urn:schemas-microsoft-com:datatypes" there.

      Regards, Evgeniy.