calling Java WS method returning array

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top