This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Pene charl

Greenhorn
+ Follow
since Jun 14, 2011
Pene likes ...
Hibernate Oracle Java
Mumbai(India)
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pene charl

Hi Sachin,
The problem arose because i missed out some Jdeveloper specific JAR files,which is needed for the web service development in JDeveloper.
So you should make sure to included all the JAR files.
7 years ago
Hi
I want to know customize setting of header and footer in internet explorer for print task.
I was tried through registry setting for print task but that wasn't proper solution to implement in secure environment.
So is there any possible way to do with the help of javascript or html/css?
You just add the below line in a path of tomcat\conf\catalina.properties
org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false to the end of ${catalina.home}\conf\catalina.properties
That should be work.
8 years ago
A servlet can handle concurrent requests in a same time.That situation one can modify the instance data while other person has to work on that same inside service().Here deadlock could be occured.so,we need to avoid that situation with the help of thread safe (i.e synchronized keyword).
8 years ago
Make sure the path of image located in your testing environment
I'm calling the .net based web service through java console(i.e command prompt).
while i had invoke that service,it was show the error related to jdev-rt.jar.
Is this jar compatability with linux and windows?
please resolve my issue
9 years ago
I resolved that problem..
That issue based on JDeveloper.
Thanks to all ..
9 years ago

Pene charl wrote:I am not using any tool like AXIS.
Just using JDeveloper to create client stub and also got the WSDL service discription from server side,that WSDL generated based on .net.So it had used document style.
Is there any interoperability problem between .net and java?
When i make request to "https" service that's showed the exception.

I put my code snippet of client stub here:



//Initialization
m_httpConnection = new OracleSOAPHTTPConnection();
props.put(OracleSOAPHTTPConnection.PROXY_AUTH_TYPE, "basic");
props.put(OracleSOAPHTTPConnection.PROXY_USERNAME, "username");
props.put(OracleSOAPHTTPConnection.PROXY_PASSWORD, "password");
props.put(OracleSOAPHTTPConnection.PROXY_HOST, "host address");
props.put(OracleSOAPHTTPConnection.PROXY_PORT, "port no");
props.put("javax.net.ssl.trustStore", "/localdirectorypath");
props.put("javax.net.ssl.trustStorePassword", "password");
m_httpConnection.setProperties(props);
private String _endpoint = "https://URL/URN";

public String getEndpoint()
{
return _endpoint;
}

public void setEndpoint(String endpoint)
{
_endpoint = endpoint;
}

public String functionName(String Parameters) throws Exception
{
URL endpointURL = new URL(_endpoint);

Envelope requestEnv = new Envelope();
Body requestBody = new Body();
Vector requestBodyEntries = new Vector();

String wrappingName = "functionName";
String targetNamespace = "https: URL";
Vector requestData = new Vector();
requestData.add(new Object[] {"WSDL element", parameter passed by function});
requestData.add(new Object[] {"WSDL element", parameter passed by function});
......
requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
requestBody.setBodyEntries(requestBodyEntries);
requestEnv.setBody(requestBody);

Message msg = new Message();
msg.setSOAPTransport(m_httpConnection);
//Exception Occured here
msg.send(endpointURL, "https://URL/URN(ie.functionName)", requestEnv);
Envelope responseEnv = msg.receiveEnvelope();
Body responseBody = responseEnv.getBody();
Vector responseData = responseBody.getBodyEntries();
return (String)fromElement((Element)responseData.elementAt(0), java.lang.String.class);
}


Please help me to resolve.

9 years ago
I am not using any tool like AXIS.
Just using JDeveloper to create client stub and also got the WSDL service discription from server side,that WSDL generated based on .net.So it had used document style.
Is there any interoperability problem between .net and java?
When i make request to "https" service that's showed the exception.

I put my code snippet of client stub here:



//Initialization
m_httpConnection = new OracleSOAPHTTPConnection();
props.put(OracleSOAPHTTPConnection.PROXY_AUTH_TYPE, "basic");
props.put(OracleSOAPHTTPConnection.PROXY_USERNAME, "username");
props.put(OracleSOAPHTTPConnection.PROXY_PASSWORD, "password");
props.put(OracleSOAPHTTPConnection.PROXY_HOST, "host address");
props.put(OracleSOAPHTTPConnection.PROXY_PORT, "port no");
m_httpConnection.setProperties(props);
private String _endpoint = "https://URL/URN";

public String getEndpoint()
{
return _endpoint;
}

public void setEndpoint(String endpoint)
{
_endpoint = endpoint;
}

public String functionName(String Parameters) throws Exception
{
URL endpointURL = new URL(_endpoint);

Envelope requestEnv = new Envelope();
Body requestBody = new Body();
Vector requestBodyEntries = new Vector();

String wrappingName = "functionName";
String targetNamespace = "https: URL";
Vector requestData = new Vector();
requestData.add(new Object[] {"WSDL element", parameter passed by function});
requestData.add(new Object[] {"WSDL element", parameter passed by function});
......
requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
requestBody.setBodyEntries(requestBodyEntries);
requestEnv.setBody(requestBody);

Message msg = new Message();
msg.setSOAPTransport(m_httpConnection);
msg.send(endpointURL, "https://URL/URN(ie.functionName)", requestEnv);

Envelope responseEnv = msg.receiveEnvelope();
Body responseBody = responseEnv.getBody();
Vector responseData = responseBody.getBodyEntries();
return (String)fromElement((Element)responseData.elementAt(0), java.lang.String.class);
}


Please help me to resolve.
9 years ago
I had post the exception while to invoke .NET web service from java client.
Cant able to find out what is the exact problem behind this exception.
Please help me to resolved.

"SOAPException: faultCode=SOAP-ENV:IOException; msg=ModuleException thrown by HTTPClient while posting.HTTPClient.AuthSchemeNotImplException: NTLM; targetException=java.io.IOException: ModuleException thrown by HTTPClient while posting.HTTPClient.AuthSchemeNotImplException: NTLM"
9 years ago
Struts in Action of manning publication is the best for novice..

Prince Charl
9 years ago
I need the clarification to choose advantageous web application framework between Struts and Spring.
Please give the perfect idea regarding to choose best one.
9 years ago
The best way to show error messages for end user,just make string object and return from the DAO layer function to jsp
And the jsp has to produce your own textual based message to end user.
This is easy and best option for web related projects instead of exception.
9 years ago
JSP