cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume "GetList" Web Service

Former Member
0 Kudos

Hi..

I'm new in SAP developing. I created a web service of the BAPI Entrysheet_GetList. The *.wsdl document is at the place in the SAP system.

Now I want to test the web service with a Windows application, written in C#. This is my code I already has written:

...

Z_ENTRYSHEET_GETLISTClient Client = new Z_ENTRYSHEET_GETLISTClient(binding, address);

client.ClientCredentials.Username.Username = "USERNAME";

client.ClientCredentials.Username.Password = "********";


EntrysheetGetlistRequest request = new EntrysheetGetlistRequest();

request.PoNumber = getInputBox.Text;


EntrysheetGetlistResponse result = await client.EntryshreetGetlistAsync(request);


...???

In the request I got a PoNumber of a TextBox - the number should be search in SAP.

But now I don't know how I have to call and consume the response array ENTRYSHEET_HEADER. This header

I hope someone could help me - or has an webside where I could find some help..

Thanks a lot!

Andi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

... so I would go on..

            Bapiessr firstItem = response.EntrysheetHeader[0];
            var _sheetno = firstItem.SheetNo;
            var _ponumber = firstItem.PoNumber;
            var _docdate = firstItem.DocDate;
            var _shorttext = firstItem.ShortText;

            showListBlock.Text = _sheetno;

...but the web service don't find a entry!

I tested the web service with the same PoNumber with SOAP GU - and it found the right entries.