cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Calling HTTPS webservice from NWDS "Import Adaptive Web Service

Former Member
0 Kudos

Hi Friends,

Need help here. I am trying to access a HTTPS url from my nwds , using the option Import adaptive webservice model, but I am getting an error as :

Error in loading the WSDL file . Check the error log for more details.

The error log as follows:

Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Cannot connect to https://host:4444/clientname/services/GetData/wsdl/GetIno.wsdl, passing via http proxy: hodc-cache.clientname.com:8088: SSL over Proxy with proxy authentication failure. Missing library tc_sec_https.jar. Please see SAP Note 753002 2004 ->

As sap note mentioned I referred the required jars to my project but still I am not able to access the https webservice from nwds.

Is there any way that I can get around this HTTPS?

        • I can access the webservice from my browser but I cannot access from the NWDS.

Krishna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

Chk This blog /people/anilkumar.vippagunta2/blog/2006/12/13/secured-webservices-ii

Regards

Ayyapparaj

Former Member
0 Kudos

Hi KV,

Many thanks for your prompt reply.

My problem: I am trying to access a HTTPS url in my nwds while using the option Import adaptive webservice model, but I am getting an error as : Error in loading the WSDL file . Check the error log for more details.

First of all I am not able to load that provided WSDL in my studio, if I able to import successfully then this blog is really useful for me to configure the Meta data destination in Visual administrator.

Please advice me what could be the reason I am having issues while loading the https web service in to my NWDS using the option : Import adaptive web service Model.

Secured web services - I , Anilkumar Vippagunta blog is showing that how to create a web service based on EJB and this also not much helpful in my case.

I greatly appreciate any work around for this or any other solution?

Krish

former_member182374
Active Contributor
0 Kudos

Hi,

You can use the following workaround:

1) Import the Web Service as http

2) Go to Model -> Request_<method name>

3) Select properties and change the designTimeWsdlUrl (see snapshot)

http://img155.imageshack.us/img155/6130/webservicemt7.jpg

Regards,

Omri

Former Member
0 Kudos

Dear Omri,

I appreciate your time for researching on this issue and sending the detailed descrption with screen shot.

The work around for calling the HTTPS webservice in to NWDS is not working.

Did you tried earlier using this work around?

I am having some trust issues it seems here? It's a strange? I badly stuck here and still waiting for SDN gurus to respond this but no luck.

Please advice if you have any ideas or thoughts to solve this issue?

I can call http webservice with out any issues , but not able to call any HTTPS webservice in to my NWDS.

Thanks

Krishna

former_member182374
Active Contributor
0 Kudos

Hi,

Try this:

1) Open browser, and navigate to the Web Service wsdl (use HTTP)

2) Save the file as ws.wsdl

3) When you use Adaptive Web Service Model use 'file on local system' (or something similar)

4) Open the file you just saved (ws.wsdl) - the import should work because it's HTTP.

5) Now change the destination according to my first answer - it should work because I had the same error and that's how I've managed to solve it

Regards,

Omri

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Krishna,

Can you try this blog,

/people/wallace.su/blog/2006/05/17/how-real-is-it-to-secure-web-services-in-sap-netweaver-today

Hope it helps.

Peter

Former Member
0 Kudos

Thanks , that blog is shwoing how to integrate with .NET webservice client.

In my scnario , I am trying to call a HTPS webserive in to NWDS?

for this do I need to configure my sap dispatcher and SAP J2EE as SSL?

Krishna

Former Member
Former Member
0 Kudos

Srinivas many thanks for confirming this, I will go head and configure my SAP J2EE engine for SSL, then I will try calling https webservice from the NWDS and I will let you know how it goes.

Krishna

Former Member
0 Kudos

Hi Krishna,

The solution for ur problem is available with the stack trace itself, if u have seen that.

Solution:

The authentication on the proxy for a Web Service Request using SSL fails with the message "SSL over Proxy with proxy authentication failure. Missing library tc_sec_https.jar. Please see SAP Note 753002 2004" The problem is solved by entering the library tc_sec_https.jar and tc_sec_saml_util.jar into the Java CLASSPATH. The libraries can be added either using the IDE function "set additional libraries" in the context menu of the project (Java Perspective) or from the server (Path /usr/sap/<SID>/JC<Instance Number>/j2ee/cluster/server0/bin/ext).

In addition, the SAP Java Cryptographic Toolkit (that is, iaik_jce.jar and not iaik_jce_export.jar) must be contained in the class path for using SSL, and the "JCE Unlimited Strength Jurisdiction Policy files" of the JDK manufacturer must be installed.

try this & check whether u r still getting same problem.If after that also u get same problem ,open OSS ticket for component "BC-JAS "

regards

Sumit

Former Member
0 Kudos

Dear <u><b>Omri & Sumit</b>,</u>

Guys many thanks for your time to responding on this issue.

I received only https url and I do not have one to access on http, but I tried this way to access the http url based on https:

Presently my https url is as follows:

https://host:4444/clientname/services/GetData/wsdl/GetIno.wsdl,

I tried same one on http as follows:

http://host/clientname/services/GetData/wsdl/GetIno.wsdl, but page cannot be displayed message getting, so that the url I am using to access the http is might be not existed or my guess is not correct.

But the https url I can launch on browser but not on NWDS.

Just i sent an eamil to see whether they have http url, If I recieve http url then i will test Omri work around and let you know.

<u><b>Sumit:</b></u>

As per SAP Note 753002 2004 “The problem is solved by entering the library tc_sec_https.jar and tc_sec_saml_util.jar into the Java CLASSPATH”

I downloaded the these jars from SAP service market place and added them to my project CLASSPATH, along with that added SAP Java Cryptographic Toolkit (that is, iaik_jce.jar) but no luck. Still getting same error, please advice.

Krishna<b></b><b></b>

former_member182374
Active Contributor
0 Kudos

Hi,

A few things:

1) In my case we used a Web Service that we've developed so it was available to us as http (from the intranet) and we used it as https for external users (internet).

I'm not sure that your "external" Web Service supports http.

2) With all due respect to SAP note I don't see why we need to install stuff on the client (development) compuer just to <b>IMPORT</b> https Web Services...

3) A quick and dirty workaround to your problem would be using the deprecated Web Service model (not adaptive). This will surely work for https

Regards,

Omri

Former Member
0 Kudos

Hi Omri,

I tried that option eather, But this time after selecting the option Local file system or URL, >>NEXT >> WSDL: https url here >>NEXT >> Different error this time : "Invalid WSDL or WSDL not found , please specify different wsdl or check wsdl location entered on previous wizard page."

Krishna