cancel
Showing results for 
Search instead for 
Did you mean: 

Catching Web Service Exception

Former Member
0 Kudos

Hi all,

I am new to WDPro and now developing a WDPro dc, and using web service from the CAF.

when using the ws navigator to preform operation, i can get meaningful exception like illegal agurement, no permissions etc.

but in the WDPro , i can only get general exception msg when preforming modelObject().execute() like

Exception on execution of web service on destination TEST_DESTINATION for operation createCustomer in interface CustomerCreationService

which is meaning less to users.

So may i know how can the exception thrown in CAF can be transported to WDPro and displayed

Thanks In Advance

David

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member751941
Active Contributor
0 Kudos

Hi David,

This is the problem of initializing the model node.

Instantiate the model within wdDoinit Method.

ModelName model = new ModelName();

Request_CustomerFlight request_CustomerFlight = new Request_CustomerFlight(model);

Check this thread also.

Regards,

Mithu

Former Member
0 Kudos

HI,

First of all,the exception you got in webdynpro and exception in ws navigator are not same..This exception in webdynpro will be caused if you are not maintaining metadata,execution destinations in server. This will be caused in case of adaptive webservice model..

To create destination,

go to

1: c\usr\sap\J2E\JC00\j2ee\admin\go.bat

2: Give userid, pwd to logon to Visual administrator

3: Select server> services> webservises security> webservice client> sap.com--> DynnamicWSProxies... select create and give some name to destination.

4: Use this destination name while creating adaptive webservice model..

5: If you already created model, then in webdynpro explorer

models> <your modelname>> double click on <Request object>

now you can changed destination in properties of <Requestobject>

Regards

LakshmiNarayana