By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

calling Java WS method returning array

P: n/a

after parsing WSDL definition of java
WebService, C# proxy class contains data strutures
(I'm using RPC\encoded):

[System.Xml.Serialization.SoapTypeAttribute("DateSt ring", "http:/
/xxx.com.pl")]
public class DateString {

/// <remarks/>
public string value;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("Deacti vationInfo",
"http://xxx.com.pl"))]
public class DeactivationInfo {

/// <remarks/>
public DateString deactivationDate;

/// <remarks/>
public DateString insertDate;

/// <remarks/>
public string msisdn;
}

/// <remarks/>

[System.Xml.Serialization.SoapTypeAttribute("Deacti vationInfoArray",
"http://xxx.com.pl"))]
public class DeactivationInfoArray
{

/// <remarks/>
public DeactivationInfo[] deactivations;

/// <remarks/>
public int nextID;

/// <remarks/>
public bool partial;
}
/// <remarks/>

[System.Xml.Serialization.SoapTypeAttribute("Deacti vationInfoArrayResponse",
"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.DeactivationInfoArr ay.DeactivationInfo[])
is always null....
why? when i trace SOAP message, values are properly returned from WS
but are not avilable in .NET code....

Pawel
Nov 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.