cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create an instance by using Adaptive webservice in Webdynpro App

Former Member
0 Kudos

Hi,

I am trying to develop a WebDynpro application using Adaptive Webservice model. I have created a model using WSDL in my application in order to get the Sales order data from the Backend (R/3).

The problem is that after doing context and model mapping in the view and custome controller I am not able to create an instance for the Request parameter.

Code in custome controller:

Request_ZFmServDocflow Request = new Request_ZFmServDocflow();

wdContext.nodeRequest_ZFmServDocflow().bind(Request);

Request.setZFmServDocflow(new ZFmServDocflow());

In the above code for "Request_ZFmServDocflow" I am not able to create an instance, Its saying <b>The Constructor "Request_ZFmServDocflow" is not defined </b>(Its expecting some parameter).

I have followed the Email Webservice application in SDN But couldn't understand the problem. Need your expertise in this application. Can anybody explain how to develop an application using WSDL in WebDynpro's. Also if any links that could explain the entire scenario.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

if possible try to create web service model selecting webservice from the local server and try.

Former Member
0 Kudos

Hi Kalyan,

your code is very fine, there are some jars missing.

add theses jars in java build path of your project

1.xmlparserAPIs.jar

2.XmlWrapper.jar

3.webservice.jar

4.jaxrpc-api.jar

5.jaxm.jar

hope this will solve your problem.

Regards,

venkat.

Former Member
0 Kudos

Hi venkat,

Even after including the jar files that you have mentioned I am getting the same error.

May be it is all due to proxy setting. Can you explain me what should i give in the proxy address and port Input fields.

The settings are at

Windows> Preferences> Workbench (left pane)--> Proxy settings

This is all my assumption that the error is due to proxy settings. It can be any other reason. Can there be any other reasons for this kind of error ?

thanks,

kalyan

Former Member
0 Kudos

Hi kalyan,

Request expects the Instance of ur web service model .Create the instance of ur model & pass that to request.Suppose u have the web service model named SuppliesModel,as i have written in code.

e.g.

SuppliesModel suppliesModel = new SuppliesModel();

FindAllSupplies findSupplies =new FindAllSupplies(suppliesModel);

Request_FindAllSupplies reqModel =new Request_FindAllSupplies(suppliesModel);

findSupplies.setCountry(country);

wdContext.nodeRequest_FindAllSupplies().bind(reqModel);

then execute.

regards

Sumit

Former Member
0 Kudos

Hi Sumit,

I have already tried with the given process earlier but I am getting the below given error.

java.rmi.RemoteException: Service call exception; nested exception is: java.net.UnknownHostException: ftp=internetpln.eds.com:81;gopher=internetpln.eds.com:80;http=internetpln.eds.com:80;https=internetpln.eds.com

Can you help me out.

Regards,

Kalyan

Former Member
0 Kudos

Hi kalyan,

Where is ur webservice hosted??Check in the webservicenavigator whether its working fine on that system.Check the destinations also in Visual Administrator.

Ur error shows there is some problem with destination u have defined.

regards

Sumit

Former Member
0 Kudos

Hi Sumit,

I am able to resolve the issue. the problem was with the proxy setting which i didn't disabled.

thanks for your help.

Kalyan

Former Member
0 Kudos

Hi,

I am getting the same error.How did you resolve this.

Regards

Rohit

Former Member
0 Kudos

Hi Rohit,

I have disabled the Proxy settings for the webservice model in the application and also in NWDS.

Regards

Kalyan