Hi,
Attach an example of problem
Note: If you change the URL for http protocol the java service work properly.
We created the following Java Service.
In the share tab I have the following imports.
import java.net.*
import java.security.*
import java.io.*
import javax.net.ssl.*
Java source code:
String buffer = “”;
try
{
System.setProperty(“java.protocol.handler.pkgs”, “com.sun.net.ssl.internal.www.protocol”);
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
HttpURLConnection conn;
URL url = new URL(“https://www.microsoft.com”);
conn = (HttpURLConnection)url.openConnection();
InputStream in = conn.getInputStream();
InputStreamReader reader = new InputStreamReader(in);
BufferedReader br = new BufferedReader(reader);
String theLine;
while ((theLine = br.readLine()) != null)
{
buffer += theLine;
}
}catch(Exception e)
{
buffer = e.toString();
}
// pipeline
IDataCursor pipelineCursor_1 = pipeline.getCursor();
IDataUtil.put( pipelineCursor_1, “Msg”, “Hello There” );
IDataUtil.put( pipelineCursor_1, “HTML”, buffer );
pipelineCursor_1.destroy();