Skip to Content
author's profile photo Former Member
Former Member

Catching Web Service Exception

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:25 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 12:38 PM

    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.

    Strange issue clearing context element

    call adaptive web services mit Parameter

    Regards,

    Mithu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.