Skip to Content
0

adding xmln:dt attribute in

Apr 22 at 12:42 PM

41

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Evgeniy Kolmakov Apr 22 at 01:31 PM
0

Hi Mohammad!

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

Regards, Evgeniy.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Dear Engeniy,

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

0

Hi Mohammad!

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

Regards, Evgeniy.

0

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

0

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.

0