You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general-cvs@xml.apache.org by je...@apache.org on 2002/06/25 13:37:17 UTC

cvs commit: xml-site/targets/soap/faq faq_chawke.html

jechawke    2002/06/25 04:37:16

  Modified:    targets/soap/faq faq_chawke.html
  Log:
  Added some new faq entries, made some minor corrections.
  
  Revision  Changes    Path
  1.11      +25 -8     xml-site/targets/soap/faq/faq_chawke.html
  
  Index: faq_chawke.html
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/soap/faq/faq_chawke.html,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- faq_chawke.html	24 Jan 2002 00:24:55 -0000	1.10
  +++ faq_chawke.html	25 Jun 2002 11:37:16 -0000	1.11
  @@ -11,7 +11,7 @@
   </HEAD>
   <BODY LINK="#0000ff" VLINK="#800080">
   <H1>Apache-SOAP User's FAQ</H1>
  -This FAQ is based on the questions and answers that appear on the <a href="http://xml.apache.org/soap/mail.html">Apache-SOAP User's Mailing List</a>.<br> It is currently maintained by <A HREF="mailto:j_chawke@hotmail.com">Jonathan Chawke</A>, and was last modified on Thu 24-Jan-2002 12:22AM GMT.
  +This FAQ is based on the questions and answers that appear on the <a href="http://xml.apache.org/soap/mail.html">Apache-SOAP User's Mailing List</a>.<br> It is currently maintained by <A HREF="mailto:j_chawke@hotmail.com">Jonathan Chawke</A>, and was last modified on Tue 25-Jun-2002 01:06 GMT.
   <br>Corrections and suggestions for new questions are always welcome.
   <H1><A NAME="toc">Table of Contents</A></H1><OL><LI><H2>Hot Topics</H2><i>This section answers questions that have been appearing frequently on the mailing list.</i><p>1.1&nbsp;&nbsp;<A HREF="#Q1_1">Help! I'm getting this error: "Element must contain a:'faultcode' element"</A><br>
   1.2&nbsp;&nbsp;<A HREF="#Q1_2">Help! I'm getting this error: "Unable to resolve namespace URI for 'xsd'".</A><br>
  @@ -62,7 +62,7 @@
   3.3&nbsp;&nbsp;<A HREF="#Q3_3">Can I install Apache-SOAP 2.1 on Tomcat 4.0?</A><br>
   3.4&nbsp;&nbsp;<A HREF="#Q3_4">How do I install Apache-SOAP on Bea WebLogic 5.1?</A><br>
   3.5&nbsp;&nbsp;<A HREF="#Q3_5">How do I install Apache-SOAP on Bea WebLogic 6.0?</A><br>
  -3.6&nbsp;&nbsp;<A HREF="#Q3_6">How do I install Apache-SOAP on Bea WebLogic 6.1 beta?</A><br>
  +3.6&nbsp;&nbsp;<A HREF="#Q3_6">How do I install Apache-SOAP on Bea WebLogic 6.1?</A><br>
   3.7&nbsp;&nbsp;<A HREF="#Q3_7">How do I install Apache-SOAP on Resin?</A><br>
   3.8&nbsp;&nbsp;<A HREF="#Q3_8">How do I install Apache-SOAP on IBM WebSphere?</A><br>
   3.9&nbsp;&nbsp;<A HREF="#Q3_9">How do I install Apache-SOAP on Bluestone?</A><br>
  @@ -90,11 +90,15 @@
   javax.mail.MessagingException: Missing start boundary"</A><br>
   4.19&nbsp;&nbsp;<A HREF="#Q4_19">Help! I'm getting this error: "java.lang.NoClassDefFoundError: javax/xml/transform/TransformerException"</A><br>
   4.20&nbsp;&nbsp;<A HREF="#Q4_20">I'm getting a segmentation fault when I try to run SOAP on Red Hat. What's wrong?</A><br>
  +4.21&nbsp;&nbsp;<A HREF="#Q4_21">I think I may have an old XML/Servlet library which is causing problems with SOAP. How do I determine if this library is being used?</A><br>
  +4.22&nbsp;&nbsp;<A HREF="#Q4_22">Help! The calculator example won't work. I'm seeing this error: ""SOAP-ENV:Server.BadTargetObjectURI
  + - Unable to load BSF: script services not available withoutBSF: com.ibm.bsf.BSFManager</A><br>
   <br></LI><LI><H2>Design and Architecture Issues</H2><i>This section aims to provide some opinions and suggestions on design and architecture issues.</i><p>5.2&nbsp;&nbsp;<A HREF="#Q5_2">Can a SOAP server maintain session between multiple client invocations?</A><br>
   5.3&nbsp;&nbsp;<A HREF="#Q5_3">What is an actor?</A><br>
   5.4&nbsp;&nbsp;<A HREF="#Q5_4">Can Apache-SOAP handle large (multiple megabyte) files?</A><br>
   5.5&nbsp;&nbsp;<A HREF="#Q5_5">What is the best way to send a large file (multiple megabytes) with a soap request?</A><br>
   5.6&nbsp;&nbsp;<A HREF="#Q5_6">How do I add a file attachment to a SOAP response using MIME?</A><br>
  +5.7&nbsp;&nbsp;<A HREF="#Q5_7">How do I return an MS Word document as the result of a SOAP method invocation?</A><br>
   5.9&nbsp;&nbsp;<A HREF="#Q5_9">Is it possible to pass parameters to the constructor in a SOAP application ?</A><br>
   5.10&nbsp;&nbsp;<A HREF="#Q5_10">How do I write a SOAP service that maintains state across a session?</A><br>
   5.12&nbsp;&nbsp;<A HREF="#Q5_12">Is it possible to perform more than one invocation in a single SOAP request?</A><br>
  @@ -107,6 +111,7 @@
   5.20&nbsp;&nbsp;<A HREF="#Q5_20">Does Apache SOAP use SAX or DOM for parsing/representation of XML?</A><br>
   5.21&nbsp;&nbsp;<A HREF="#Q5_21">How does SOAP compare with CORBA?</A><br>
   5.22&nbsp;&nbsp;<A HREF="#Q5_22">Is it possible to compress Apache SOAP data packets?</A><br>
  +5.23&nbsp;&nbsp;<A HREF="#Q5_23">What is the difference between RPC style SOAP and document style SOAP?</A><br>
   <br></LI><LI><H2>SOAP and Namespaces</H2><i>This section discusses namespace issues.</i><p>6.1&nbsp;&nbsp;<A HREF="#Q6_1">What are all these SOAP Namespaces?</A><br>
   6.2&nbsp;&nbsp;<A HREF="#Q6_2">Do I need to use namespaces on my XML data?</A><br>
   6.3&nbsp;&nbsp;<A HREF="#Q6_3">What are all those namespace prefixes in my SOAP messages? Won't they keep validation from working?</A><br>
  @@ -135,6 +140,7 @@
   9.4&nbsp;&nbsp;<A HREF="#Q9_4">Help! My Apache SOAP Client cannot connect to a .NET service - the server says it expects 'text/xml' and doesn't understand "text/xml; charset=utf-8".</A><br>
   9.5&nbsp;&nbsp;<A HREF="#Q9_5">Where can I find information about interoperating between an MS SOAP client and an Apache SOAP service?</A><br>
   9.6&nbsp;&nbsp;<A HREF="#Q9_6">How do I Access a Apache SOAP Service using a Microsoft .NET (Beta 2) Client?</A><br>
  +9.7&nbsp;&nbsp;<A HREF="#Q9_7">Is there a mailing list for Microsoft SOAP users?</A><br>
   9.8&nbsp;&nbsp;<A HREF="#Q9_8">Where can I find an example of how to use the low-level MS SOAP API?</A><br>
   9.9&nbsp;&nbsp;<A HREF="#Q9_9">How do I maintain sessions between Apache-SOAP and MS SOAP?</A><br>
   9.10&nbsp;&nbsp;<A HREF="#Q9_10">How do I exchange complex types between Apache-SOAP and MS SOAP?</A><br>
  @@ -147,7 +153,7 @@
   1.1&nbsp;&nbsp;<STRONG><A NAME="Q1_1">Help! I'm getting this error: "Element must contain a:'faultcode' element"</A></STRONG><BR>
   This is probably due to a bug in some newer releases of Xerces (e.g. 1.3.1). Try using Xerces 1.4.3, 1.2.3 or 1.3.0 instead (on both the client AND the server) - have a look on <A HREF="http://xml.apache.org/dist/xerces-j/">http://xml.apache.org/dist/xerces-j/</a>. You should also make sure that xerces.jar is the FIRST entry in your classpath.<p>
   1.2&nbsp;&nbsp;<STRONG><A NAME="Q1_2">Help! I'm getting this error: "Unable to resolve namespace URI for 'xsd'".</A></STRONG><BR>
  -Ensure that:<BR>(a) You are using Xerces 1.4.3, 1.2.3 or 1.3.0 (but NOT 1.3.1) - on both the client and the server (if both are using Apache-SOAP).<BR>(b) xerces.jar is the FIRST entry in your CLASSPATH, as described in the Apache-SOAP installation instructions.<BR>(c) There is ONLY ONE version of xerces.jar in your CLASSPATH.<BR>(d) There are no other XML parsers in your classpath. Some people have experienced this problem due to an early version of the JAXP package hiding in JAVA_HOME/jre/lib/ext.<p>
  +Ensure that:<BR>(a) You are using Xerces 1.4.4, 1.4.3, 1.2.3 or 1.3.0 (but NOT 1.3.1) - on both the client and the server (if both are using Apache-SOAP).<BR>(b) xerces.jar is the FIRST entry in your CLASSPATH, as described in the Apache-SOAP installation instructions.<BR>(c) There is ONLY ONE version of xerces.jar in your CLASSPATH.<BR>(d) There are no other XML parsers in your classpath. Some people have experienced this problem due to an early version of the JAXP package hiding in JAVA_HOME/jre/lib/ext.<p>
   1.3&nbsp;&nbsp;<STRONG><A NAME="Q1_3">Help! I'm getting this error: "Unable to resolve target object.." when I try to invoke a method on my SOAP service.</A></STRONG><BR>
   This is a classpath problem. Ensure that your SOAP service class is included in the classpath. For example, if your class is called HelloServer and it is in directory /foo/, then make sure that /foo/ is in your Tomcat classpath when it launches.<p>
   1.4&nbsp;&nbsp;<STRONG><A NAME="Q1_4">Help! I got this error message: "Fault String = org.w3c.dom.Node: method getNamespaceURI() java/lang/String; not found"</A></STRONG><BR>
  @@ -163,7 +169,7 @@
   1.8&nbsp;&nbsp;<STRONG><A NAME="Q1_8">I think I have an XML parser library problem. How can I determine exactly which library is being used by Apache SOAP?</A></STRONG><BR>
   Matt Duftler has kindly provided a JSP page can tell you whether a JAXP-compliant parser is being found, what package the implementing classes of the org.w3c.dom interfaces are from, and whether the org.w3c.dom interfaces being resolved are namespace-aware. The JSP file is available here: <A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=99669938017194&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=99669938017194&w=2</a>. Note that SOAP 2.2 (or newer) is required.<p>
   1.9&nbsp;&nbsp;<STRONG><A NAME="Q1_9">How can I view the 'raw' XML data that is exchanged between a SOAP client and server?</A></STRONG><BR>
  -There are a couple of tools which you can use to do this:<BR>(1) TcpTunnel (textual interface) / TcpTunnelGui (graphical interface), which are both provided with the standard Apache SOAP distribution. See <A HREF="http://xml.apache.org/soap/faq/faq_chawke.html#Q2_10">http://xml.apache.org/soap/faq/faq_chawke.html#Q2_10</a> for more information on how to use these tools. <BR>(2) UtilSnoop, described as its author as 'somewhat more user friendly' than TcpTunnelGui. It's available at <A HREF="http://www.lanw.com/books/javasoap/">http://www.lanw.com/books/javasoap/</a>.<p>
  +There are a couple of tools which you can use to do this:<BR>(1) TcpTunnel (textual interface) / TcpTunnelGui (graphical interface), which are both provided with the standard Apache SOAP distribution. See <A HREF="http://xml.apache.org/soap/faq/faq_chawke.html#Q2_10">http://xml.apache.org/soap/faq/faq_chawke.html#Q2_10</a> for more information on how to use these tools. <BR>(2) UtilSnoop, described as its author as 'somewhat more user friendly' than TcpTunnelGui. It's available at <A HREF="http://www.lanw.com/books/javasoap/">http://www.lanw.com/books/javasoap/</a>. <BR>(3) Simon Fell's TcpTrace [<A HREF="http://www.pocketsoap.com/]">http://www.pocketsoap.com/]</a>, which can handle very large data packets.<BR>(4) Iona's XMLBus product seems to include a similar tool called the 'SOAP Message Spy' - see <A HREF="http://www.xmlbus.com/work/">http://www.xmlbus.com/work/</a>.<p>
   1.10&nbsp;&nbsp;<STRONG><A NAME="Q1_10">I can't get SOAP working with Tomcat 4 (Catalina). Help!</A></STRONG><BR>
   You probably need to do two things:<BR>(1) Modify your catalina.bat (or catalina.sh on Unix) file to include the soap libs in your classpath. <BR>(2) Catalina's class loader operates different that Tomcat 3, so you need to put soap.jar in the WEB-INF of the application's directory under a 'lib' sub-dir.<BR>For more detailed instructions, see here: <A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=100802546024930&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=100802546024930&w=2</a>.<p>
   
  @@ -176,7 +182,7 @@
   2.3&nbsp;&nbsp;<STRONG><A NAME="Q2_3">I'm just getting started with SOAP. Where can I find a tutorial on SOAP programming?</A></STRONG><BR>
   Try these links: <BR><A HREF="http://www-106.ibm.com/developerworks/library/ws-peer2/">http://www-106.ibm.com/developerworks/library/ws-peer2/</a> <BR><A HREF="http://www.soapuser.com/client2.html">http://www.soapuser.com/client2.html</a> <BR><A HREF="http://www.soapuser.com/server1.html">http://www.soapuser.com/server1.html</a>   <BR><A HREF="http://www.perfectxml.com/articles/xml/hellosoap.asp">http://www.perfectxml.com/articles/xml/hellosoap.asp</a>  <BR><A HREF="http://www.soapwebservices.com/articles/what_is_soap.asp">http://www.soapwebservices.com/articles/what_is_soap.asp</a> (shockwave flash presentation) <BR><A HREF="http://www.javapro.com/upload/free/features/javapro/2001/04apr01/prs0104/prs0104-1.asp">http://www.javapro.com/upload/free/features/javapro/2001/04apr01/prs0104/prs0104-1.asp</a>  <BR><A HREF="http://www.soaplite.com/#LINKS">http://www.soaplite.com/#LINKS</a> <BR><A HREF="http://soap.manilasites.com/">http://soap.manilasites.com/</a> <BR><A HREF="http://www.xmethods.net/gettingstarted/apache.html">http://www.xmethods.net/gettingstarted/apache.html</a><p>
   2.4&nbsp;&nbsp;<STRONG><A NAME="Q2_4">Are there any other SOAP FAQs available?</A></STRONG><BR>
  -Yes, a list of FAQs is available here: <A HREF="http://www.SoapRPC.com/faqs/">http://www.SoapRPC.com/faqs/</a>. You could also look at the SOAP FAQ maintained by Developmentor: <A HREF="http://www.develop.com/soap/soapfaq.htm">http://www.develop.com/soap/soapfaq.htm</a>.<p>
  +Yes, a list of FAQs is available here: <A HREF="http://www.SoapRPC.com/faqs/">http://www.SoapRPC.com/faqs/</a>. You could also look at the SOAP FAQ maintained by Developmentor: <A HREF="http://www.develop.com/soap/soapfaq.htm">http://www.develop.com/soap/soapfaq.htm</a>, and the O'Reilly Web Services FAQ: <A HREF="http://www.oreillynet.com/lpt/a//webservices/2002/02/12/webservicefaqs.html">http://www.oreillynet.com/lpt/a//webservices/2002/02/12/webservicefaqs.html</a>.<p>
   2.5&nbsp;&nbsp;<STRONG><A NAME="Q2_5">Where can I download the SOAP specification document(s)?</A></STRONG><BR>
   SOAP 1.1 is here: <A HREF="http://www.w3.org/TR/SOAP">http://www.w3.org/TR/SOAP</a>. <BR>There are also some other SOAP-related specs in this list: <A HREF="http://www.w3.org/TR/">http://www.w3.org/TR/</a>.<p>
   2.6&nbsp;&nbsp;<STRONG><A NAME="Q2_6">Are there any good books on SOAP?</A></STRONG><BR>
  @@ -222,7 +228,7 @@
   2.34&nbsp;&nbsp;<STRONG><A NAME="Q2_34">What tools are available that use Apache SOAP?</A></STRONG><BR>
   Brought to you by the same folks that brought you UDDI, is the Web Services Definition Language. WSDL is an XML schema that defines documents, in XML format, that describe SOAP services. There is an IBM alphaWorks toolkit that generates Java service client libraries and service handler skeletons from a WSDL document. See the WSDL specification (<A HREF="http://www-106.ibm.com/developerworks/library/w-wsdl.html">http://www-106.ibm.com/developerworks/library/w-wsdl.html</a>), and the IBM toolkit (<A HREF="http://www.alphaworks.ibm.com/tech/webservicestoolkit">http://www.alphaworks.ibm.com/tech/webservicestoolkit</a>).<p>
   2.36&nbsp;&nbsp;<STRONG><A NAME="Q2_36">How do I restrict access to the Apache SOAP administration client?</A></STRONG><BR>
  -There are a number of possible solutions (none of which are perfect):<BR>- Modify your servlet container's security settings so that only certain IP addresses can access the admin page. If you are running Tomcat with its security manager, you can add an entry for the soap webapp in the .policy file located in the conf directory, and then you can control which IP addresses the webapp will accept connections from.<BR>- Modify the code - see <A HREF="http://soap.manilasites.com/stories/storyReader$13">http://soap.manilasites.com/stories/storyReader$13</a> <BR>- Modify your firewall configuration. Some firewalls can filter on URLs, and you could use this to prevent accesses to the admin page (although this wouldn't prevent someone from running the ServiceManagerClient directly).<p>
  +There are a number of possible solutions (none of which are perfect):<BR>- Modify your servlet container's security settings so that only certain IP addresses can access the admin page. If you are running Tomcat with its security manager, you can add an entry for the soap webapp in the .policy file located in the conf directory, and then you can control which IP addresses the webapp will accept connections from.<BR>- Modify the code - see <A HREF="http://soap.manilasites.com/stories/storyReader$13">http://soap.manilasites.com/stories/storyReader$13</a> <BR>- Modify your firewall configuration. Some firewalls can filter on URLs, and you could use this to prevent accesses to the admin page (although this wouldn't prevent someone from running the ServiceManagerClient directly).<BR>- Set up your services, and then make DeployedServices.ds a read-only file. This will prevent anyone from adding or removing a service.<p>
   2.38&nbsp;&nbsp;<STRONG><A NAME="Q2_38">How can I get the IP address of a client that is using my SOAP Service?</A></STRONG><BR>
   If you add a SOAPContext Object as first Parameter in the signature of your SOAP-service java-method, a 'SOAPContext' Object is passed to your class, e.g.:    <BR>    .mymethod(SOAPContext inContext, String inString)<BR><BR>This SOAPContext object gives you access to the HttpSession, HttpRequest, HttpResponse (see java doc for details).<BR>So, your SOAP service method can get the servlet request out of the context object, and then call the getRemoteAddr() method on the service request object: <BR><BR>import javax.servlet.http.*; <BR>.... <BR>HttpServletRequest req = <BR>(HttpServletRequest)soapCtx.getProperty(org.apache.soap.Constants.BAG_HTTPSERVLETREQUEST); <BR>String remoteIPAddress = req.getRemoteAddr();<BR><BR>NOTE: this will only work where the client and server are both using the Apache SOAP libraries.<p>
   2.40&nbsp;&nbsp;<STRONG><A NAME="Q2_40">Can a client programmatically deploy a SOAP service?</A></STRONG><BR>
  @@ -246,8 +252,8 @@
   Dion Almaer has written an article about this and it has been included in the distribution. See <A HREF="http://xml.apache.org/websrc/cvsweb.cgi/xml-soap/java/docs/install/weblogic51.html">http://xml.apache.org/websrc/cvsweb.cgi/xml-soap/java/docs/install/weblogic51.html</a>.<p>
   3.5&nbsp;&nbsp;<STRONG><A NAME="Q3_5">How do I install Apache-SOAP on Bea WebLogic 6.0?</A></STRONG><BR>
   Dion Almaer has written an article about this: <A HREF="http://www.almaer.com/weblogic60.html">http://www.almaer.com/weblogic60.html</a>. There are some additional comments here: <A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=98808422428291&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=98808422428291&w=2</a>.<p>
  -3.6&nbsp;&nbsp;<STRONG><A NAME="Q3_6">How do I install Apache-SOAP on Bea WebLogic 6.1 beta?</A></STRONG><BR>
  -It seems to be more or less the same process as that used for WebLogic 6.0, but there are some (new) gotchas related to JAXP. See <A HREF="http://xml.apache.org/soap/faq/faq-for-WL6.1beta.html">http://xml.apache.org/soap/faq/faq-for-WL6.1beta.html</a> [note: when WebLogic 6.1 is released, we will merge this FAQ with the Apache SOAP install docs] and <A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=99270271408539&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=99270271408539&w=2</a>.<p>
  +3.6&nbsp;&nbsp;<STRONG><A NAME="Q3_6">How do I install Apache-SOAP on Bea WebLogic 6.1?</A></STRONG><BR>
  +It seems to be more or less the same process as that used for WebLogic 6.0, but there are some (new) gotchas related to JAXP. See <A HREF="http://xml.apache.org/soap/faq/faq-for-WL6.1beta.html">http://xml.apache.org/soap/faq/faq-for-WL6.1beta.html</a> [note: when WebLogic 6.1 is released, we will merge this FAQ with the Apache SOAP install docs] and <A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=99270271408539&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=99270271408539&w=2</a>. See also <A HREF="http://groups.google.com/groups?selm=9aa6e58.0201112156.c3e9724%40posting.google.com&oe=UTF8&output=gplain">http://groups.google.com/groups?selm=9aa6e58.0201112156.c3e9724%40posting.google.com&oe=UTF8&output=gplain</a>.<p>
   3.7&nbsp;&nbsp;<STRONG><A NAME="Q3_7">How do I install Apache-SOAP on Resin?</A></STRONG><BR>
   Under Resin 1.2.3, configure a web app to point to the soap webapp directory (i.e.<path-to-apache-soap>/webapps/soap). See also <A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=99650513909887&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=99650513909887&w=2</a>.<p>
   3.8&nbsp;&nbsp;<STRONG><A NAME="Q3_8">How do I install Apache-SOAP on IBM WebSphere?</A></STRONG><BR>
  @@ -303,6 +309,11 @@
   The javax.xml.transform.TransformerException class is in the xalan library - see <A HREF="http://xml.apache.org/xalan-j/index.html">http://xml.apache.org/xalan-j/index.html</a>. Ensure that xalan.jar is in your SOAP server's classpath. If you're using an XSLT library other than xalan, make sure the jar defines javax.xml.transform.TransformerException.<p>
   4.20&nbsp;&nbsp;<STRONG><A NAME="Q4_20">I'm getting a segmentation fault when I try to run SOAP on Red Hat. What's wrong?</A></STRONG><BR>
   Take a look at <A HREF="http://java.sun.com/j2se/1.3/jre/install-linux.html">http://java.sun.com/j2se/1.3/jre/install-linux.html</a>. It describes a bug in java that causes a segmentation fault. The glibc-2.2x libraries don't correctly handle initial stack sizes larger than 6Mb.<BR>There is a workaround: Use "ulimit -s 2048" in bash shell or "limit stacksize 2048" in tcsh to limit the initial thread stack to 2 MB.<p>
  +4.21&nbsp;&nbsp;<STRONG><A NAME="Q4_21">I think I may have an old XML/Servlet library which is causing problems with SOAP. How do I determine if this library is being used?</A></STRONG><BR>
  +You need to figure out exactly which path/jar file a particular class is being loaded from. There is a tool called JWhich which can unambiguously determine which class will be loaded first in the classpath. See here: <A HREF="http://www.javaworld.com/javaworld/javatips/jw-javatip105.html">http://www.javaworld.com/javaworld/javatips/jw-javatip105.html</a>.<p>
  +4.22&nbsp;&nbsp;<STRONG><A NAME="Q4_22">Help! The calculator example won't work. I'm seeing this error: ""SOAP-ENV:Server.BadTargetObjectURI
  + - Unable to load BSF: script services not available withoutBSF: com.ibm.bsf.BSFManager</A></STRONG><BR>
  +You might want to download bsf from<BR><A HREF="http://oss.software.ibm.com/developerworks/projects/bsf">http://oss.software.ibm.com/developerworks/projects/bsf</a> <BR>and js from <A HREF="http://www.mozilla.org/rhino/download.html">http://www.mozilla.org/rhino/download.html</a> <BR><BR>For more info, see:<BR><A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=99687932626273&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=99687932626273&w=2</a><p>
   
   
   <p><H2><u>5.&nbsp;&nbsp;Design and Architecture Issues</u></H2>
  @@ -316,6 +327,8 @@
   As a MIME attachment. Note that this will use a lot of memory, because in the current Apache-SOAP implementation, the entire file is read into memory before it is sent. See <A HREF="http://xml.apache.org/soap/docs/guide/attachments.html">http://xml.apache.org/soap/docs/guide/attachments.html</a> for more information.<p>
   5.6&nbsp;&nbsp;<STRONG><A NAME="Q5_6">How do I add a file attachment to a SOAP response using MIME?</A></STRONG><BR>
   See <BR>(a) The documentation - <A HREF="http://xml.apache.org/soap/docs/guide/attachments.html">http://xml.apache.org/soap/docs/guide/attachments.html</a> and <BR>(b) The code in the 'mime' folder in the Apache SOAP 'samples' directory.<p>
  +5.7&nbsp;&nbsp;<STRONG><A NAME="Q5_7">How do I return an MS Word document as the result of a SOAP method invocation?</A></STRONG><BR>
  +Yes! You can return your MS Word document as an attachment.<BR>To do that you have just to return a DataHandler. For more information, see: <A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=101923233904294&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=101923233904294&w=2</a>.<p>
   5.9&nbsp;&nbsp;<STRONG><A NAME="Q5_9">Is it possible to pass parameters to the constructor in a SOAP application ?</A></STRONG><BR>
   No, unfortunately it isn't. The SOAP server requires that you have a public no-argument constructor - this is what used to create an instance of your target service provider. <BR>An alternative to parameter passing is to load the information you need from a property file, or to set each parameter after object instantiation.<p>
   5.10&nbsp;&nbsp;<STRONG><A NAME="Q5_10">How do I write a SOAP service that maintains state across a session?</A></STRONG><BR>
  @@ -340,6 +353,8 @@
   See this article on IBM developerWorks: <A HREF="http://www-106.ibm.com/developerworks/webservices/library/ws-arc3/">http://www-106.ibm.com/developerworks/webservices/library/ws-arc3/</a><p>
   5.22&nbsp;&nbsp;<STRONG><A NAME="Q5_22">Is it possible to compress Apache SOAP data packets?</A></STRONG><BR>
   Neither the SOAP standard (<A HREF="http://www.w3.org/TR/SOAP/">http://www.w3.org/TR/SOAP/</a>), nor the standard distribution of Apache SOAP provide support for compression. However, a number of Apache SOAP users have suggested extensions that might allow data compression. See for example,  Robert Schmitt's comments and code: <A HREF="http://marc.theaimsgroup.com/?l=soap-user&m=100229134130643&w=2">http://marc.theaimsgroup.com/?l=soap-user&m=100229134130643&w=2</a>.<p>
  +5.23&nbsp;&nbsp;<STRONG><A NAME="Q5_23">What is the difference between RPC style SOAP and document style SOAP?</A></STRONG><BR>
  +RPC style SOAP is the more traditional request-response method invocation, but where the data is packaged as XML. Document style SOAP deals with passing arbitrary XML documents around as SOAP input and output (this is how SOAP is primarily used in .NET). For a more detailed explanation, see this article:  <A HREF="http://www.infoworld.com/articles/fe/xml/02/03/25/020325fejavatca.xml">http://www.infoworld.com/articles/fe/xml/02/03/25/020325fejavatca.xml</a>.<p>
   
   
   <p><H2><u>6.&nbsp;&nbsp;SOAP and Namespaces</u></H2>
  @@ -408,6 +423,8 @@
   Have a look here:<BR><A HREF="http://xml.apache.org/soap/docs/guide/interop.html">http://xml.apache.org/soap/docs/guide/interop.html</a> <BR><A HREF="http://www-106.ibm.com/developerworks/library/ws-ref3/?n-ws-5241">http://www-106.ibm.com/developerworks/library/ws-ref3/?n-ws-5241</a> <BR><A HREF="http://www.perfectxml.com/articles/xml/soapguide.asp">http://www.perfectxml.com/articles/xml/soapguide.asp</a><p>
   9.6&nbsp;&nbsp;<STRONG><A NAME="Q9_6">How do I Access a Apache SOAP Service using a Microsoft .NET (Beta 2) Client?</A></STRONG><BR>
   Microsoft have a 'How To' document here:<BR><A HREF="http://support.microsoft.com/directory/article.asp?id=q307324">http://support.microsoft.com/directory/article.asp?id=q307324</a>. <BR>See also <A HREF="http://support.microsoft.com/directory/article.asp?id=q307318">http://support.microsoft.com/directory/article.asp?id=q307318</a><p>
  +9.7&nbsp;&nbsp;<STRONG><A NAME="Q9_7">Is there a mailing list for Microsoft SOAP users?</A></STRONG><BR>
  +The best place for support on the MS toolkits is probably the MS newsgroups:<BR>- microsoft.public.xml.soap<BR>- microsoft.public.xml.soapsdk<p>
   9.8&nbsp;&nbsp;<STRONG><A NAME="Q9_8">Where can I find an example of how to use the low-level MS SOAP API?</A></STRONG><BR>
   Here is a tutorial which shows how to write a SOAP client using the MS SOAP low-level API: <A HREF="http://www.soapuser.com/client4.html">http://www.soapuser.com/client4.html</a><p>
   9.9&nbsp;&nbsp;<STRONG><A NAME="Q9_9">How do I maintain sessions between Apache-SOAP and MS SOAP?</A></STRONG><BR>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: general-cvs-help@xml.apache.org