Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem NWDS 7.3 - Adaptive WebService Model

Hello everybody !

I would like to post one problem concerning the implement of a new WSDL file in my NWDS 7.3 and have your feeling or your tips if you had already encountered this kind of error.

What i have done :

- I have tried to import a WSDL file in my NWDS 7.3 in order to create a new Adaptive webService Model.

I have already tested this WSDL file in SOAP UI and webMethods with a proxy filled and the webService is working correctly.

Once i have created my new Model (Name : DBI1Model), i have linked my Model with my component controller (AsegmentCust) in which i want to call the webService. (see screenshot below) :

You can see below in my Component controller context the model node linked with my Model :

In order to call the webService, i need to fill the following fields : CodigoConsulta, Senha, Usuario and Valor1.

Normally, i should receive a XML string in the field Return.

In my controller, you can find below the code that i have implement in order to call the WS :

//Creation of the model

DBI1Model dbi1Model = new DBI1Model();

manager.reportWarning("Step1");

// Instanciation of the model node

Request_ConsultaOnLine input = new Request_ConsultaOnLine(dbi1Model);

input.setUsuario("TEST");

input.setSenha("TEST");

input.setValor1("08090788000267");

input.setCodigoConsulta(3);

manager.reportWarning("Step 2");

wdContext.nodeRequest_ConsultaOnLine().bind(input);

try{

    manager.reportWarning("Step 3");

    input.execute();

          

    manager.reportWarning("Step 4");

}

catch(Exception e){

          

    manager.reportException(e);

    manager.reportWarning("Fail");

          

}

When i execute the application and try to call this WS, i have the result below :

Step 1

Step 2

Step 3

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Fail

Do you have an idea of the problem ?

Thanks,

Regards,

NIcolas

Former Member
Not what you were looking for? View more on this topic or Ask a question