on 04-22-2018 1:42 PM
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"
Hi Mohammad!
You could add desired namespace to "Target XML namespace" property of respective message type.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.