TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Eliseo Gonzalez
NA
9
619
How to add attributes to node
Nov 13 2017 5:46 PM
Hi all of you, I hope to be clear (sorry for my English).
I need to create the following soap xml.
<
soapenv:Envelope
xmlns:soapenv
=
"http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem
=
"http://tempuri.org/"
>
<
soapenv:Header
/>
<
soapenv:Body
>
<
tem:ventas
>
<!--Zero or more repetitions:-->
<
tem:venta
attr1
=
"?"
attr2
=
"?"
>
<!--Zero or more repetitions:-->
<
tem:material
attr1
=
"?"
attr2
=
"?"
/>
</
tem:venta
>
</
tem:ventas
>
</
soapenv:Body
>
</
soapenv:Envelope
>
I am writing a Service Contract like this:
namespace
Arx2Casa
{
[DataContract]
public
class
material
{
[XmlAttribute]
public
string
attr1 {
get
;
set
; }
[XmlAttribute]
public
string
attr2 {
get
;
set
; }
}
[ServiceContract]
[XmlSerializerFormat]
public
interface
Arx2CasaIntf
{
[OperationContract]
string
ventas(material[] venta);
}
}
That contract generate the following REQUEST
<
soapenv:Envelope
xmlns:soapenv
=
"http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem
=
"http://tempuri.org/"
>
<
soapenv:Header
/>
<
soapenv:Body
>
<
tem:ventas
>
<!--Optional:-->
<
tem:venta
>
<!--Zero or more repetitions:-->
<
tem:material
attr1
=
"?"
attr2
=
"?"
/>
</
tem:venta
>
</
tem:ventas
>
</
soapenv:Body
>
</
soapenv:Envelope
>
How do I add attibutes to <tem:venta> node?
Is there other way to do that?
Thanks for you support.
Regards
Reply
Answers (
0
)
Powerapps-Need to create datasource in Hard drive
Solution and technology for between clients and servers