cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming External Web Services in Web Dynpro Java

Former Member
0 Kudos

Hi All,

I an trying to consume external web service in Web dynpro java using Adaptive Web Service Model.

But getting below mentioned error while executing the web service

Exception on execution of web service with WSDL URL 'D:\Web Service Project\CurrencyConvertor.asmx.xml' with operation 'ConversionRate' in interface 'CurrencyConvertorSoap'

Steps i followed are as below:

1. Created Adaptive Web Service Model for this i select WSDL source as "Local File System or URL"

  • In next step i select No logical destination radio button and click on next

  • In next step, browse the WSDL file and successfully import the WSDL file.

2. After successfully importing the WSDL file i wrote below code in Init method:



WebModel modelweb = new WebModel();			
Request_ConversionRate reqConversion = new Request_ConversionRate(modelweb);
ConversionRate conversion= new ConversionRate(modelweb);
reqConversion.setConversionRate(conversion);
wdContext.nodeRequest_ConversionRate().bind(reqConversion);

3.After that execute the model - code is given below :


    IWDMessageManager manager = wdComponentAPI.getMessageManager();
    try
    {
      wdContext.currentRequest_ConversionRateElement().modelObject().execute();
      wdContext.nodeResponse().invalidate();
      wdContext.nodeConversionRateResponse().invalidate();
    }
    catch(Exception e)
    {
      manager.reportException(e.getMessage(), false);
    }

Please let me know how to resolve this.

Thanks

Sandy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You need to use destinations for metadata and modeldata.

Configure those destination in Visula admin.

you can refer to following link.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff...

Regards,

Shruti.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi !

you need to bind all the nodes which if you working in 7.1 comes automatically through service controller and then from the backend check which tables are mandatory and then you have to pass all the fields in that table , you can pass empty strings .and also you need to configure logical destination in which you will pass your wsdl url.

Former Member
0 Kudos

Plz look at the below threads

former_member192434
Active Contributor
0 Kudos

Sandeep,

In your Receiver Determination check if you have given the correct receiver name (Receiving Business System) ?

thanks