M
Mrozik
after parsing WSDL definition of java
WebService, C# proxy class contains data strutures
(I'm using RPC\encoded):
[System.Xml.Serialization.SoapTypeAttribute("DateString", "http:/
/xxx.com.pl")]
public class DateString {
/// <remarks/>
public string value;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DeactivationInfo",
"http://xxx.com.pl"))]
public class DeactivationInfo {
/// <remarks/>
public DateString deactivationDate;
/// <remarks/>
public DateString insertDate;
/// <remarks/>
public string msisdn;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DeactivationInfoArray",
"http://xxx.com.pl"))]
public class DeactivationInfoArray
{
/// <remarks/>
public DeactivationInfo[] deactivations;
/// <remarks/>
public int nextID;
/// <remarks/>
public bool partial;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DeactivationInfoArrayResponse",
"http://xxx.com.pl"))]
public class DeactivationInfoArrayResponse : Response {
/// <remarks/>
public DeactivationInfoArray array;
}
I try to call method returning DeactivationInfoArrayResponse
object:
DeactivationInfoArrayResponse deactInfoArrayRet =
_ws.getDeactivations(
_dsFrom,
_dsTo,
maxNumber);
deactInfoArrayRet contains proper:
- deactInfoArrayRet.retCode (coming from inherited
Response class)
- deactInfoArrayRet.array
deactInfoArrayRet.array (DeactivationInfoArray type) contains:
- valid deactInfoArrayRet.array.nextID property value
- valid deactInfoArrayRet.array.partial property value
but
deactInfoArrayRet.array.deactivations array
(DeactivationInfoArrayResponse.DeactivationInfoArray.DeactivationInfo[])
is always null....
why? when i trace SOAP message, values are properly returned from WS
but are not avilable in .NET code....
Pawel
WebService, C# proxy class contains data strutures
(I'm using RPC\encoded):
[System.Xml.Serialization.SoapTypeAttribute("DateString", "http:/
/xxx.com.pl")]
public class DateString {
/// <remarks/>
public string value;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DeactivationInfo",
"http://xxx.com.pl"))]
public class DeactivationInfo {
/// <remarks/>
public DateString deactivationDate;
/// <remarks/>
public DateString insertDate;
/// <remarks/>
public string msisdn;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DeactivationInfoArray",
"http://xxx.com.pl"))]
public class DeactivationInfoArray
{
/// <remarks/>
public DeactivationInfo[] deactivations;
/// <remarks/>
public int nextID;
/// <remarks/>
public bool partial;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DeactivationInfoArrayResponse",
"http://xxx.com.pl"))]
public class DeactivationInfoArrayResponse : Response {
/// <remarks/>
public DeactivationInfoArray array;
}
I try to call method returning DeactivationInfoArrayResponse
object:
DeactivationInfoArrayResponse deactInfoArrayRet =
_ws.getDeactivations(
_dsFrom,
_dsTo,
maxNumber);
deactInfoArrayRet contains proper:
- deactInfoArrayRet.retCode (coming from inherited
Response class)
- deactInfoArrayRet.array
deactInfoArrayRet.array (DeactivationInfoArray type) contains:
- valid deactInfoArrayRet.array.nextID property value
- valid deactInfoArrayRet.array.partial property value
but
deactInfoArrayRet.array.deactivations array
(DeactivationInfoArrayResponse.DeactivationInfoArray.DeactivationInfo[])
is always null....
why? when i trace SOAP message, values are properly returned from WS
but are not avilable in .NET code....
Pawel