RE: Deploying Apache SOAP on Tomcat....!
Hi Mahender, Have you registered the RPCRouterServlet with the tomcat servlet engine? Try that. ~Venkat Reddy -Original Message-From: mahender reddy G [mailto:[EMAIL PROTECTED]]Sent: Thursday, October 18, 2001 5:06 AMTo: [EMAIL PROTECTED]Subject: Deploying Apache SOAP on Tomcat! Hello All I am installing apache SOAP on Tomcat by (method 2 defined in istall guide) Creating a new in Tomcat 's server.xml file, adding soap.jar file and samples to CLASSPATH. But i am getting error A Servlet Exception Has Occurred Exception Report:javax.servlet.ServletException: org/apache/soap/server/ServiceManager at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) while running the Apache SOAP Admin. and when deploy using first method(placing soap.war in tomcat weapps directory iam able to run sucessfully..any body help out... Thanks in advance G Mahender ReddyVisual Quest India
RE: Session Tracking question.
Hi, How can we restrict the client to use the same 'Call' Object over and over for invoking different SOAP services that are deployed on a web server? Is it by resetting the targetObjectURI and the method & parameters of that 'Call' Object? If this is the case then it is limitation to what SOAP can do under session scope. This means that the 'Call' Object is tied to the SOAP Service that is of scope 'session' and not the client itself. Well any ways this is not my problem child. My problem is something like this. When a User logs in, a Servlet handles the authentication and creates and EJB Object that is stored in the session object for that user. I need to access and invoke a business method on this EJB object some time later when the user decides to save his work to the database. My question is how do I get the handle to this EJB Object, that is stored in the session object, from my SAOP Service. Is there any way to access the session object that was originally created by the servlet during user authentication from a SOAP Service? Christian -- Thanks for the reply. ~Venkat -Original Message- From: Christian Cerny [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 1:40 AM To: '[EMAIL PROTECTED]' Subject: RE: Session Tracking question. Hi, Apache Soap 2.2 is able to track a HttpSession. As long as you are working with the same Call-object on the client-side your HttpSession is tracked using cookies. (this behavior is "on" per default) Futhermore the value of the "scope" Parameter in your DeploymentDescripter for your Class should be "session" for getting session-tracking to work. If you set it up like this all requests, done by the >same< client-side Call object, invoke methods on the >same< Object on the Server. So your are able to store your App-Session as class-member. btw: It's working fine for me in an ap-soap <-> ap-soap scenario. But i see quite a lot of issues getting this to work in an interop-scenario with other SOAP-Client Implementations. regards ChrisC -Original Message- From: venkat reddy [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 7:58 PM To: '[EMAIL PROTECTED]' Subject: Session Tracking question. Hi All, I've tried looking up the archives for session tracking but could not find any. I am currently using SOAP services that are request based. Now I need to use them on a per session base and access the session object for a particular user request. My scenario is something like this. At use authentication I create a Session Bean an place it in the Session Object for that user. Now I need to access this session object depending on some actions performed by the user on the client side. The client sends the request for the soap service that has to handle the data it sends and this soap service has to access the session bean that was created during the authentication process for that user. Can any one suggest/discuss something here? Please feel free to ask any questions. ~Venkat
Session Tracking question.
Hi All, I've tried looking up the archives for session tracking but could not find any. I am currently using SOAP services that are request based. Now I need to use them on a per session base and access the session object for a particular user request. My scenario is something like this. At use authentication I create a Session Bean an place it in the Session Object for that user. Now I need to access this session object depending on some actions performed by the user on the client side. The client sends the request for the soap service that has to handle the data it sends and this soap service has to access the session bean that was created during the authentication process for that user. Can any one suggest/discuss something here? Please feel free to ask any questions. ~Venkat
RE: TcpTunnelGui.
Is this ( http://www-3.ibm.com/services/uddi/testregistry/inquiryapi) the router URL at the IBM site? I tried that URL in a browser and it displayed a Deployment discriptor. Check the correct url and try. ~Venkat -Original Message- From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 5:14 AM To: [EMAIL PROTECTED] Subject: Re: TcpTunnelGui. Yes, you can. But maybe you are behind a firewall or a proxy and/or you cannot resolve the Domain Name. There is another good tool you can try, which I use for Debugging. Have a look at http://www.pocketsoap.com/tcptrace/. Tarun Garg schrieb: > > Can I use TcpTunnelgui to tunnel my soap requests to some host other than > the localhost ? > I tried to tunnel the requests to the ibm uddi test registry site and get > the following error. > What am I doing wrong ? > > C:\apache\soap\soap-2_2>java org.apache.soap.util.net.TcpTunnelGui 8070 > http://www-3.ibm.com/services/uddi/testregistry/inquiryapi 80 > java.net.UnknownHostException: > http://www-3.ibm.com/services/uddi/testregistry/inquiryapi > at java.net.InetAddress.getAllByName0(InetAddress.java:571) > at java.net.InetAddress.getAllByName0(InetAddress.java:540) > at java.net.InetAddress.getByName(InetAddress.java:449) > at java.net.Socket.(Socket.java:100) > at > org.apache.soap.util.net.TcpTunnelGui$3.run(TcpTunnelGui.java:198)
RE: Problem Returning BEAN
well My method takes an 'int' datatype so I set the params vector with a parameter object for int. The method returns a bean object so I set a SoapMappingRegistry with the Bean class and the BeanSerializer and set the registry in the call object. Should that be sufficient to extract my bean class object from my response object or how should I go about this. what is the provider used for? Should i create any provider and set it in the call object to receive such an object as the return value? I know that My bean can use the BeanSerializer that is provided in the soap package. I get a bean object but the data variables in the object are not set to the values that I set on the server-side deployed service. Any help is very much appreciated. Venkat -Original Message- From: Kartheek Hirode [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 2:07 PM To: [EMAIL PROTECTED] Subject: RE: Problem Returning BEAN The encoding style is set in the Response constructor in your RPCProvider class. This could be the same as the incoming 'call' or something different if that is what is needed. resp = new Response (targetID, callMethodName, returnParam, null, null, call.getEncodingStyleURI(), respContext); The TcpTunnelGui might help you in debugging the contents of the Response if nothing is showing up on the client. --KH -Original Message- From: venkat reddy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 1:15 PM To: '[EMAIL PROTECTED]' Subject: Problem Returning BEAN How do we set the encoding style of the return value of a soap call? I have a service that creates a bean which has nothing but a couple of class variable set to data from the database. In the service side I get the data create this bean object and return it. On the client when i extract the object from the result, the bean has no values. The bean is retrieved from the response object but has no values. I double checked that values have been set on the server side. Can you one figure out Y? ~Venkat
Problem Returning BEAN
How do we set the encoding style of the return value of a soap call? I have a service that creates a bean which has nothing but a couple of class variable set to data from the database. In the service side I get the data create this bean object and return it. On the client when i extract the object from the result, the bean has no values. The bean is retrieved from the response object but has no values. I double checked that values have been set on the server side. Can you one figure out Y? ~Venkat
Proxy Servlet check
Hi ALL, Scenario :: I have a couple of SOAP Services that should be allowed access only if the user has logged in and has access permissions to the ROUTER Servlet. If the user does not have access priveleges, since the proxy servlet already got the SOAP ENV with the request from a SOAP Client, the proxy servlet should itself generate a fault and return to the client from where ever it is calling. Problem: I took a look at the RPCRouterServlet code and similarly through a SOAPException with a new faultcode and faultstring. But the when I write the newly generated SOAP-ENV with the faultcode inside it, a message is out put at the client saying the "connection has been reset by peer : socket write error". I debugged the incoming and outgoing request/response using TcpTunnelGui the out going message is exactly what I want that shows up in the tunnel tool. But on the client side I see this weird error, saying connection has been reset by peer. Note:: The proxy servlet has to generate the SOAP ENV and write it back to the SOAP Client. Any help will be strongly appreciated. I've been stuck at this point for days now. Some body wake and suggest something atleast(related to the subject ofcourse). -Regards Wincat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SOAP GURUS >> Help needed URG....
Hi All, I've put up this question four times before but could not get an answer. The subject for my earlier mails are as follows :: "Proxy request routing" and "PROXY between the CLIENT and the SERVER". Please take a look for an understanding of the scenario more in detail. I once again present the same here. My SOAP client sends a request to a "proxy" servlet which then should 'forward/redirect' the request to the "RPCRouterServlet" if the user is authenticated to use the deployed SOAP service else the "proxy" servlet should generate a SOAP Envelop with a fault code and a fault string i.e. basically a fault node in the SOAP-ENV. I took a look at the RPCRouterServlet in doing so and in the scenario where the authentication failed threw a SOAPException with a faultcode and a message. From there on I used the exact same code of the RPCRouterServlet to process this exception and generate a SOAP Fault Envelop. Then I write this generated envelop to the response. The problem is that I see a SocketException on the client side. The TcpTunnelGui shows the generated SOAP Envelop which is exactly what I needed but I'm unable to see it on the client side. Below is the listing of the exception that I see on the client side. Any help or insight into this issue is greatly appreciated. App Server used :: Weblogic 5.1 SP8 --Wincat java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112) at org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:461 ) at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:202) at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:208) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) Caught SOAPException (SOAP-ENV:Client): Connection aborted by peer: socket write error [SOAPException: faultCode=SOAP-ENV:Client; msg=Connection aborted by peer: socket write error; targetException=java.net.SocketException: Connection aborted by peer: socket write error] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:228) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HELP HELP HELP HELP!! SOAP DEV's r u there!
Hi All, I've put up this question thrice before but could not get an answer. The subject for my earlier mails are as follows :: "Proxy request routing" and "PROXY between the CLIENT and the SERVER". Please take a look for an understanding of the scenario more in detail. I once again present the same here. My SOAP client sends a request to a "proxy" servlet which then should 'forward/redirect' the request to the "RPCRouterServlet" if the user is authenticated to use the deployed SOAP service else the "proxy" servlet should generate a SOAP Envelop with a fault code and a fault string i.e. basically a fault node in the SOAP-ENV. I took a look at the RPCRouterServlet in doing so and in the scenario where the authentication failed threw a SOAPException with a faultcode and a message. From there on I used the exact same code of the RPCRouterServlet to process this exception and generate a SOAP Fault Envelop. Then I write this generated envelop to the response. The problem is that I see a SocketException on the client side. The TcpTunnelGui shows the generated SOAP Envelop which is exactly what I needed but I'm unable to see it on the client side. Below is the listing of the exception that I see on the client side. Any help or insight into this issue is greatly appreciated. --Wincat java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112) at org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:461 ) at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:202) at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:208) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) Caught SOAPException (SOAP-ENV:Client): Connection aborted by peer: socket write error [SOAPException: faultCode=SOAP-ENV:Client; msg=Connection aborted by peer: socket write error; targetException=java.net.SocketException: Connection aborted by peer: socket write error] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:228) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
PROBLEM USING PROXY SERVLET
Hi All, I've put up this question once before but could not get an answer. The subject for my earlier mails are as follows :: "Proxy request routing" and "PROXY between the CLIENT and the SERVER". Please take a look for an understanding of the scenario more in detail. I once again present the same here. My SOAP client sends a request to a "proxy" servlet which then should 'forward/redirect' the request to the "RPCRouterServlet" if the user is authenticated to use the deployed SOAP service else the "proxy" servlet should generate a SOAP Envelop with a fault code and a fault string i.e. basically a fault node in the SOAP-ENV. I took a look at the RPCRouterServlet in doing so and in the scenario where the authentication failed threw a SOAPException with a faultcode and a message. From there on I used the exact same code of the RPCRouterServlet to process this exception and generate a SOAP Fault Envelop. Then I write this generated envelop to the response. The problem is that I see a SocketException on the client side. The TcpTunnelGui shows the generated SOAP Envelop which is exactly what I needed but I'm unable to see it on the client side. Below is the listing of the exception that I see on the client side. Any help or insight into this issue is greatly appreciated. --Wincat java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112) at org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:461 ) at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:202) at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:208) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) Caught SOAPException (SOAP-ENV:Client): Connection aborted by peer: socket write error [SOAPException: faultCode=SOAP-ENV:Client; msg=Connection aborted by peer: socket write error; targetException=java.net.SocketException: Connection aborted by peer: socket write error] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:228) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
PROBLEM :: PROXY QUESTION??
Hi All, I've put up this question once before but could not get an answer. The subject for my earlier mails are as follows :: "Proxy request routing" and "PROXY between the CLIENT and the SERVER". Please take a look for an understanding of the scenario more in detail. I once again present the same here. My SOAP client sends a request to a "proxy" servlet which then should 'forward/redirect' the request to the "RPCRouterServlet" if the user is authenticated to use the deployed SOAP service else the "proxy" servlet should generate a SOAP Envelop with a fault code and a fault string i.e. basically a fault node in the SOAP-ENV. I took a look at the RPCRouterServlet in doing so and in the scenario where the authentication failed threw a SOAPException with a faultcode and a message. From there on I used the exact same code of the RPCRouterServlet to process this exception and generate a SOAP Fault Envelop. Then I write this generated envelop to the response. The problem is that I see a SocketException on the client side. The TcpTunnelGui shows the generated SOAP Envelop which is exactly what I needed but I'm unable to see it on the client side. Below is the listing of the exception that I see on the client side. Any help or insight into this issue is greatly appreciated. --Wincat java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112) at org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:461 ) at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:202) at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:208) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) Caught SOAPException (SOAP-ENV:Client): Connection aborted by peer: socket write error [SOAPException: faultCode=SOAP-ENV:Client; msg=Connection aborted by peer: socket write error; targetException=java.net.SocketException: Connection aborted by peer: socket write error] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:228) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
(URG) PROXY between the CLIENT and the SERVER
Hi All, I have a scenario in which I have to send SOAP Requests to a PROXY and the proxy dispatches the request to the RPCRouterServlet if the client is authenticated. So if the client is not authenticated the PROXY should generate and return a SOAP Fault saying invalid access The problem I encounter is as follows:: When the user authentication works and is a valid user, I forward the request to the RPCRouterServlet using the requestdispatcher. But when not authenticated I'm successful in generating the soap fault but the client side gets this exception. java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112) at org.apache.soap.transport.TransportMessage.writeTo(TransportMessage.java:461 ) at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:202) at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:208) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) Caught SOAPException (SOAP-ENV:Client): Connection aborted by peer: socket write error [SOAPException: faultCode=SOAP-ENV:Client; msg=Connection aborted by peer: socket write error; targetException=java.net.SocketException: Connection aborted by peer: socket write error] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja va:228) at org.apache.soap.rpc.Call.invoke(Call.java:203) at MimeTestClient.main(MimeTestClient.java:55) Can Anyone let me know what is happening in here? The TcpTunnelGui shows the return soap envelop but I don't see it on the client Side. Any help would be greatly Appreciated. Thanks, Wincat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: call failed
Hi Rajshree, Got to give more info as to what was ur client side and what is ur server side deployment. Better luck next time... ;-) Wincat -Original Message-From: Rajshree [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 28, 1996 10:05 PMTo: [EMAIL PROTECTED]Subject: call failed Hi I am getting following error when trying to execute the stockquote example does anyone know the reason Ouch, the call failed: Fault Code = SOAP-ENV:Client Fault String = Unable to resolve namespace URI for 'xsd' Regards Rajshree
RE: Help wanted !!! Parameter types.....
Hi Das, I guess you can create a new Object using the value of your int or float. Remember the Integer Class and the Float class. Then on the server side you could retrieve then easily. -Regards, Venkat Reddy -Original Message- From: Das, Kuntal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 4:32 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Help wanted !!! Parameter types. Hi all, This is my second mail regarding the same subject as my previous one : how to pass a parameter which is of type, say, long or int. The general rule is, as mentined in the AddressBook example, doing params.addElement(new Parameter("acctId", java.lang.String.class, acctId, Constants.NS_URI_SOAP_ENC)); if we r passing a String literal. But what if we want to pass a long value or an int value, taking into consideration the Parameter constructor is Parameter(java.lang.String name, java.lang.Class type, java.lang.Object value, java.lang.String encodingStyleURI) ? PLease advice Thanks, Kuntal Das Charles Schwab & Co., Inc. Wireless Technology 45 Fremont, SF Email : [EMAIL PROTECTED] Phone : (415)667-4322 Live life to the brim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Proxy request routing.
Hi All, I would like to have a proxy kind of servlet that first accesses the session information of a user's SOAP RPC call and upon proper priveleges allow the RPC to execute. Did anyone deal with such a situation before? If so, please forward me the 'subject' for that posting in the archieves. Below is the diagramatic view of my setting. SOAP Client > Proxy Servlet -> RPCRouterServlet ---> SOAP Services +(EJB's) Session Beans (applet) (Services deployed on weblogic server 5.1) The proxy servlet should basically check for authentication or session information(if already logged in) an then forward the call to the RPCRouterServlet if appropriate priveleges are seen. Even some direction of thought or hints would be greatly appreciated. --Wincat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]