S
Steve
I generate C# webservices proxy code from WSDL file, it turns out the
classes
generated have public member variables and no getter/setter methods as
follows,
and I am able to get data when running the client.
[System.Xml.Serialization.SoapTypeAttribute("MyFeeResponse",
"http://data.myproj.wws")]
public class MyFeeResponse {
/// <remarks/>
public string feeTranSequenceNumber;
/// <remarks/>
public string tranNumber;
}
However, if I add the getter/setter methods, and changed the public
modifier to
private modifier, I couldn't get data when running the client.
[System.Xml.Serialization.SoapTypeAttribute("MyFeeResponse",
"http://data.myproj.wws")]
public class MyFeeResponse {
/// <remarks/>
private string feeTranSequenceNumber;
/// <remarks/>
private string tranNumber;
public string FeeTranSequenceNumber
{
get
{ return feeTranSequenceNumber;
}
set
{ feeTranSequenceNumber = value;
}
}
public string TranNumber
{
get
{ return tranNumber;
}
set
{ tranNumber = value;
}
}
}
any ideas?
please advise. thanks!!
classes
generated have public member variables and no getter/setter methods as
follows,
and I am able to get data when running the client.
[System.Xml.Serialization.SoapTypeAttribute("MyFeeResponse",
"http://data.myproj.wws")]
public class MyFeeResponse {
/// <remarks/>
public string feeTranSequenceNumber;
/// <remarks/>
public string tranNumber;
}
However, if I add the getter/setter methods, and changed the public
modifier to
private modifier, I couldn't get data when running the client.
[System.Xml.Serialization.SoapTypeAttribute("MyFeeResponse",
"http://data.myproj.wws")]
public class MyFeeResponse {
/// <remarks/>
private string feeTranSequenceNumber;
/// <remarks/>
private string tranNumber;
public string FeeTranSequenceNumber
{
get
{ return feeTranSequenceNumber;
}
set
{ feeTranSequenceNumber = value;
}
}
public string TranNumber
{
get
{ return tranNumber;
}
set
{ tranNumber = value;
}
}
}
any ideas?
please advise. thanks!!