Win a copy of Terraform in Action this week in the Cloud forum!

mohamed sellami

Greenhorn
+ Follow
since Jul 22, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mohamed sellami

Hi Ulf

i found the fault it was in line 12 of the jsp:

i replaced System.getProperty("endpoint") with "http://localhost:8080/jaxrpc-TestCNRPS/TestCNRPS"

System.getProperty("endpoint") returned null but in the java class i maked for the test it returned "http://localhost:8080/jaxrpc-TestCNRPS/TestCNRPS"

anyway it's working fine now

thank you Ulf
[ September 07, 2005: Message edited by: mohamed sellami ]
16 years ago
yeah that's right but the code inside the "TestCNRPSIF_Stub" class is very complex

but what makes me crazy is that it works using a simple class but not with a jsp page??
16 years ago
yes the exception is thrown by the TestCNRPSIF_Stub class!!!

it was a typing error, i edited the message, thx
16 years ago
that's line 87 on TestCNRPSIF_Stub.java

86 } catch (JAXRPCException e) {
87 throw new RemoteException(e.getMessage(), e);
88 }


??

[ September 06, 2005: Message edited by: mohamed sellami ]
[ September 07, 2005: Message edited by: mohamed sellami ]
16 years ago
the method exist get the identier of a pesron, connect to a database and verify if he exists.

but i think th problem is not there, cause i tried the exempl on a dos prompt with a client class having the same code and it worked fine.
16 years ago
hello

i'm trying to invoke a WS from a jsp page, working on tomcat + jwsdp

the ws i'd created and deployed on the server is named TestCNRPS, it contains the method: int exist(int ..)

i wrote this jsp page for testing :

--------------------------
1<%@ page contentType="text/html;charset=windows-1252" import="cnrps.*" %>
2<HTML>
3<HEAD>
4<TITLE>Appel service Web</TITLE>
5</HEAD>
6
7<BODY>
8<%
9int num_cin=45475645;
10
11TestCNRPSIF_Stub stub = (TestCNRPSIF_Stub)(new TestCNRPSService_Impl().getTestCNRPSIFPort());
12stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,System.getProperty("endpoint"));
13out.println(stub.exist(num_cin));

%>
</BODY>
</HTML>
----------------------------------

but i received this exception:

java.rmi.RemoteException: Erreur de transport HTTP : java.lang.NullPointerException; nested exception is:
Erreur de transport HTTP : java.lang.NullPointerException
cnrps.TestCNRPSIF_Stub.exist(TestCNRPSIF_Stub.java:87)
org.apache.jsp.invoqueWS_jsp._jspService(invoqueWS_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:268)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:258)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:205)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Has someone an idea ??

thx
[ September 07, 2005: Message edited by: mohamed sellami ]
16 years ago
hello

idon't know exactlly your prb
but i created a simple web service for addition under tomcat+jwsdp you can look at it if you want there is the service part(serveur) and the client part

it works fine

i hope it will help you

ps: comment are in fench

http://rapidshare.de/files/3261067/D_veloppement_d_un_service_Web_avec_jwsdp.zip.html
16 years ago
because using componment it can't be done (i tried it with ejb's)
that's why i would know if someone tried it whith web services!!
16 years ago
hello

i would know if it's possible to invoke a web service from another one directly?? i mean without using any technique of composition (like BPEL)

thanks
16 years ago