cancel
Showing results for 
Search instead for 
Did you mean: 

adding xmln:dt attribute in

mohammadaamir_khan
Participant
0 Kudos

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"

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190293
Active Contributor
0 Kudos

Hi Mohammad!

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

Regards, Evgeniy.

mohammadaamir_khan
Participant
0 Kudos

Dear Engeniy,

I am giving Data type in message type. Data type itself is not able to take attribute xmlns:dt .

former_member190293
Active Contributor
0 Kudos

Hi Mohammad!

Actually, you shouldn't use any namespace attributes in your data types.

Regards, Evgeniy.

mohammadaamir_khan
Participant
0 Kudos

Hi Engeniy,

Can you please elaborate, how to achieve payload like

<PaymentInfoMessage xmlns:dt="urn:schemas-microsoft-com:datatypes"> with out using namespace attribute in Data type.

Thanks

former_member190293
Active Contributor
0 Kudos

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.