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
darma teja
NA
496
337k
How to write values to service reference variable
Feb 22 2017 5:17 AM
I added wsdl reference in my project. The following code is there in Refrence.cs file:
public
partial
class
MainRequest :
object
, System.ComponentModel.INotifyPropertyChanged
{
private
test[] metadata;
private
string
name;
}
public
partial
class
test :
object
, System.ComponentModel.INotifyPropertyChanged
{
private
string
key1;
private
string
value1;
[System.Xml.Serialization.XmlAttributeAttribute()]
public
string
Key {
get
{
return
this
.key1;
}
set
{
this
.key1 = value1;
this
.RaisePropertyChanged(
"Key"
);
}
}
I have written code in my project like this:
myReference.MainRequest objMyReq =
new
myReference.MainRequest();
objMyReq.name =
"CompanyName"
;
objMyReq.metadata =
//
How can I give key and values in this?
Reply
Answers (
2
)
How to send sms from way2sms in c# windows application
How to overcome the Object reference error?