Ho do I consume the web service that has the following requirement? I add the web reference and create an instance but I am not sure how I can assign the value to each of the tag?
testws.webserv ws = new testws();
ws.batch.report[0].header="test 1";
am I doing this correctly? when I try to call the testws.soapmeth od(), it expect the batch object and this is where I am stuck. TIA.
sample data
<batch>
<report>
<header>test 1</header>
<detail>
<line>1</line>
<line>2</line>
</detail>
</report>
<report>
<header>test 1=2</header>
<detail>
<line>1</line>
<line>2</line>
</detail>
</report>
</batch>
testws.webserv ws = new testws();
ws.batch.report[0].header="test 1";
am I doing this correctly? when I try to call the testws.soapmeth od(), it expect the batch object and this is where I am stuck. TIA.
sample data
<batch>
<report>
<header>test 1</header>
<detail>
<line>1</line>
<line>2</line>
</detail>
</report>
<report>
<header>test 1=2</header>
<detail>
<line>1</line>
<line>2</line>
</detail>
</report>
</batch>
Comment