|
RE: SOAP + DODS: msg#00054java.enhydra.general
Hi Charles, Have you checked your multiserver logs for additional info on the exception? I'm not sure what kind of application you have written. Is it a Web App (WAR)? Or is it a multiserver application, using presentation objects? My only experience with SOAP has been with "GLUE". DODS uses services provided by Enhydra. So any thread of execution must be wrapped with Enhydra.register and Enydra.unregister calls when attemtpting to use DODS. Remember this must be done for each request. I looked at the StandAlone class you referred to in the archives. I've never used it, but I believe that you will need to do something like this: 1. When you initialize your app, or servlet.. Instantiate your DodsStandaloneTest class. DodsStandaloneTest application = new DodsStandaloneTest(configFileName); 2. Your SOAP methods will need access to the application variable, and must use it to register with Enhydra. That way DODS can get access to the DB manager and other stuff it needs. Enhydra.register takes your current thread ID and stores it in a HashTable together with the application instance. That way it can map DODS calls made by a thread, to the correct DB manager. Enydra.register(application); try { run your DODS methods here... } finally { Enhydra.unRegister(); } Hope this helps, however I have not yet tried this. Mike. -----Original Message----- From: Charles Rector [mailto:crector@xxxxxxxxxxxxx] Sent: Monday, October 14, 2002 11:29 AM To: enhydra@xxxxxxxxxxx Subject: Enhydra: SOAP + DODS Hey, I'm using Enhydra 5.0 and DODS and have recently set up SOAP on one of our (my company's) servers. I have a service deployed and have written a client which communicates with it. I believe it's set up correctly, as far as what's talking to what and where -- if I specify a differing ID, it tells me it is an unknown service, and if I alter the URL I get an UnknownHostException. There seems to be one last piece from the puzzle missing, however, since when I run my client I receive the following fault code and string: SOAP-ENV:Server com/lutris/dods/builder/generator/query/QueryException While browsing through this mailing list I found a DodsStandaloneTest class, which I attempted to use by pointing it to the appropriate conf file on our server, but to no effect -- perhaps I'm simply using it incorrectly. Does anybody have an idea as to what might be my problem? Even a link to some relevant information would be much appreciated. Thanks! -- Chuck Rector Internet Exposure, Inc. http://www.iexposure.com crector@xxxxxxxxxxxxx Web Development - Web Marketing - ISP Services (612) 676-1946 _______________________________________________ Enhydra mailing list Enhydra@xxxxxxxxxxx http://www.enhydra.org/mailman/listinfo.cgi/enhydra
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: session persistence?, Scott Dietrich |
|---|---|
| Next by Date: | RE: session persistence?, Dragan Radakovic |
| Previous by Thread: | SOAP + DODS, Charles Rector |
| Next by Thread: | Re: SOAP + DODS, Luís Fraga |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |