Monday, March 19, 2012
Do you like this story?
Posted on Monday, March 19, 2012
Thankfully, my colleague gave me the code to get the result of the service. The code that I'm lacking are the two lines of the code. You just need to declare the response of the service and pass the response of the method.
private SAPService.service _SAPService;
private SAPService.ZhrCostcentreInfo1 SAPTable;
_SAPService = new SAPService.service();
_SAPService.PreAuthenticate = true;
_SAPService.Credentials = new NetworkCredential("username", "password");
SAPService.ZhrCostcentreInfo result = new CHS.SAPService.ZhrCostcentreInfo;
SAPTable = new CHS.SAPService.ZhrCostcentreInfo1();
SAPTable.Costcentre = "";
SAPTable.EffDte = "";
SAPTable.Orgeh = "";
SAPTable.Pernr = "";
SAPTable.ZhrCostcentre = result;
CHS.SAPService.ZhrCostcentreInfoResponse respobj = new CHS.SAPService.ZhrCostcentreInfoResponse();
respobj = _SAPService.ZhrCostcentreInfo(SAPTable);
This post was written by: Mark Ferdinand Tayag
Makoy is a Senior Software Engineer based in Singapore. He enjoys cooking, swimming, running and taking photos. Makoy started blogging way back 1998 during his College years. Aside from his personal blog, he maintains a music blog, an entertainment blog, making money online blog and a photo blog. A certified Filipino blogger that wants to dominate the blogosphere.
Follow him on Twitter and Instagram.