Skip to Content

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

WebDynpro with Webservice

Hello,

I have created a WebDynpro project with a webservise model.

After the deploy, when I run it, the system returns the following error:

Processing HTTP request to servlet [dispatcher] finished with error.

The error is: java.lang.NoSuchMethodError: com.sap.engine.services.webservices.jaxrpc.wsdl2java.BaseGeneratedStub._initParameter(Lcom/sap/engine/services/webservices/jaxrpc/wsdl2java/ServiceParam;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)V

Exception id: [000F202B654C006D000001580000161B000456B0AEB73C43]

________________________________________________________________

The error encurred into the View's doInit method, at the following point showed between the "Error point" bold comment:

public void wdDoInit()

{

//@@begin wdDoInit()

InitialContext ctx ;

Object obj;

DestinationService dstService;

Destination destination;

HTTPDestination httpDestination ;

HttpURLConnection httpurlconnection = null;

Properties destprop = null;

String serverName = "";

// Give your web service name

String serviceURL = "/WS_ExampleStockQuote/Config1?style=document";

String prefixURL = "http://";

try

{

ctx = new InitialContext();

obj = ctx.lookup(DestinationService.JNDI_KEY);

dstService = (DestinationService) obj;

// ApplicationServer is HTTP destination name which i added through visual Admin

destination = dstService.getDestination("HTTP","WS_ExampleStockQuote");

destprop = destination.getDestinationProperties();

httpDestination = (HTTPDestination) destination;

serverName = httpDestination.getUrl();

prefixURL = prefixURL + serverName;

}

catch(Exception ex)

{

manager.reportException(ex.getMessage(), false);

}

serviceURL = prefixURL + serviceURL;

// $$begin Service Controller(831926490)

// Error point - Begin

Request_WS_ExampleStockQuoteViDocument_getLista addRequest= new Request_WS_ExampleStockQuoteViDocument_getLista();

// Error point - End

addRequest._setEndPoint(serviceURL);

wdContext.nodeRequest_WS_ExampleStockQuoteViDocument_getLista().bind(addRequest);

IWDMessageManager manager = wdComponentAPI.getMessageManager();

try{

wdContext.currentRequest_WS_ExampleStockQuoteViDocument_getListaElement().modelObject().execute();

wdContext.nodeResponse().invalidate();

Vector v1 = wdContext.nodeResponse().currentResponseElement().getResult();

wdContext.currentContextElement().setS(v1.get(0).toString());

} catch(Exception ce) {

manager.reportException(ce.getMessage(), false);

}

wdContext.currentContextElement().setS(serviceURL);

//@@end

}

________________________________________________________________________

Does anyone know the matter?

Thanks and best regards,

Matteo

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