Re: Rephrased: Running with separate SOAP stacks?
>These are clients > so they can talk to the service AddressBook from any machine, and it will be > initialized (with 0 records, if you've removed the addEntry lines) as soon as > any client does so. I guess this is what I was trying to get around, I wanted the initialisation to occur before the client made contact. Its not a major thing, but was just trying it to understand the code better. >It might be better to edit the AddressBook constructor so it calls on your > utility code, though, to populate the address book within the same JVM. Surely > in anything realistic you'd be using a database of some sort? Absolutely. Thanks for the help. (Again!) Cheers.
RE: Soap error on new installation
note, the files are removed physically as well. I can successful triger a nice error message by making a typo in the method name. It'll tell me that the method name doesn't exist. -Original Message- From: pravin pachbhai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:30 PM To: [EMAIL PROTECTED] Subject: Re: Soap error on new installation SET CLASSPATH=C:\soap\samples\addressbook;c:\xerces\xerces.jar;%CLASSPATH% before running this example remove the jaxp.jar and parse.jar file from tomcat\lib folder. use the xerces1.4 or greater version. --- HariNam Singh <[EMAIL PROTECTED]> wrote: > Hi, > > I installed SOAP on Tomcat a few hours ago, and > still can't get my sample > service to run properly. > > As I saw lots of notes on XML parser, I made sure > that mine was in the > front. As it still didn't work, I got the latest > from jaxp. Then 1.4.1 > Xerces. Then 1.2.1 Xerces. Neither of those made it > work. Plus, the error > message totally undescript. See below, what the http > tunneling tool snaps > up: > > HTTP/1.0 500 Internal Server Error Content-Type: > text/xml; charset=utf-8 > Content-Length: 475 Set-Cookie2: > JSESSIONID=g20woj32b1;Version=1;Discard;Path="/soap" > Set-Cookie: > JSESSIONID=g20woj32b1;Path=/soap Servlet-Engine: > Tomcat Web Server/3.2.2 > (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 > x86; java.vendor=Sun > Microsyste > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; > xmlns:xsd="http://www.w3.org/1999/XMLSchema";> > > > SOAP-ENV:Server.Exception: > > org/apache/soap/rpc/RPCMessage > > /soap/servlet/rpcrouter > > ms Inc.) > > > > > > > > Here is the classpath > C:\javasoft\jakarta-tomcat-3.2.2\bin>startup > Setting your CLASSPATH statically. > > Using CLASSPATH: > c:\javasoft\xerces-1_2_1\xerces.jar;c:\javasoft\jakarta-tomcat- > 3.2.2\classes;c:\javasoft\jaf-1.0.1\activation.jar;;c:\javasoft\javamail-1.2 > \ima > p.jar;c:\javasoft\javamail-1.2\mailapi.jar;c:\javasoft\javamail-1.2\smtp.jar > ;c:\ > javasoft\javamail-1.2\mail.jar;c:\javasoft\javamail-1.2\pop3.jar;c:\dev\swif > tmqp > lay;c:\javasoft/swiftmq_2_1_1/jars/jcert.jar;c:\javasoft/swiftmq_2_1_1/jars/ > jms. > jar;c:\javasoft/swiftmq_2_1_1/jars/jndi.jar;c:\javasoft/swiftmq_2_1_1/jars/j > net. > jar;c:\javasoft/swiftmq_2_1_1/jars/jsse.jar;c:\javasoft/swiftmq_2_1_1/jars/j > ta-s > pec1.jar;c:\javasoft/swiftmq_2_1_1/jars/smqclient.jar;c:\javasoft/swiftmq_2_ > 1_1/ > jars/swiftmq.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\ant.jar;c:\javasoft\ja > kart > a-tomcat-3.2.2\lib\jasper.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\servlet.j > ar;c > :\javasoft\jakarta-tomcat-3.2.2\lib\webserver.jar > > Starting Tomcat in new window > > > I tried jdk 1.4.0 beta at first, and then switched > back to 1.3. > > I got a whole bunch of error messages earlier that > were related to the > deployed service, like that it couldn't find the > class, or my class used > some imports that were missing. Thus, I thought, I > was pretty close to > getting it work, when I got those resolved. > > > Thanks a lot, > HariNam Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com
Re: simple-jdbc web services question
Or, if you'd rather write a bean, then all you need to do is write a class which represents the items in your result set. The only thing that qualifies it as a bean suitable for SOAP tranfer is the following easy rules: - constructor with no arguments - for an attribute: String anAttribute there should be a: public String getAnAttribute() { <-- note capitalization and a: public void setAnAttribute(String foo) { <-- capitalization here also ... do this for all the attributes, return them either in an array or a vector, and make sure your deployment descriptor includes information which tells soap to use the BeanSerializer to serialize the bean type you're expecting to return through soap. Also you need to do the equivalent on the client side to make sure you can translate the xml back to a bean on that end. Look at the 'defining type mappings' section of the docs to see exactly how this works. Hope this helps... -javier Oleg Dulin wrote: > On Tue, 26 Jun 2001, sushi mitra wrote: > > > Hi, > > > > I wrote a simple web service which is returning result of a sql query. I am > > wondering how do I return the ResultSet to the client. I understand I need > > to write a bean, but not sure how I am going to do it. > > Come up with an XML representation of the result set and write a class > that traverses the ResultSet and builds an org.w3c.dom.Element object and > returns it as a result. AFAIK, Apache SOAP can accept an Element as a > parameter. > > Oleg
Re: simple-jdbc web services question
On Tue, 26 Jun 2001, sushi mitra wrote: > Hi, > > I wrote a simple web service which is returning result of a sql query. I am > wondering how do I return the ResultSet to the client. I understand I need > to write a bean, but not sure how I am going to do it. Come up with an XML representation of the result set and write a class that traverses the ResultSet and builds an org.w3c.dom.Element object and returns it as a result. AFAIK, Apache SOAP can accept an Element as a parameter. Oleg
simple-jdbc web services question
Hi, I wrote a simple web service which is returning result of a sql query. I am wondering how do I return the ResultSet to the client. I understand I need to write a bean, but not sure how I am going to do it. Thanks SM _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: Soap error on new installation
Pravin, thank you for your prompt response. As the classpath attached to the original message shows, jaxp.jar and parse.jar are not present anymore. Also, xerces.jar was the first entry. Furthermore, I mentioned that I had tried Xerces 1.4.1 already without success. I had another engineer looking over it. It's getting frustrating... Any other suggestions? I'm just running out of ideas to try. HariNam -Original Message- From: pravin pachbhai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:30 PM To: [EMAIL PROTECTED] Subject: Re: Soap error on new installation SET CLASSPATH=C:\soap\samples\addressbook;c:\xerces\xerces.jar;%CLASSPATH% before running this example remove the jaxp.jar and parse.jar file from tomcat\lib folder. use the xerces1.4 or greater version. --- HariNam Singh <[EMAIL PROTECTED]> wrote: > Hi, > > I installed SOAP on Tomcat a few hours ago, and > still can't get my sample > service to run properly. > > As I saw lots of notes on XML parser, I made sure > that mine was in the > front. As it still didn't work, I got the latest > from jaxp. Then 1.4.1 > Xerces. Then 1.2.1 Xerces. Neither of those made it > work. Plus, the error > message totally undescript. See below, what the http > tunneling tool snaps > up: > > HTTP/1.0 500 Internal Server Error Content-Type: > text/xml; charset=utf-8 > Content-Length: 475 Set-Cookie2: > JSESSIONID=g20woj32b1;Version=1;Discard;Path="/soap" > Set-Cookie: > JSESSIONID=g20woj32b1;Path=/soap Servlet-Engine: > Tomcat Web Server/3.2.2 > (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 > x86; java.vendor=Sun > Microsyste > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; > xmlns:xsd="http://www.w3.org/1999/XMLSchema";> > > > SOAP-ENV:Server.Exception: > > org/apache/soap/rpc/RPCMessage > > /soap/servlet/rpcrouter > > ms Inc.) > > > > > > > > Here is the classpath > C:\javasoft\jakarta-tomcat-3.2.2\bin>startup > Setting your CLASSPATH statically. > > Using CLASSPATH: > c:\javasoft\xerces-1_2_1\xerces.jar;c:\javasoft\jakarta-tomcat- > 3.2.2\classes;c:\javasoft\jaf-1.0.1\activation.jar;;c:\javasoft\javamail-1.2 > \ima > p.jar;c:\javasoft\javamail-1.2\mailapi.jar;c:\javasoft\javamail-1.2\smtp.jar > ;c:\ > javasoft\javamail-1.2\mail.jar;c:\javasoft\javamail-1.2\pop3.jar;c:\dev\swif > tmqp > lay;c:\javasoft/swiftmq_2_1_1/jars/jcert.jar;c:\javasoft/swiftmq_2_1_1/jars/ > jms. > jar;c:\javasoft/swiftmq_2_1_1/jars/jndi.jar;c:\javasoft/swiftmq_2_1_1/jars/j > net. > jar;c:\javasoft/swiftmq_2_1_1/jars/jsse.jar;c:\javasoft/swiftmq_2_1_1/jars/j > ta-s > pec1.jar;c:\javasoft/swiftmq_2_1_1/jars/smqclient.jar;c:\javasoft/swiftmq_2_ > 1_1/ > jars/swiftmq.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\ant.jar;c:\javasoft\ja > kart > a-tomcat-3.2.2\lib\jasper.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\servlet.j > ar;c > :\javasoft\jakarta-tomcat-3.2.2\lib\webserver.jar > > Starting Tomcat in new window > > > I tried jdk 1.4.0 beta at first, and then switched > back to 1.3. > > I got a whole bunch of error messages earlier that > were related to the > deployed service, like that it couldn't find the > class, or my class used > some imports that were missing. Thus, I thought, I > was pretty close to > getting it work, when I got those resolved. > > > Thanks a lot, > HariNam Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com
Re: Soap error on new installation
SET CLASSPATH=C:\soap\samples\addressbook;c:\xerces\xerces.jar;%CLASSPATH% before running this example remove the jaxp.jar and parse.jar file from tomcat\lib folder. use the xerces1.4 or greater version. --- HariNam Singh <[EMAIL PROTECTED]> wrote: > Hi, > > I installed SOAP on Tomcat a few hours ago, and > still can't get my sample > service to run properly. > > As I saw lots of notes on XML parser, I made sure > that mine was in the > front. As it still didn't work, I got the latest > from jaxp. Then 1.4.1 > Xerces. Then 1.2.1 Xerces. Neither of those made it > work. Plus, the error > message totally undescript. See below, what the http > tunneling tool snaps > up: > > HTTP/1.0 500 Internal Server Error Content-Type: > text/xml; charset=utf-8 > Content-Length: 475 Set-Cookie2: > JSESSIONID=g20woj32b1;Version=1;Discard;Path="/soap" > Set-Cookie: > JSESSIONID=g20woj32b1;Path=/soap Servlet-Engine: > Tomcat Web Server/3.2.2 > (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 > x86; java.vendor=Sun > Microsyste > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; > xmlns:xsd="http://www.w3.org/1999/XMLSchema";> > > > SOAP-ENV:Server.Exception: > > org/apache/soap/rpc/RPCMessage > > /soap/servlet/rpcrouter > > ms Inc.) > > > > > > > > Here is the classpath > C:\javasoft\jakarta-tomcat-3.2.2\bin>startup > Setting your CLASSPATH statically. > > Using CLASSPATH: > c:\javasoft\xerces-1_2_1\xerces.jar;c:\javasoft\jakarta-tomcat- > 3.2.2\classes;c:\javasoft\jaf-1.0.1\activation.jar;;c:\javasoft\javamail-1.2 > \ima > p.jar;c:\javasoft\javamail-1.2\mailapi.jar;c:\javasoft\javamail-1.2\smtp.jar > ;c:\ > javasoft\javamail-1.2\mail.jar;c:\javasoft\javamail-1.2\pop3.jar;c:\dev\swif > tmqp > lay;c:\javasoft/swiftmq_2_1_1/jars/jcert.jar;c:\javasoft/swiftmq_2_1_1/jars/ > jms. > jar;c:\javasoft/swiftmq_2_1_1/jars/jndi.jar;c:\javasoft/swiftmq_2_1_1/jars/j > net. > jar;c:\javasoft/swiftmq_2_1_1/jars/jsse.jar;c:\javasoft/swiftmq_2_1_1/jars/j > ta-s > pec1.jar;c:\javasoft/swiftmq_2_1_1/jars/smqclient.jar;c:\javasoft/swiftmq_2_ > 1_1/ > jars/swiftmq.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\ant.jar;c:\javasoft\ja > kart > a-tomcat-3.2.2\lib\jasper.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\servlet.j > ar;c > :\javasoft\jakarta-tomcat-3.2.2\lib\webserver.jar > > Starting Tomcat in new window > > > I tried jdk 1.4.0 beta at first, and then switched > back to 1.3. > > I got a whole bunch of error messages earlier that > were related to the > deployed service, like that it couldn't find the > class, or my class used > some imports that were missing. Thus, I thought, I > was pretty close to > getting it work, when I got those resolved. > > > Thanks a lot, > HariNam Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com
Soap error on new installation
Hi, I installed SOAP on Tomcat a few hours ago, and still can't get my sample service to run properly. As I saw lots of notes on XML parser, I made sure that mine was in the front. As it still didn't work, I got the latest from jaxp. Then 1.4.1 Xerces. Then 1.2.1 Xerces. Neither of those made it work. Plus, the error message totally undescript. See below, what the http tunneling tool snaps up: HTTP/1.0 500 Internal Server Error Content-Type: text/xml; charset=utf-8 Content-Length: 475 Set-Cookie2: JSESSIONID=g20woj32b1;Version=1;Discard;Path="/soap" Set-Cookie: JSESSIONID=g20woj32b1;Path=/soap Servlet-Engine: Tomcat Web Server/3.2.2 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsyste http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/1999/XMLSchema";> SOAP-ENV:Server.Exception: org/apache/soap/rpc/RPCMessage /soap/servlet/rpcrouter ms Inc.) Here is the classpath C:\javasoft\jakarta-tomcat-3.2.2\bin>startup Setting your CLASSPATH statically. Using CLASSPATH: c:\javasoft\xerces-1_2_1\xerces.jar;c:\javasoft\jakarta-tomcat- 3.2.2\classes;c:\javasoft\jaf-1.0.1\activation.jar;;c:\javasoft\javamail-1.2 \ima p.jar;c:\javasoft\javamail-1.2\mailapi.jar;c:\javasoft\javamail-1.2\smtp.jar ;c:\ javasoft\javamail-1.2\mail.jar;c:\javasoft\javamail-1.2\pop3.jar;c:\dev\swif tmqp lay;c:\javasoft/swiftmq_2_1_1/jars/jcert.jar;c:\javasoft/swiftmq_2_1_1/jars/ jms. jar;c:\javasoft/swiftmq_2_1_1/jars/jndi.jar;c:\javasoft/swiftmq_2_1_1/jars/j net. jar;c:\javasoft/swiftmq_2_1_1/jars/jsse.jar;c:\javasoft/swiftmq_2_1_1/jars/j ta-s pec1.jar;c:\javasoft/swiftmq_2_1_1/jars/smqclient.jar;c:\javasoft/swiftmq_2_ 1_1/ jars/swiftmq.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\ant.jar;c:\javasoft\ja kart a-tomcat-3.2.2\lib\jasper.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\servlet.j ar;c :\javasoft\jakarta-tomcat-3.2.2\lib\webserver.jar Starting Tomcat in new window I tried jdk 1.4.0 beta at first, and then switched back to 1.3. I got a whole bunch of error messages earlier that were related to the deployed service, like that it couldn't find the class, or my class used some imports that were missing. Thus, I thought, I was pretty close to getting it work, when I got those resolved. Thanks a lot, HariNam
RE: SOAP Performance (against RMI)
It's hard to compare performance because the test results would depend on the amount and nature of the data marshaled across the function calls. I would suspect that RMI's use of standard Java serialization is more efficient than building and parsing XML strings, thus I would expect RMI to be proportionally faster than SOAP as the amount and complexity of the data increases. However, the existing XML parsers are woefully inefficient, which would seem to indicate that there is room for potentially large performance gains. Thus while I would expect RMI to maintain a performance advantage over SOAP both today and in the long term, I would expect the degree of this advantage to shrink over time. In other words, if RMI is 6 times faster than SOAP today, it might only be twice as fast a year from now. But one must consider that if the people in charge of the SOAP standards allow the XML format for SOAP to bloat with new features (and complexity), this will oppose the gains made from faster XML parsers and could destroy any chance of making SOAP more efficient. Given this possibility, it is impossible to predict how RMI and SOAP will continue to compare in performance. We can only hope that the SOAP standards people keep a tight lid on the XML format and we can realize the advantages of more efficient parsers. Regards, -Original Message- From: Hansen, Richard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 12:06 To: '[EMAIL PROTECTED]' Subject: RE: SOAP Performance (against RMI) And SOAP will just be get faster over time. RMI probably won't. > -Original Message- > From: SBC [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 1:56 PM > To: [EMAIL PROTECTED] > Subject: Re: SOAP Performance (against RMI) > > > I did a simple test & found that RMI is 6 times > faster. I used apache 2.2 with wls 6.0. I would not > call it a real benchmark, but it gave me some idea. > > --- Ralf Bierig <[EMAIL PROTECTED]> wrote: > > Hi, > > > > are there any performance measurement materials > > about > > SOAP against RMI in Web? Did somebody made a > > benchmarktest with SOAP (and maybe RMI)? > > > > I am looking for material to determine, if SOAP is > > good enough to fullfil the requirements I need for a > > project. > > > > Greetings > > Ralf > > > > __ > > Do You Yahoo!? > > Get personalized email addresses from Yahoo! Mail > > http://personal.mail.yahoo.com/ > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ >
Re: can't run StockQuote example. Please HELP!!!
Thanks Prasad and Matt, I ran testit.cmd script, now I got a different error message: Ouch, the call failed: Fault Code = SOAP-ENV:Server.BadTargetObjectURI Fault String = Unable to resolve target object: Can anyone help me again? Thanks Hoang Prasad DGV wrote: > > Hi Hoang, > Before u run the testit.cmd batch. Make sure u have everything in classpath. > Also dont forget that your xerces.jar file shud be the first entry in > classpath before any other XML parsers(Suggestion -- Remove any other XML > parsers from the classpath to reduce the ambiguity). > > ~Prasad Duvvuri > > -Original Message- > From: Matthew J. Duftler [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 3:26 PM > To: [EMAIL PROTECTED] > Subject: RE: can't run StockQuote example. Please HELP!!! > > Hi Hoang, > > Did you deploy the service? Try running the sample by entering using the > soap-2_2\samples\stockquote\testit.cmd batch file. > > Thanks, > -Matt > > > -Original Message- > > From: Truong,Hoang C. [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, June 26, 2001 2:58 PM > > To: [EMAIL PROTECTED] > > Subject: can't run StockQuote example. Please HELP!!! > > > > > > Hello all, > > Sorry for a newbie question. I am trying to do SOAP for my project. I > > just want to get started on this SOAP thing, I tried the Stock Quote > > example. Here is the error message I got: > > > > Ouch, the call failed: > > Fault Code = SOAP-ENV:Server > > Fault String = service 'urn:xmltoday-delayed-quotes' unknown > > > > Can anyone tell me what is wrong with this? Your help is appreciated. > > Thanks > > > > Hoang > >
Re: can't run StockQuote example. Please HELP!!!
Thanks Prasad and Matt, I ran testit.cmd script, now I got a different error message: Ouch, the call failed: Fault Code = SOAP-ENV:Server.BadTargetObjectURI Fault String = Unable to resolve target object: Can anyone help me again? Thanks Hoang Prasad DGV wrote: > > Hi Hoang, > Before u run the testit.cmd batch. Make sure u have everything in classpath. > Also dont forget that your xerces.jar file shud be the first entry in > classpath before any other XML parsers(Suggestion -- Remove any other XML > parsers from the classpath to reduce the ambiguity). > > ~Prasad Duvvuri > > -Original Message- > From: Matthew J. Duftler [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 3:26 PM > To: [EMAIL PROTECTED] > Subject: RE: can't run StockQuote example. Please HELP!!! > > Hi Hoang, > > Did you deploy the service? Try running the sample by entering using the > soap-2_2\samples\stockquote\testit.cmd batch file. > > Thanks, > -Matt > > > -Original Message- > > From: Truong,Hoang C. [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, June 26, 2001 2:58 PM > > To: [EMAIL PROTECTED] > > Subject: can't run StockQuote example. Please HELP!!! > > > > > > Hello all, > > Sorry for a newbie question. I am trying to do SOAP for my project. I > > just want to get started on this SOAP thing, I tried the Stock Quote > > example. Here is the error message I got: > > > > Ouch, the call failed: > > Fault Code = SOAP-ENV:Server > > Fault String = service 'urn:xmltoday-delayed-quotes' unknown > > > > Can anyone tell me what is wrong with this? Your help is appreciated. > > Thanks > > > > Hoang > >
RE: SOAP Performance (against RMI)
I am sure that eventually, SOAP implementation will have comparable performance to RMI. -Original Message- From: Sam Ruby [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 12:34 PM To: [EMAIL PROTECTED] Subject: RE: SOAP Performance (against RMI) Irfan Anwar wrote: > > My guess is that XML parsing is the bottleneck in the apache SOAP > implementation. This has very little to do with SOAP design. I > think that someone should work towards writing a 'smart xml parser' > targeted to SOAP messages. Any opinion? The Apache xml-axis implementation is a rewite of the current Apache SOAP implementation using a lower level and higher performing xml API named SAX. There are other SOAP processors out there that take a more radical approach and have their own custom XML parsers. For the moment, we have not taken that step. - Sam Ruby
RE: can't run StockQuote example. Please HELP!!!
Hi Hoang, Before u run the testit.cmd batch. Make sure u have everything in classpath. Also dont forget that your xerces.jar file shud be the first entry in classpath before any other XML parsers(Suggestion -- Remove any other XML parsers from the classpath to reduce the ambiguity). ~Prasad Duvvuri -Original Message- From: Matthew J. Duftler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:26 PM To: [EMAIL PROTECTED] Subject: RE: can't run StockQuote example. Please HELP!!! Hi Hoang, Did you deploy the service? Try running the sample by entering using the soap-2_2\samples\stockquote\testit.cmd batch file. Thanks, -Matt > -Original Message- > From: Truong,Hoang C. [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 2:58 PM > To: [EMAIL PROTECTED] > Subject: can't run StockQuote example. Please HELP!!! > > > Hello all, > Sorry for a newbie question. I am trying to do SOAP for my project. I > just want to get started on this SOAP thing, I tried the Stock Quote > example. Here is the error message I got: > > Ouch, the call failed: > Fault Code = SOAP-ENV:Server > Fault String = service 'urn:xmltoday-delayed-quotes' unknown > > Can anyone tell me what is wrong with this? Your help is appreciated. > Thanks > > Hoang >
RE: SOAP Performance (against RMI)
Irfan Anwar wrote: > > My guess is that XML parsing is the bottleneck in the apache SOAP > implementation. This has very little to do with SOAP design. I > think that someone should work towards writing a 'smart xml parser' > targeted to SOAP messages. Any opinion? The Apache xml-axis implementation is a rewite of the current Apache SOAP implementation using a lower level and higher performing xml API named SAX. There are other SOAP processors out there that take a more radical approach and have their own custom XML parsers. For the moment, we have not taken that step. - Sam Ruby
RE: can't run StockQuote example. Please HELP!!!
Hi Hoang, Did you deploy the service? Try running the sample by entering using the soap-2_2\samples\stockquote\testit.cmd batch file. Thanks, -Matt > -Original Message- > From: Truong,Hoang C. [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 2:58 PM > To: [EMAIL PROTECTED] > Subject: can't run StockQuote example. Please HELP!!! > > > Hello all, > Sorry for a newbie question. I am trying to do SOAP for my project. I > just want to get started on this SOAP thing, I tried the Stock Quote > example. Here is the error message I got: > > Ouch, the call failed: > Fault Code = SOAP-ENV:Server > Fault String = service 'urn:xmltoday-delayed-quotes' unknown > > Can anyone tell me what is wrong with this? Your help is appreciated. > Thanks > > Hoang >
caching SOAP response bodies
I am creating a directory lookup service using SOAP. Because our directory is pretty slow, I am going to implement a cache so the web service does not have to query the directory for information that has been looked up in the recent past. With the current discussion of performance, it occurs to me that I could get even better response time on cached responses if I stored the SOAP response body XML in the cache and then had some way of telling the SOAP server that it doesn't need to rebuild it. Is this practical? Can someone point me to the methods I might use to implement it? Or, would it require that the cache be on the client side (which I don't really want to do)? -Don
RE: SOAP Performance (against RMI)
My guess is that XML parsing is the bottleneck in the apache SOAP implementation. This has very little to do with SOAP design. I think that someone should work towards writing a 'smart xml parser' targeted to SOAP messages. Any opinion? -Original Message- From: SBC [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 11:56 AM To: [EMAIL PROTECTED] Subject: Re: SOAP Performance (against RMI) I did a simple test & found that RMI is 6 times faster. I used apache 2.2 with wls 6.0. I would not call it a real benchmark, but it gave me some idea. --- Ralf Bierig <[EMAIL PROTECTED]> wrote: > Hi, > > are there any performance measurement materials > about > SOAP against RMI in Web? Did somebody made a > benchmarktest with SOAP (and maybe RMI)? > > I am looking for material to determine, if SOAP is > good enough to fullfil the requirements I need for a > project. > > Greetings > Ralf > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: SOAP Performance (against RMI)
And SOAP will just be get faster over time. RMI probably won't. > -Original Message- > From: SBC [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 1:56 PM > To: [EMAIL PROTECTED] > Subject: Re: SOAP Performance (against RMI) > > > I did a simple test & found that RMI is 6 times > faster. I used apache 2.2 with wls 6.0. I would not > call it a real benchmark, but it gave me some idea. > > --- Ralf Bierig <[EMAIL PROTECTED]> wrote: > > Hi, > > > > are there any performance measurement materials > > about > > SOAP against RMI in Web? Did somebody made a > > benchmarktest with SOAP (and maybe RMI)? > > > > I am looking for material to determine, if SOAP is > > good enough to fullfil the requirements I need for a > > project. > > > > Greetings > > Ralf > > > > __ > > Do You Yahoo!? > > Get personalized email addresses from Yahoo! Mail > > http://personal.mail.yahoo.com/ > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ >
Re: SOAP Performance (against RMI)
I did a simple test & found that RMI is 6 times faster. I used apache 2.2 with wls 6.0. I would not call it a real benchmark, but it gave me some idea. --- Ralf Bierig <[EMAIL PROTECTED]> wrote: > Hi, > > are there any performance measurement materials > about > SOAP against RMI in Web? Did somebody made a > benchmarktest with SOAP (and maybe RMI)? > > I am looking for material to determine, if SOAP is > good enough to fullfil the requirements I need for a > project. > > Greetings > Ralf > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
can't run StockQuote example. Please HELP!!!
Hello all, Sorry for a newbie question. I am trying to do SOAP for my project. I just want to get started on this SOAP thing, I tried the Stock Quote example. Here is the error message I got: Ouch, the call failed: Fault Code = SOAP-ENV:Server Fault String = service 'urn:xmltoday-delayed-quotes' unknown Can anyone tell me what is wrong with this? Your help is appreciated. Thanks Hoang
RE: Design Help
SOAP already serializes objects to XML. It is a matter of how the clients get them out of the message. Rick Hansen > -Original Message- > From: David Rioux [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 5:12 PM > To: [EMAIL PROTECTED] > Subject: RE: Design Help > > > Hi: > > We ended up serializing our java objects to XML (Tradia's > InstantXML is > helping with this now; our production version used our own > serialization > code) so that it could be parsed by a C++ object on the > client side. I > suspect this is safer than making a platform-specific (java) > SOAP service... > > // David Rioux > // [EMAIL PROTECTED] > > -Original Message- > From: Khamesra, SandeepX [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 10:44 AM > To: '[EMAIL PROTECTED]' > Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: Design Help > > > I need to know what could be the best design for the > following scenerio... > > > I am writing a java service .. It needs to returns a java > object ..How will > client written other than in java will understand ? > >
RE: Design Help
Hi: We ended up serializing our java objects to XML (Tradia's InstantXML is helping with this now; our production version used our own serialization code) so that it could be parsed by a C++ object on the client side. I suspect this is safer than making a platform-specific (java) SOAP service... // David Rioux // [EMAIL PROTECTED] -Original Message- From: Khamesra, SandeepX [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 10:44 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: Design Help I need to know what could be the best design for the following scenerio... I am writing a java service .. It needs to returns a java object ..How will client written other than in java will understand ?
Design Help
I need to know what could be the best design for the following scenerio... I am writing a java service .. It needs to returns a java object ..How will client written other than in java will understand ?
Re: Rephrased: Running with separate SOAP stacks?
At 03:15 PM 6/26/2001 +0100, Dylan J Browne wrote: >In the example the AddressBook is self populating, it doesnt exist and isnt >populated until I run GetAddress... (is this right?). or PutAddress, or PutListings, or any of the other clients... >What I want to do is remove the creation of AddressBook, (and its >population), into a separate class that I can run (with a main method) so I >know the AddressBook exists and is populated. So I've removed the addEntry >lines from AddressBook constructor, so I can do it in my own separate class. >Then I want to run GetAddress and talk to *that* AddressBook that I've >already created and populated, but it tells me the AddressBook is null, IE >it cant find the one that I've just created. Don't create a separate AddressBook object, just run PutAddress or PutListings, editted as you please to add as many records as you please. These are clients so they can talk to the service AddressBook from any machine, and it will be initialized (with 0 records, if you've removed the addEntry lines) as soon as any client does so. It might be better to edit the AddressBook constructor so it calls on your utility code, though, to populate the address book within the same JVM. Surely in anything realistic you'd be using a database of some sort? Tom Myers
SOAP Session timouts
I've been going over the documentation and archives, but I can't find how to set the session timeout for SOAP. Can anyone give me some assistance? -Ryan
Re: Executing first example in SOAP
What is your classpath? Mandar Gandhe drabt.com> cc: Subject: Re: Executing first example in SOAP 26-06-01 10:34 AM Please respond to soap-user attached is the error log.. i am trying to run an example from samples.Addressbook - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 4:58 PM Subject: Re: Executing first example in SOAP > > What is the error that you're getting? > > > > (See attached file: soaperrorlog.txt) -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. soaperrorlog.txt
Re: Executing first example in SOAP
attached is the error log.. i am trying to run an example from samples.Addressbook - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 4:58 PM Subject: Re: Executing first example in SOAP > > What is the error that you're getting? > > > > > Mandar Gandhe > > drabt.com> cc: > Subject: Executing first example in SOAP > 26-06-01 09:43 AM > Please respond to > soap-user > > > > > > > Hi ... > > I am a new joined member of this group. I am trying to run my first > SOAP example right now and I am facing some problems. > > I am using soap-2_2 from Apache-Soap (www.wml.apache.org) and using > Tomcat as the webserver. I can see the Admin client (as indicated in > the installation document) but when I try to use any of the services, > I am getting an exception. > > I have followed all the steps in the installation document. I do have > soap.jar, xerces.jar. mail.jar and activation.jar files in my > classpath and soap.war in my webapps directory of tomcat. > > Can anyone please tell me where I might be wrong ? Or if anyone > please guide me how to go for my first example, that will be great !! > > Thanking in advance... > Mandar > > > > -- > > NOTICE: The information contained in this electronic mail transmission is > intended by Convergys Corporation for the use of the named individual or > entity to which it is directed and may contain information that is > privileged or otherwise confidential. If you have received this electronic > mail transmission in error, please delete it from your system without > copying or forwarding it, and notify the sender of the error by reply email > or by telephone (collect), so that the sender's address records can be > corrected. > > This test assumes a server URL of http://localhost:8080/soap/servlet/rpcrouter Deploying the addressbook service... Ouch, the call failed: Fault Code = SOAP-ENV:Server.Exception: Fault String = java.lang.NoSuchMethodError . Verify that it's there Ouch, the call failed: Fault Code = SOAP-ENV:Server.Exception: Fault String = java.lang.NoSuchMethodError . Getting info for "Mr Good" Exception in thread "main" java.lang.NoClassDefFoundError: java . Adding "John Doe" Generated fault: Fault Code = SOAP-ENV:Server.Exception: Fault String = java.lang.NoSuchMethodError . Query "Mr Doe" to make sure it was added Generated fault: Fault Code = SOAP-ENV:Server.Exception: Fault String = java.lang.NoSuchMethodError . Adding an XML file of listings Generated fault: Fault Code = SOAP-ENV:Server.Exception: Fault String = java.lang.NoSuchMethodError . Get everyone! Generated fault: Fault Code = SOAP-ENV:Server.Exception: Fault String = java.lang.NoSuchMethodError . Undeploy it now Ouch, the call failed: Fault Code = SOAP-ENV:Server.Exception: Fault String = java.lang.NoSuchMethodError . Verify that it's gone Ouch, the call failed: Fault Code = SOAP-ENV:Server.Exception: Fault String = java.lang.NoSuchMethodError
Re: Executing first example in SOAP
What is the error that you're getting? Mandar Gandhe drabt.com> cc: Subject: Executing first example in SOAP 26-06-01 09:43 AM Please respond to soap-user Hi ... I am a new joined member of this group. I am trying to run my first SOAP example right now and I am facing some problems. I am using soap-2_2 from Apache-Soap (www.wml.apache.org) and using Tomcat as the webserver. I can see the Admin client (as indicated in the installation document) but when I try to use any of the services, I am getting an exception. I have followed all the steps in the installation document. I do have soap.jar, xerces.jar. mail.jar and activation.jar files in my classpath and soap.war in my webapps directory of tomcat. Can anyone please tell me where I might be wrong ? Or if anyone please guide me how to go for my first example, that will be great !! Thanking in advance... Mandar -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected.
When to Serialize /Deserialie
Where can I read more about Serializer and Deserailizder.. I need to know hwen I am suppose to serialize /deserailize.. s there any good tutorial on SOAP.. If I wat to pass a Array
Executing first example in SOAP
Hi ... I am a new joined member of this group. I am trying to run my first SOAP example right now and I am facing some problems. I am using soap-2_2 from Apache-Soap (www.wml.apache.org) and using Tomcat as the webserver. I can see the Admin client (as indicated in the installation document) but when I try to use any of the services, I am getting an exception. I have followed all the steps in the installation document. I do have soap.jar, xerces.jar. mail.jar and activation.jar files in my classpath and soap.war in my webapps directory of tomcat. Can anyone please tell me where I might be wrong ? Or if anyone please guide me how to go for my first example, that will be great !! Thanking in advance... Mandar
RE: How to handle faults?
Hi Mattias! Comments inline: > The problem: > > > Our application needs to be able to return application errors > in a way that makes it possible for a client to > programmatically identify the error. The client should be > able to take proper action and inform a user on various error > events. Errors can include diverse things such as problems > with a database and erroneous arguments (e.g. validation > errors) and more. We would like to provide a mapping for each > unique error condition and return this error in an encoded > format possible for a client to interpret and translate to > specific exception handling routines for the client platform. Check. > Possible solutions: > --- > > 1. Encode the application error using the faultcode. I am a > little uncertain if this is allowed according to the > specification. An example of encoded error information could > be "SOAP-ENV:Server.Application.DatabaseError", > "SOAP-ENV:Server.Application.ValidationError" or something > similar (am I allowed to "extend" the SOAP-ENV:Server with > point notation?!). More specific information needed to > describe an error could be embedded in the faultdetails > (faultdetails in this case are not used to identify the type > of error but to get more detailed information like stack > traces for bug reports and similar). This is absolutely the way to go. Faultcodes according to the SOAP spec are explicitly extensible (http://www.w3.org/TR/SOAP/#_Toc478383510) just for this purpose. Faultdetails would then be used just as you describe for more detailed fault-specific info. --Glen
RE: How to handle faults?
I have implemented your first choice. In my reading of the spec it is perfectly OK, even expected, to extend the fault code mechanism. I think you want to make sure to follow the spec about using SERVER and CLIENT. You are right that a fault listener is what you need to get this done. Rick Hansen > -Original Message- > From: Abrahamsson Mattias > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 8:38 AM > To: '[EMAIL PROTECTED]' > Subject: How to handle faults? > > > Hi all, > > I have a problem where I need some guidance before developing > a solution. > > The problem: > > > Our application needs to be able to return application errors > in a way that makes it possible for a client to > programmatically identify the error. The client should be > able to take proper action and inform a user on various error > events. Errors can include diverse things such as problems > with a database and erroneous arguments (e.g. validation > errors) and more. We would like to provide a mapping for each > unique error condition and return this error in an encoded > format possible for a client to interpret and translate to > specific exception handling routines for the client platform. > > Possible solutions: > --- > > 1. Encode the application error using the faultcode. I am a > little uncertain if this is allowed according to the > specification. An example of encoded error information could > be "SOAP-ENV:Server.Application.DatabaseError", > "SOAP-ENV:Server.Application.ValidationError" or something > similar (am I allowed to "extend" the SOAP-ENV:Server with > point notation?!). More specific information needed to > describe an error could be embedded in the faultdetails > (faultdetails in this case are not used to identify the type > of error but to get more detailed information like stack > traces for bug reports and similar). > > 2. Use the faultdetails for complete descriptions of errors > in the application. Specific information can be embedded in > the faultdetails thus describing the error condition. This is > similar to the first approach but is not as straightforward > for the client, at least I think so. > > 3. Somehow parse the faultstring. I don't like this solution > since the faultstring according to the specification should > be in a "human readable" format thus not being a good > candidate for program logic. > > 4. Any other alternative which I have not thought of. > > I would prefer a solution based on the first alternative in > one form or another. Is this a good way to do it and is it > allowed according to the specifications? If I interpret > everything correctly I would have to build a fault listener > to fill in faultdetails for an application error and a custom > provider to intercept and change the fault code of a thrown > SOAPException as it will otherwise default to "SOAP-ENV:Server". > > Thanks for you time and any input you might want to contribute. > > /Mattias >
SOAP Performance (against RMI)
Hi, are there any performance measurement materials about SOAP against RMI in Web? Did somebody made a benchmarktest with SOAP (and maybe RMI)? I am looking for material to determine, if SOAP is good enough to fullfil the requirements I need for a project. Greetings Ralf __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Length of soap message
How can I retrieve the length of a soap message? Is there a Class, which enable me to get the length of the complete message? Or of parts of a message: Like -> Give me the length of the XML String of the parameter list of the SOAP body - and so on... Greetings Ralf __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Rephrased: Running with separate SOAP stacks?
Ok. Try again. I was well off the mark earlier. :o| In the example the AddressBook is self populating, it doesnt exist and isnt populated until I run GetAddress... (is this right?). What I want to do is remove the creation of AddressBook, (and its population), into a separate class that I can run (with a main method) so I know the AddressBook exists and is populated. So I've removed the addEntry lines from AddressBook constructor, so I can do it in my own separate class. Then I want to run GetAddress and talk to *that* AddressBook that I've already created and populated, but it tells me the AddressBook is null, IE it cant find the one that I've just created. Thanks hugely again for any help... Cheers. - Original Message - From: "Tom Myers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "soap" <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 1:17 PM Subject: Re: Running with separate SOAP stacks? > At 12:00 PM 6/26/2001 +0100, Dylan J Browne wrote: > >Hi, > > > >This is a difficult question to put into words, especially as I am new-ish > >to SOAP, but I'll try > > > >All the examples given with SOAP2.2, and all the others I can find on the > >web, are run using a single SOAP implementation(Ie on one machine)... > > > .So using the AddressBook example, I would want to > >create a number of Address objects which would be created on a > >device, eg device1. > > > >Then I would want to create a GetAddress example on another device, device2 > ... > > I'm not sure what you mean by saying that the examples run on one machine. > The AddressBook objec, as part of the service, does need to be deployed on > one particular machine, the server for that service; that service carries > with it a JVM with a classpath, and samples.addressbook.AddressBook needs > to be available to that JVM on that machine. However, when you run the > PutAddress and GetAddress and so on, they communicate with the server via > http, so they can live on device2, device3, .. deviceN, and the service > (i.e., the AddressBook object, with whatever Address objects it contains) > does not know and does not care. Thus I have no trouble running a SOAP > service on this machine and a client on another machine connected via > ethernet...but maybe I'm just not understanding the difficulty. > > Tom Myers > >
How to handle faults?
Hi all, I have a problem where I need some guidance before developing a solution. The problem: Our application needs to be able to return application errors in a way that makes it possible for a client to programmatically identify the error. The client should be able to take proper action and inform a user on various error events. Errors can include diverse things such as problems with a database and erroneous arguments (e.g. validation errors) and more. We would like to provide a mapping for each unique error condition and return this error in an encoded format possible for a client to interpret and translate to specific exception handling routines for the client platform. Possible solutions: --- 1. Encode the application error using the faultcode. I am a little uncertain if this is allowed according to the specification. An example of encoded error information could be "SOAP-ENV:Server.Application.DatabaseError", "SOAP-ENV:Server.Application.ValidationError" or something similar (am I allowed to "extend" the SOAP-ENV:Server with point notation?!). More specific information needed to describe an error could be embedded in the faultdetails (faultdetails in this case are not used to identify the type of error but to get more detailed information like stack traces for bug reports and similar). 2. Use the faultdetails for complete descriptions of errors in the application. Specific information can be embedded in the faultdetails thus describing the error condition. This is similar to the first approach but is not as straightforward for the client, at least I think so. 3. Somehow parse the faultstring. I don't like this solution since the faultstring according to the specification should be in a "human readable" format thus not being a good candidate for program logic. 4. Any other alternative which I have not thought of. I would prefer a solution based on the first alternative in one form or another. Is this a good way to do it and is it allowed according to the specifications? If I interpret everything correctly I would have to build a fault listener to fill in faultdetails for an application error and a custom provider to intercept and change the fault code of a thrown SOAPException as it will otherwise default to "SOAP-ENV:Server". Thanks for you time and any input you might want to contribute. /Mattias
Invoking a method with httpReq,httpRes params
Hello, I would like to invoke with soap a servlet method such as service(req, res) so I'm asking if anyone knows about how can I do this, as I couldn't find how to pass httpRequest and httpResponse as parameters. A second question is if it exists a soap client that could be used by Flash Macromedia. Thanks in advance Fab
Re: Running with separate SOAP stacks?
I think my misunderstanding comes from how SOAP works after what you've said, I should be able to run my stuff as is I'll try to achieve what I want to again for a couple of days and re-post if I have any further trouble. (Sorry, ignore my previous mail for now). Cheers. - Original Message - From: "Tom Myers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "soap" <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 1:17 PM Subject: Re: Running with separate SOAP stacks? > At 12:00 PM 6/26/2001 +0100, Dylan J Browne wrote: > >Hi, > > > >This is a difficult question to put into words, especially as I am new-ish > >to SOAP, but I'll try > > > >All the examples given with SOAP2.2, and all the others I can find on the > >web, are run using a single SOAP implementation(Ie on one machine)... > > > .So using the AddressBook example, I would want to > >create a number of Address objects which would be created on a > >device, eg device1. > > > >Then I would want to create a GetAddress example on another device, device2 > ... > > I'm not sure what you mean by saying that the examples run on one machine. > The AddressBook objec, as part of the service, does need to be deployed on > one particular machine, the server for that service; that service carries > with it a JVM with a classpath, and samples.addressbook.AddressBook needs > to be available to that JVM on that machine. However, when you run the > PutAddress and GetAddress and so on, they communicate with the server via > http, so they can live on device2, device3, .. deviceN, and the service > (i.e., the AddressBook object, with whatever Address objects it contains) > does not know and does not care. Thus I have no trouble running a SOAP > service on this machine and a client on another machine connected via > ethernet...but maybe I'm just not understanding the difficulty. > > Tom Myers > >
Re: Running with separate SOAP stacks?
At 12:00 PM 6/26/2001 +0100, Dylan J Browne wrote: >Hi, > >This is a difficult question to put into words, especially as I am new-ish >to SOAP, but I'll try > >All the examples given with SOAP2.2, and all the others I can find on the >web, are run using a single SOAP implementation(Ie on one machine)... > .So using the AddressBook example, I would want to >create a number of Address objects which would be created on a >device, eg device1. > >Then I would want to create a GetAddress example on another device, device2 ... I'm not sure what you mean by saying that the examples run on one machine. The AddressBook objec, as part of the service, does need to be deployed on one particular machine, the server for that service; that service carries with it a JVM with a classpath, and samples.addressbook.AddressBook needs to be available to that JVM on that machine. However, when you run the PutAddress and GetAddress and so on, they communicate with the server via http, so they can live on device2, device3, .. deviceN, and the service (i.e., the AddressBook object, with whatever Address objects it contains) does not know and does not care. Thus I have no trouble running a SOAP service on this machine and a client on another machine connected via ethernet...but maybe I'm just not understanding the difficulty. Tom Myers
Running with separate SOAP stacks?
Hi, This is a difficult question to put into words, especially as I am new-ish to SOAP, but I'll try All the examples given with SOAP2.2, and all the others I can find on the web, are run using a single SOAP implementation(Ie on one machine). EG in the AddressBook, the calling/instantion of GetAddress performs the registering of the required objects, creating the other objects that are needed on the same SOAP stack. What I am looking to do is run SOAP to provide communication between two physically distinct devices, (joined by, probably, ethernet). So using the AddressBook example, I would want to create a number of Address objects and add them to the AddressBook in a class called, for example, AddressBookInit which would be created on a device, eg device1. Then I would want to create a GetAddress example on another device, device2, and for it to run (as it does in the example), to retrieve a given field, or all fields, or whatever, from my AddressBook on device1. I have tried to modify the AddressBook example to suit my needs, but have been struggling for a couple of days. I'm fairly sure my problem lies in the registering of my Objects or services. I create the initial AddressBook, populate it with Addresses, and thats fine. But I am not sure of how I register it, (and also alllow my remote instance of GetAddress to know the details of this registry). I continually get "Null" faults from a Fault Code of server, which I assume means it has no handle on the registry of my objects. I hope that made sense, almost certainly not Any help at all would be met with enormous waves of gratitude, (even pointing me at some examples that demonstrate this) Thanks very much.
i resolve the question.
Thank you All, I type the class name "hello.HelloServer" in the wrong field, i must type it in the Java Provider. sicerely yours HongBao Wang - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 3:59 PM Subject: Réf. : Re: Réf. : I want run the HelloWorldsample,get afault. >> maybe you must specify which port you decide to use : 8080 http://localhost:8080/soap I'm not sure that could be the cause of your problem I use the xerces.jar is 1.2.3, and I set the classpath like this E:\jdk\jre\lib\rt.jar; E:\jdk\jre\lib\i18n.jar; E:\private\xerces.jar; E:\private\mail.jar; E:\private\activation.jar; E:\private\soap.jar what other jar file do need. and i can see the deployed webservice from the http://localhost/soap/admin/index.html when i deploy the server class there is text box "For User-Defined Provider Type, Enter FULL Class Name" i enter"hello.HelloServer" but when i point to the url http://localhost/soap/admin/showdetails.jsp?id=urn:Hello the "Provider Class" is empty, why ,can you help me? thank you sinerely yours Hong Bao Wang - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 2:40 PM Subject: Réf. : I want run the HelloWorld sample,get afault. > > > > > >> It could come from tow reasons : > - Which version of Xerces do you use ?? if it is the 1.3.1, then you can > throw it away, and let's use Xerces1.2.3, because of a bug of Xerces1.3.1 > > - otherwise, take care to put every ".jar" and directory (where is stocked > the java classes yuo want to use) before starting Tomcat (or other web > server) !!! and I advise you to put all classes of you server in the same > directory, put the "set classpath=%classpath%;." and start Tomcat from its > directory !!! > > good luck > > > I use the tomcat as webserver, > and i have deployed the urn:Hello > to the webservice, but i get this fault. > Generated fault: > Fault Code = SOAP-ENV:Server.BadTargetObjectURI > Fault String = Unable to resolve target object: > > is anyone meet this error, and how to resolve it, > thank you. > HongBao Wang :) > > > > ¡.a¨h gÊ«~·É¨h¡Ê&i×kz˶m§ÿæj)rj(r
Réf. : Re: Réf. : I want run the HelloWorldsample,get afault.
>> maybe you must specify which port you decide to use : 8080 http://localhost:8080/soap I'm not sure that could be the cause of your problem I use the xerces.jar is 1.2.3, and I set the classpath like this E:\jdk\jre\lib\rt.jar; E:\jdk\jre\lib\i18n.jar; E:\private\xerces.jar; E:\private\mail.jar; E:\private\activation.jar; E:\private\soap.jar what other jar file do need. and i can see the deployed webservice from the http://localhost/soap/admin/index.html when i deploy the server class there is text box "For User-Defined Provider Type, Enter FULL Class Name" i enter"hello.HelloServer" but when i point to the url http://localhost/soap/admin/showdetails.jsp?id=urn:Hello the "Provider Class" is empty, why ,can you help me? thank you sinerely yours Hong Bao Wang - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 2:40 PM Subject: Réf. : I want run the HelloWorld sample,get afault. > > > > > >> It could come from tow reasons : > - Which version of Xerces do you use ?? if it is the 1.3.1, then you can > throw it away, and let's use Xerces1.2.3, because of a bug of Xerces1.3.1 > > - otherwise, take care to put every ".jar" and directory (where is stocked > the java classes yuo want to use) before starting Tomcat (or other web > server) !!! and I advise you to put all classes of you server in the same > directory, put the "set classpath=%classpath%;." and start Tomcat from its > directory !!! > > good luck > > > I use the tomcat as webserver, > and i have deployed the urn:Hello > to the webservice, but i get this fault. > Generated fault: > Fault Code = SOAP-ENV:Server.BadTargetObjectURI > Fault String = Unable to resolve target object: > > is anyone meet this error, and how to resolve it, > thank you. > HongBao Wang :) > > > >
Re: Réf. : I want run the HelloWorld sample,get afault.
I use the xerces.jar is 1.2.3, and I set the classpath like this E:\jdk\jre\lib\rt.jar; E:\jdk\jre\lib\i18n.jar; E:\private\xerces.jar; E:\private\mail.jar; E:\private\activation.jar; E:\private\soap.jar what other jar file do need. and i can see the deployed webservice from the http://localhost/soap/admin/index.html when i deploy the server class there is text box "For User-Defined Provider Type, Enter FULL Class Name" i enter"hello.HelloServer" but when i point to the url http://localhost/soap/admin/showdetails.jsp?id=urn:Hello the "Provider Class" is empty, why ,can you help me? thank you sinerely yours Hong Bao Wang - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 2:40 PM Subject: Réf. : I want run the HelloWorld sample,get afault. > > > > > >> It could come from tow reasons : > - Which version of Xerces do you use ?? if it is the 1.3.1, then you can > throw it away, and let's use Xerces1.2.3, because of a bug of Xerces1.3.1 > > - otherwise, take care to put every ".jar" and directory (where is stocked > the java classes yuo want to use) before starting Tomcat (or other web > server) !!! and I advise you to put all classes of you server in the same > directory, put the "set classpath=%classpath%;." and start Tomcat from its > directory !!! > > good luck > > > I use the tomcat as webserver, > and i have deployed the urn:Hello > to the webservice, but i get this fault. > Generated fault: > Fault Code = SOAP-ENV:Server.BadTargetObjectURI > Fault String = Unable to resolve target object: > > is anyone meet this error, and how to resolve it, > thank you. > HongBao Wang :) > > > > ¡.a¨h gÊ«~·É¨h¡Ê&i×kz˶m§ÿæj)rj(r