cancel
Showing results for 
Search instead for 
Did you mean: 

Call Web Service

Former Member
0 Kudos

i have call a Web Service of test

Il seguente testo d'errore è stato elaborato nel sistema DV1 : Errore di chiamata delle funzioni del SOAP run-time

L'errore si è verificato nell'application server sapdev01_DV1_10 e nel processo operativo 0 .

Tipo di interruzione: RABAX_STATE Gerarchia chiamate ABAP:

Method: HANDLE_REQUEST of program CL_SOAP_TRANSPORT_EXTENSN_ROOTCP

Method: HANDLE_REQUEST of program CL_SOAP_HTTP_EXTENSION========CP

Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_SOAP_HTTP_EXTENSION========CP

Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP

Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME

Module: %_HTTP_START of program SAPMHTTP

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I call a Web Services by .net

ZWEB_CUSTOMER_GETLIST.ZWEB_CUSTOMER_GETLISTService customersList = new ZWEB_CUSTOMER_GETLIST.ZWEB_CUSTOMER_GETLISTService();

ZWEB_CUSTOMER_GETLIST.BAPICUSTOMER_ADDRESSDATA[] ADDRESSDATA = new ZWEB_CUSTOMER_GETLIST.BAPICUSTOMER_ADDRESSDATA[0];

ZWEB_CUSTOMER_GETLIST.BAPICUSTOMER_IDRANGE[] IDRANGE = new ZWEB_CUSTOMER_GETLIST.BAPICUSTOMER_IDRANGE[1];

IDRANGE[0] = new ZWEB_CUSTOMER_GETLIST.BAPICUSTOMER_IDRANGE();

IDRANGE[0].SIGN = "I";

IDRANGE[0].OPTION = "BT";

IDRANGE[0].LOW = "0000000000";

IDRANGE[0].HIGH = "999999999";

ZWEB_CUSTOMER_GETLIST.BAPICUSTOMER_SPECIALDATA[] SPECIALDATA = new ZWEB_CUSTOMER_GETLIST.BAPICUSTOMER_SPECIALDATA[0];

customersList.Credentials = _credential;

try

{

System.Net.CookieContainer cookie = new System.Net.CookieContainer();

customersList.CookieContainer = cookie;

ZWEB_CUSTOMER_GETLIST.BAPIRETURN1 ret = customersList.BAPI_CUSTOMER_GETLIST(ref ADDRESSDATA, " ", ref IDRANGE, 1, ref SPECIALDATA);

if (ret != null && SPECIALDATA.Length>0)

But i don't retrive any information by ref ADDRESSDATA

ADDRESSDATA is always = null

If i run bapi BAPI_CUSTOMER_GETLIST by se37

i see many address into ADDRESSDATA table

Why ?

Former Member
0 Kudos

Hi Matteo,

which BAPI do you call and on which system? Here is a code snippet in C# calling the BAPI Flight_GetList on an ECC5, maybe it helps.

// create a proxy object

GetFlightListService.Z_GetFlightListWSDService myProxy = new CallGetFlightListWs.GetFlightListService.Z_GetFlightListWSDService();

// set SAP credentials

myProxy.Credentials = new System.Net.NetworkCredential("username", "password");

// define and initialize parameters

GetFlightListService.BAPISFLDRA[] dateRange = new GetFlightListService.BAPISFLDRA[0];

GetFlightListService.BAPISFLDST destinationFrom = new GetFlightListService.BAPISFLDST();

destinationFrom.AIRPORTID = "";

destinationFrom.CITY = "San Francisco";

destinationFrom.COUNTR = "";

destinationFrom.COUNTR_ISO = "";

GetFlightListService.BAPISFLDST destinationTo = new GetFlightListService.BAPISFLDST();

destinationTo.AIRPORTID = "";

destinationTo.CITY = "Frankfurt";

destinationTo.COUNTR = "";

destinationTo.COUNTR_ISO = "";

GetFlightListService.BAPIPAREX[] extensionIn = new GetFlightListService.BAPIPAREX[0];

GetFlightListService.BAPIPAREX[] extensionOut = new GetFlightListService.BAPIPAREX[0];

GetFlightListService.BAPISFLDAT[] flightList = new GetFlightListService.BAPISFLDAT[0];

GetFlightListService.BAPIRET2[] bapiReturn = new GetFlightListService.BAPIRET2[0];

// call SAP Web service

myProxy.BAPI_FLIGHT_GETLIST("LH",

ref dateRange,

destinationFrom,

destinationTo,

ref extensionIn,

ref extensionOut,

ref flightList,

20,

false,

ref bapiReturn);

// display flight list

if (flightList != null)

Console.WriteLine("There are flights matching your request.", flightList.Length.ToString());

else

Console.WriteLine("There are no flights matching your request.");

Former Member
0 Kudos

Thank,

Sorry but error was in link of web service where missing a Piece

Hallo