i am trying to login to a HTTPs site using a Java service.
i have a jar file that has the class to connect to the HTTPs site.
i created a java service that instantiates the class and uses the logon function to log to the site. but iam getting an error
General Exception:Illegal call to webMethods https protocol handler
but when i created a java class outside webmethods and tried to call the jar file it connected to the website.
is there any HTTPS isuue that i have to take care like the keystore
this is an urgent situation can anybody help me out.
This link will show the response:
In short download and install JSSE and amend the server.bat with the following:
Thanks Topster for the solution,
It did solve the problem.
What We did is , In the Java code added the line
In the webmethods service . After the call to the java class’s method is completed, we reset the above property back to the original value .
Hoping that the HTTPs Listner wont get messed up in this way.
We are trying to hit a URL using https call using a third party API,but we get error “java.lang.RuntimeException: Illegal call to webMethods https protocol handler”.On the other hand same call using http is giving proper response.
Do we need to download JSSE.jar.If so where it is to be placed,from where to download and which version.After that is it required to change server.bat as above?
Is there any other solution?
read an action the thread link and all will work as shown above
- download and install JSSE
- in your custom code, using in-built service to set https protocol handler to com.sun.net.ssl.internal.www.protocol, after call has been made rest this to com.wm.net.protocol
Thanks for help! It worked now . But now we are facing another problem.
When we try to run a java service from WebMethods we get “No trusted certificates found Error”.Same code is running if we are running as standalone java code.Attached is the code.
What could be the problem?
I am facing same problem. I am trying to access https URL in java service using Web Method Developer.
I already have jsse.jar at location /Program Files/j2sdk1.4.2/jre/lib on my webmethod server and I am setting following values:
// Dynamic registration of JSSE provider
// Need to be set
Is this right? I get the error as →