cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming external webservice in webdynpro

Former Member
0 Kudos

Hi colleagues

I am trying to consume a webservice "BORM_API_A1S_GET_UPD_SW_VECTOR" in webdynpro, it is an external webservice

i have followed the below steps and ended up with an error

Steps:

1) created a Adaptive web service model

2) got the WSDL source from "Remotelocation/fileSystem"

3) given the WSDL URL Acess as "e:///C:\Documents and Settings\Desktop\BORM_API_A1S_GET_UPD_SW_VECTOR.wsdl"

4) created a service group

5) then i have done the " model to controller" binding and "controller to view" binding

6) in the INIT method of controller i have creted the instance of the model and binded it to the context element

7) set some some values in the init methiod(for input parameters)

😎 designed a view to get the values that are set into the input parameters

9) Configured the service group

i am getting an error saying

"*java.io.IOException: Cannot connect to https://service.sap.com:443/sap/bc/bsp/spn/swdc/slm/accessctrl.do, used user to connect: S0004119795, message : Unable to connect to service.sap.com:443 - service.sap.com*"

I think i am doing wrong service confuguration

steps i have followed to Configure the service group are given below

1) logged into http://ldcidwd.wdf.sap.corp:50000/nwa

2) SOA management-->technical information --> system connections

here i have selected the provider systems tab, and created a new provider system of system type "Java"

Here i need to provide someother information which i am not sure about what to provide, Could any one let me know what to be provided for the other fields

u2022 System Type: Java

u2022 System Name: <System ID> ?( what is this)

u2022 Host: <Host>?

u2022 System Description: My Web Service System

u2022 Username: <Administrator>?

u2022 Password: <Password for Administrator>?

u2022 Profile Name: SAP_DEFAULT_PROFILE

u2022 Mode: Multiple Services

u2022 Services Source: WSIL

u2022 WSIL URL: ?(what should be provided here

u2022 Socket Timeout: 60.000

Please let me know what shall i fill in this fields

Thanks & Regards

Swetha

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

Hi Swetha,

To use web services in Web Dynpro java , u can choose no service group configuration .

or

to use web services using services group , u need to create provider system , communication profile .

u can refer this document for ur query

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46]

Thanks and regards

Former Member
0 Kudos

Hi Fazal Ahamed,

Thank you for your quick reply

i have tried selecting the " No Service Group Confugaration"

and defined the logical destinations for metadata and execution

For default matadata destination i have used "DEFAULT_WS_METADATA_DEST"

and for default execution destination i have used "DEFAULT_WS_EXECUTION_DEST"

Now i ahve recieved the error saying "+com.sap.engine.services.webservices.espbase.discovery.TargetNotMappedException: Logical Target destination with name : DEFAULTWS_METADATA_DEST does not exist not mapped to a physical system+."_

Please let me know how to proceed

Thanks & Regards

Swetha

former_member201361
Active Contributor
0 Kudos

Hi Swetha,

Use no logical destinations .

or create a new destinations for ur web services in NWA .

NWA -- SOA Management -->Destinationbs Template --> Create a new destination for ur web service

Thanks and regards

Former Member
0 Kudos

Hi Fazal Ahamed,

Now i have selected " No Logical Destinations"

and i am getting an error saying "java.io.FileNotFoundException: /C:/Documents and Settings/i055011/Desktop/BORM_API_A1S_GET_UPD_SW_VECTOR.wsdl (No such file or directory)"

here the webservice we are using is an external webservice...and we got it through mail

so we have stored it in the desktop and accessed it

is it the reason for this error.....?

if so could you guide me how to proceed further and how to solve this

Thanks & Regards

Swetha

former_member197348
Active Contributor
0 Kudos

Hi Swetha,

Use the WSDL URL not the wsdl file (i.e. Don't browse & select the local file. Give the URL of the file).

OR

If it is possible to create WS Destination in nwa-> SOA management create and use them.

Regards

Siva

Former Member
0 Kudos

Hi Siva,

when i tried creating a new destination in SOA Management --> destinations, in the second step it is asking for an URL? what is needed to be provided here?

Please let me know

Thanks & Regards

Swetha

Former Member
0 Kudos

Hi,

Provide the WSDL url as the input for url.

If required.

Authentication will be Http Authentication

Username and Password give the details of the remote system

Regards,

Gayathri.

Former Member
0 Kudos

Hi Gayathri,

we have WSDL file on our Desktop

file:///C:\Documents and Settings\i055011\Desktop\BORM_API_A1S_GET_UPD_SW_VECTOR.wsdl

But when i gave this in the URL it is giving me an error

we dont have information about WSDL URL

Could you please let me know where can we get the exact WSDL URL?

Thanks & Regards

Swetha

Former Member
0 Kudos

Hi,

Open the wsdl file there you will find the 2 locations. The one given in the first location will be the wsdl url of the file.

Hope it Helps,

Regards,

Gayathri.

Former Member
0 Kudos

Hi Gayathri,

i have opened the WSDL file and i found there are two URLS

1) "<soap:operation

soapAction="http://www.sap.com/BORM_API_A1S_GET_UPD_SW_VECTOR" />"

2)<soap:address

location="http://pwdf4431.wdf.sap.corp:1080/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/bosf_swdc_slm/accessctrl.do" />

i have tried pasting the address URL ina n other IE and i was asked for Authentication

Thanks & Regards

Swetha

former_member197348
Active Contributor
0 Kudos

Hi Swetha,

You need to give

http://pwdf4431.wdf.sap.corp:1080/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/bosf_swdc_slm/accessctrl.do if it is SAP ABAP web service then you need to append ?sap-client=xxx & wsdl=1.1 .

Then it will ask for user-ID and password ofthe system pwdf4431.wdf.sap.corp

Then go to next step with No Service Group configuration Next and then enter JCo destinations

You can go to next screens as well. Finally Finish.

Regards,

Siva

Answers (0)