Skip to Content
0
Former Member
Dec 20, 2004 at 06:38 AM

WebService parameters

171 Views

Hi anyone out there,

I am writing a web service and have a proxy inside it. I am trying to pass in SAPTables from outside the webservice. I realised two things:

1. If I am connecting the asmx file with another client with sap.net connector i can pass the actual SAPTable object in. when i do this, and declare the item in the parameters, the xml tag generated by the webservice has two instances of the table structure. for example:

<PtblPoItems>

<BAPIEKPOC>

<PO_ 5fNUMBER>string</PO_ 5fNUMBER>

...

...

</BAPIEKPOC>

<BAPIEKPOC>

<PO_ 5fNUMBER>string</PO_ 5fNUMBER>

...

...

</BAPIEKPOC>

</PtblPoItems>

Logically since this is a table, each of this instance (am not sure, not a VB.Net guru) will represent a line item (correct me if i am wrong), does this mean that the current table during run time has two empty lines in it?

What is the best way to pass in parameters into a web service?