Re: Security with Tomcat and Soap

2001-08-10 Thread Rich Catlett
In general it's a really bad idea to give all permissions to anything except maybe to the jdk, or else you might as well not have security running any way. To fix your problem here is a sample start script to use when starting up tomcat, you'll have to change as approiate as you use a windows

Re: Best way to send XML over Soap?

2001-08-10 Thread Rich Catlett
Take a look at the mime sample. Rich Catlett Huong Phan Thu wrote: >Hi, >Have I missed any follow-up messages? Could you please let me know how >to send XML file as attachment inside a message? >Thanks > > >Huong Phan >Email: [EMAIL PROTECTED] > > >|-Orig

RE: Best way to send XML over Soap?

2001-08-10 Thread Damien Vincent
I use the XMLParameterSerializer (as a type mapper) and it's work fine for me too. (this type mapper serialize a DOM into XML) The (small) difference with the 'XML as String' is that the XML is not encoded into the Soap enveloppe. But, the XML is directly 'parsable' by the client. Damien. -Me

Security with Tomcat and Soap

2001-08-10 Thread Steeve Gilbert
I've been using Soap with Tomcat and now I want to add the security features of Tomcat. The server starts fine except fort weird little error message: XXX resource not found !!! /org/apache/tomcat/resources/web.dtd sun.misc.Launcher$AppClassLoader XmlMapper: Can't find resource for entity: -//Su

Re: Does Apache SOAP use DOM for parsing/representation of XML?

2001-08-10 Thread Sam Ruby
Morten J Nielsen wrote: > > Is it possible (configuration) to use a SAX parser with Apache SOAP instead > of DOM? Axis is a SOAP implementation based on SAX. See http://xml.apache.org/axis/index.html . - Sam Ruby

Re: Best way to send XML over Soap?

2001-08-10 Thread Steeve Gilbert
I use the "Sending XML as String" and it works fine for me. I haven't encounter performance issues yet and I've tested it with 100k of data. I guess it's the best one for interoperability since it's a simple String. Steeve... Michael Svoboda <[EMAIL PROTECTED]> on 10/08/2001 07:23:42 AM

Re: message from c++ client to java server.

2001-08-10 Thread Steeve Gilbert
Do you have a WSDL file for your C++ client to point to so it can identify the service? If so make sure that your service:address is http://localhost:8080/soap/servlet/rpcrouter http://localhost:8080/soap/servlet/rpcrouter"/> Check that out and give us some feedback. Good

RE: Does Apache SOAP use DOM for parsing/representation of XML?

2001-08-10 Thread Morten J Nielsen
Hi, Thanks for the many inputs, they have been to great help. My conclusion is that Apache SOAP is based on DOM, and using the Message Service (which includes the Envelope in the service method). There are direct access to the DOM three through the header and body objects. The dom objects are r

Re: Does Apache SOAP use DOM for parsing/representation of XML?

2001-08-10 Thread Aleksander A Slominski
> I had to create a function to remove the blank nodes though that are created > since there are endlines and something else I never found out what they > where (but isWhiteSpace() results in true). You will get extra nodes that > display as blank if you don't. hi, this is because DOM and underl

Re: Unsupported response content type when running the sample addressbook or other

2001-08-10 Thread Tom Myers
At 04:17 PM 8/10/2001 +0200, Franck Baniere wrote: ... >E:\soap-2_2\samples\calculator>java >samples.calculator.Calculator http://as001/s >oap/servlet/rpcrouter >[SOAPException: faultCode=SOAP-ENV:Protocol; >msg=Unsupported response content ty >pe "text/html; charset=iso-8859-1", must be: >"text/x

RE: Does Apache SOAP use DOM for parsing/representation of XML?

2001-08-10 Thread Glen Daniels
> Does the Apache SOAP API use DOM to represent the XML, and it > is possible > to get the DOM tree for the body element without creating a new parser > (SAX/DOM)? If you have generated a given Envelope from a parsed XML stream (rather than creating it programatically), the body entries collect

Unsupported response content type when running the sample addressbook or other

2001-08-10 Thread Franck Baniere
My Config : OS Win2K Server WebSphere 3.5.4 Apache SOAP 2.2 Xerces 1.3.4 When I run the sample code calculator or other from a client. I got errors: E:\soap-2_2\samples\calculator>java samples.calculator.Calculator http://as001/s oap/servlet/rpcrouter [SOAPException: faultCode=SOAP-ENV:Protoco

Re: How to configure Apache Soap Server?

2001-08-10 Thread Tom Myers
At 09:36 PM 8/10/2001 +0800, ºú¾þ wrote: >Hello soap-user > I installed Apache Soap. And I configured my server like > documents. And I can use server by Browser. But when I type > a command,"java org.apache.soap.server.ServiceManagerClient > http://localhost:8080/soap/serv

Re: Does Apache SOAP use DOM for parsing/representation of XML?

2001-08-10 Thread William Brogden
Morten J Nielsen wrote: > > Hi, > > Does the Apache SOAP API use DOM to represent the XML, and it is possible > to get the DOM tree for the body element without creating a new parser > (SAX/DOM)? Yes it uses DOM - you will have to dig into the source code to see where to get the Elements repr

RE: Does Apache SOAP use DOM for parsing/representation of XML?

2001-08-10 Thread Pete Roth
I'm not sure about getting a DOM without creating a new parser. I don't know of any way to do that. I do know how, with help from the group, now how to get a DOM of the XML returned. You have to create a new parser, but you may choose which one you would like to use. I use basically this code:

How to configure Apache Soap Server?

2001-08-10 Thread ºú¾þ
Hello soap-user I installed Apache Soap. And I configured my server like documents. And I can use server by Browser. But when I type a command,"java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list, into console, there is a

RE: Class Loading in SOAP/Tomcat - seems to be a bug

2001-08-10 Thread Christian Bernard
Yes, I have the same feeling like you about that situation. The problem you had seems to have the same origin as the problem I met with a web app, and other people too. I think that you have clearly exposed the reason of that strange behavior. I hope that this problem will be addressed for the n

Does Apache SOAP use DOM for parsing/representation of XML?

2001-08-10 Thread Morten J Nielsen
Hi, Does the Apache SOAP API use DOM to represent the XML, and it is possible to get the DOM tree for the body element without creating a new parser (SAX/DOM)? Is it possible (configuration) to use a SAX parser with Apache SOAP instead of DOM? Any imput is apreciated! Regards Morten Jul Niel

RE: Session Tracking question. --> Use of EJB

2001-08-10 Thread nielsenk
What you are doing is fine, there is nothing wrong with putting a reference to Session Bean in a http session. Having said that I try to avoid Stateful session beans in any architecture. In most situations I have seen, one can get away from Stateful session beans with good design. If this applic

Re: Class Loading in SOAP/Tomcat - seems to be a bug

2001-08-10 Thread Andreas Ullmann
Seems that this is a bug in apaches SOAP. Because: I tried to acces an EJB which is running in Weblogic 6 via a JavaBean accessed from the RPCRouter. The JavaBean wasn't able to get a reference an the EJB, although the JNDI lookup was successfully. After a long period of trying around I

Weakness of Soap?

2001-08-10 Thread Michael Svoboda
How would you send a database query back to a unknown Soap Client? With unknown I mean that the client should be free to use any Soap-Implementation. Therefore it isn't possible for me to write any Serializer/Deserializer for a special object that could hold the information from a generic query.

Re: Best way to send XML over Soap?

2001-08-10 Thread Michael Svoboda
Does anybody can post examples to the different options: - Sending XML as a String - Unmarshal XML to the envelope - Sending XML as attachement (The Apache documentation isn't very clear to me) Which option is best suited for interoperability? Thanks Michael Svoboda Huong Phan Thu wrote: >

TR: does DOM2Writer have a bug ?

2001-08-10 Thread Damien Vincent
> Hi, > I use the XMLParameterSerializer to encode DOM into XML in a Soap > client (as a Parameter) > The Elements of my DOM belong to a specific namespace, but WITHOUT any > Prefix (according to namespace specifications). > Into the SOAP message, I'm surprised to notice that my DOM is > serializ

RE: Session Tracking question. --> Use of EJB

2001-08-10 Thread Morten J Nielsen
Yes you got it right. The reason why it is a bad idea is that potentialy it may take up a lot of resources (the instances in the container and maybe transaction contexts) which will not be an issue with statless and no EJB in the servlet session object. Regards Morten Jul Nielsen --

RE: Class Loading in SOAP/Tomcat

2001-08-10 Thread Christian Bernard
Hi All, I've recently noticed some very interesting things about that problem. Here are the facts : 0. Suppose Your Web Service application is deployed at %TOMCAT_HOME%\webapps\myapp. 1. It's not necessary to add the statement set CP=%CP%;%TOMCAT_HOME%\webapps\myapp\WEB-INF\classes to the tomca

RE: Session Tracking question. --> Use of EJB

2001-08-10 Thread Laurent Letellier
I am using a statefull sessionBean, and yes the container must have an instance of that bean for each user connected for all the reasons you exposed. However I don't clearly understand in your response why it is a bad idea to store one in the http session. I do have an idea extrapolating from wha

RE: Session Tracking question. --> Use of EJB

2001-08-10 Thread Morten J Nielsen
Hi Laurent, Regarding the out of synch for objects stored in the servlet session, this is of course only interesting for Entity EJB's. The problem is related to the transaction scope, if the Entity EJB is outside the transaction in which it was retrieved then each call will result in a call to t

RE: Session Tracking question. --> Use og EJB

2001-08-10 Thread Laurent Letellier
Hi Morten, Could you explain why/how the EJB could get out of synch if it is stored in the http session object? The thing is I had seen people do it the way you describe it but I didn't understand why. So I stored in the http session an object which has a reference to the statefull session bean

RE: Session Tracking question. --> Use og EJB

2001-08-10 Thread Morten J Nielsen
Hi Venkat, Just a question about your use of EJB. Am I right if I understood that you have a servlet for authentication which stores a EJB in the servlet session object? If this is the case then you may run into problems. As a good guideline don't store complexe objects in the servlet session

Newbie question about an error

2001-08-10 Thread sandro . ruch
hi all, When i try to test the service described in http://www.xmethods.net/detail.html?id=5 i allways get the error: "NoSuchMethodError: org.w3c.dom.Node: method getNamespaceURI()...; not found" If I check the http-headers going forth and back with a network-monitoring-tool everything seems to b