hi all
i'm calling a webservice using c# in a windows app that returns a complex type []
ComplextType [] complextType = null;
complextType = service.getMethod(a, b, c, d)
then iterating through to ge the results, here i'm using c# (visual studio 2005) inttli sense
for (int i = 0; i < complextType .Length; i++)
{
string name = complextType .name;
string display = complextType .name;
}
and this bring back the results. BUT i want to retrun the id, but this keeps coming back as null
I've done a tcptrace on the raw soap response and i can see the id has a value, however when i do complextType .id the value is null
looking at the siap response i can see the id value (123) but it's in a separate multifred tag, is anone able to show me how i get the id?
soap :
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle=" xsi:type="ns3:ComplexType" xmlns:soapenc=" xmlns:ns3=" <id href="#id1"/>
<display xsi:type="soapenc:string">display value</display>
<name xsi:type="soapenc:string">name value</name>
</multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle=" xsi:type="soapenc:long" xmlns:soapenc="
The ID i want is returned as a reference to a type can anyone tell me how i 'grab' the ID value?
Also is anyone able to tell me how in c# i can capture the raw xml repsonse? I've been llooking a SoapMessage but don't know how to use it
thanks for any help
i'm calling a webservice using c# in a windows app that returns a complex type []
ComplextType [] complextType = null;
complextType = service.getMethod(a, b, c, d)
then iterating through to ge the results, here i'm using c# (visual studio 2005) inttli sense
for (int i = 0; i < complextType .Length; i++)
{
string name = complextType .name;
string display = complextType .name;
}
and this bring back the results. BUT i want to retrun the id, but this keeps coming back as null
I've done a tcptrace on the raw soap response and i can see the id has a value, however when i do complextType .id the value is null
looking at the siap response i can see the id value (123) but it's in a separate multifred tag, is anone able to show me how i get the id?
soap :
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle=" xsi:type="ns3:ComplexType" xmlns:soapenc=" xmlns:ns3=" <id href="#id1"/>
<display xsi:type="soapenc:string">display value</display>
<name xsi:type="soapenc:string">name value</name>
</multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle=" xsi:type="soapenc:long" xmlns:soapenc="
The ID i want is returned as a reference to a type can anyone tell me how i 'grab' the ID value?
Also is anyone able to tell me how in c# i can capture the raw xml repsonse? I've been llooking a SoapMessage but don't know how to use it
thanks for any help