on 10-23-2012 1:30 PM
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
... 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.