Re: soap, Jetty

2002-10-09 Thread Emma Johansson

Hi Scott,

Thanks alot for your email yesterday, I really appreciate your help. Since
you're talking about bat
files I assume that you're using a windows OS. I myself am using Jetty
4.0.5 on Sun Solaris with
a j2sdk1.4.0. My jetty.bat file seems to be incorrect since I only read
/Jetty/bin/jetty.bat: @echo:  not found
/Jetty/bin/jetty.bat[2]: :::  not found.
..
 syntax error at line 29 : `(' unexpected

/Emma





Scott Nichol wrote:

> I have successfully run Apache SOAP with Jetty.  Here's what I did.
>
> 1. Download and install Jetty 1.4.1
> 2. Edit %JETTY_HOME%\bin\jetty.bat, adding two lines after line 117
> (the location of activation.jar and mail.jar will vary)
>
> set CP=%CP%;j:\jakarta-tomcat-4.0.1\common\lib\activation.jar
> set CP=%CP%;j:\jakarta-tomcat-4.0.1\common\lib\mail.jar
>
> 3. Copy soap.war to %JETTY_HOME%\webapps
> 4. From %JETTY_HOME%\bin, run
>
> jetty etc\jetty.xml
>
> Step 2 adds the necessary jars to the classpath used by jetty.  Step 3
> adds the soap webapp.  Step4 starts jetty with a configuration file that
> will unpack war files and create a webapp context for each directory.
>
> Note: because jetty.bat does not put ant in the jetty classpath, JSPs
> are not enabled in the configuration I've described.
>
> Scott Nichol
>
> - Original Message -
> From: "Scott Nichol" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 08, 2002 9:36 AM
> Subject: Re: soap, Jetty
>
> > Apache SOAP should be able to work with any servlet container.  The
> only
> > thing that changes from container to container is the way in which
> > Apache SOAP is installed.  Doing a Google search, I found some info on
> > installing Apache SOAP 2.0 on Jetty 3.0, but the current Apache
> versions
> > install differently.  I did not look past the first page of results,
> so
> > there may be something better.
> >
> > Scott Nichol
> >
> > - Original Message -
> > From: "Emma Johansson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 08, 2002 9:01 AM
> > Subject: soap, Jetty
> >
> >
> > > Hi!
> > >
> > > Is there some way to create a client that communicates with a
> servlet
> > > where Jetty is the servlet container and all messages should be
> > > transmitted as SOAP messages over HTTP? If so, please tell me how.
> > >
> > > I have just found tutorials when Tomcat is the server.
> > >
> > > / Emma
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> 
> > > For additional commands, e-mail:
> 
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> >
> >
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Parsing a SOAP request

2002-10-09 Thread Dale Attree

How would one extract data from an HTTP request generated by a soap client
using PHP?


Kind Regards,
Dale


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Parsing SOAP message request in Java

2002-10-09 Thread KavithaK

Hi All,

 I want to know how can i access a request that has been sent thru the
message.sent() method ..

for example..
i send my xml document through this soap method

 msg.send (new URL ("http://localserver/soap/messagerouter";),
"urn:testservice", msgEnv);

where msgEnv parsed is a soap xml. which contains the following xml file

 http://schemas.xmlsoap.org/soap/envelope/";>
 
  
  
   XXX
  
 
 YYY

  
 
  

1) now i need to parse the soap/xml document in the mentod called
doRegister() deployed in urn:testservice.
2)
here is am sample of the method doRegister


public void doRegistration(Envelope env, SOAPContext req, SOAPContext res)
  throws IOException, MessagingException
 {

  try{

  String firstName = null;
  String lastName = null;
  String output =null;

  Vector lovcEntries = env.getEnvelopeEntries();  //trying to get
the xml file contents

 }


  catch(Exception ex){

   System.out.println("Exception in the RegisterService ::
doRegistration()");

  }
 }

i want to get the first and last name tag's from the SOAP/xml. how do i get
it. but by using the above env.getEnvelopeEntries() i am not able to get
entries. Can anyone suggest me how to parse the Sent xnl fine.

can anyone help me pls

Thanks,
Kavitha


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




SOAP parsing

2002-10-09 Thread Dale Attree

Is there anyway with PHP to obtain the entire HTTP request containing the
SOAP message so as to decode the SOAP message and obtain the data within the
SOAP message?

Here is the request being sent by my client, I now need to be able to parse
on the server side.

POST /development/de/xkernel.php HTTP/1.0
User-Agent: Bubbles/0.1
Host: kwik.apollo.local
Content-Type: text/xml
Content-Length: 655
SOAPAction: "SOAP process"


http://schemas.xmlsoap.org/soap/encoding/";
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
  xmlns:si="http://soapinterop.org/xsd";>

http://testuri.org";>
Bubbles
Dale 'KWIK' Attree
123




Kind Regards,
Dale Attree


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Bug handling survey - Tree based models

2002-10-09 Thread Gunes Koru


Hello Soap contributors,

I am conducting a survey about the way bugs are handled in open source
software projects. The survey includes questions that can be answered by
developers,testers, bug fixers, project managers, and owners of defect
databases. It is only and only for research purposes and it is very easy
to fill out. It consists of three short sections which can be completed at
once or in different sessions. Please fill it out if you haven't done yet.
You will find the questions interesting since there is a reason behind
each one one of them. They will make you think about how things work (or
could work)in your project. The survey can be found in the address:

http://www.seas.smu.edu/~gkoru/surveys/dhsurvey.html

The data in the bug databases can be used to identify the high risk areas
in the software development. One of the ways of doing it is constructing
tree-based models, which could be very useful in open source projects. If
you would like to read about it, I prepared a web page for you:

http://www.seas.smu.edu/~gkoru/surveys/tbdm1.html

Please accept my apologies if you receive duplicates of this e-mail. This
is a survey, which will give useful results for all of us. I will try to
prepare and make some preliminary results on-line within the next two
weeks. Since this is a survey, covering many important open source
projects, it will be interesting for everybody to see what kind of quality
assurance work is going on in the other projects. As always, we are very
dedicated to this research. Please contact me for any question you might
have.

Thank you,

A. Gunes Koru
http://www.engr.smu.edu/~gkoru

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Parsing a SOAP request

2002-10-09 Thread Scott Nichol

The way you have phrased the question is ambiguous: is the request
generated by a PHP SOAP client, or is the extraction to be done using
PHP?  Either way, I'll point out that Apache SOAP and NuSOAP
interoperate well.

Scott Nichol

- Original Message -
From: "Dale Attree" <[EMAIL PROTECTED]>
To: "SOAP-Dev" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 4:29 AM
Subject: Parsing a SOAP request


> How would one extract data from an HTTP request generated by a soap
client
> using PHP?
>
>
> Kind Regards,
> Dale
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: SOAP parsing

2002-10-09 Thread Scott Nichol

Again, I am somewhat unclear.  Is the idea that you want a PHP SOAP
server?  If so, check NuSOAP.  I would also recommend checking PHP
resources, e.g. php.net.

Scott Nichol

- Original Message -
From: "Dale Attree" <[EMAIL PROTECTED]>
To: "SOAP-Dev" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 5:46 AM
Subject: SOAP parsing


> Is there anyway with PHP to obtain the entire HTTP request containing
the
> SOAP message so as to decode the SOAP message and obtain the data
within the
> SOAP message?
>
> Here is the request being sent by my client, I now need to be able to
parse
> on the server side.
>
> POST /development/de/xkernel.php HTTP/1.0
> User-Agent: Bubbles/0.1
> Host: kwik.apollo.local
> Content-Type: text/xml
> Content-Length: 655
> SOAPAction: "SOAP process"
>
> 
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
>   xmlns:si="http://soapinterop.org/xsd";>
> 
> http://testuri.org";>
> Bubbles
> Dale 'KWIK' Attree
> 123
> 
> 
> 
>
> Kind Regards,
> Dale Attree
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Parsing SOAP message request in Java

2002-10-09 Thread Scott Nichol

You want to use the getBody method of Envelope.  In turn, the
getBodyEntries method of Body will let you access the immediately
children of the  element.  Normally, this would be the method
call (below you have , which I would guess to be a SOAP struct).

Scott Nichol

- Original Message -
From: <[EMAIL PROTECTED]>
To: "SOAP-Dev" <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 5:58 AM
Subject: Parsing SOAP message request in Java


> Hi All,
>
>  I want to know how can i access a request that has been sent thru the
> message.sent() method ..
>
> for example..
> i send my xml document through this soap method
>
>  msg.send (new URL ("http://localserver/soap/messagerouter";),
> "urn:testservice", msgEnv);
>
> where msgEnv parsed is a soap xml. which contains the following xml
file
> 
>  http://schemas.xmlsoap.org/soap/envelope/";>
>  
>   
>   
>XXX
>   
>  
>  YYY
> 
>   
>  
>   
>
> 1) now i need to parse the soap/xml document in the mentod called
> doRegister() deployed in urn:testservice.
> 2)
> here is am sample of the method doRegister
>
>
> public void doRegistration(Envelope env, SOAPContext req, SOAPContext
res)
>   throws IOException, MessagingException
>  {
>
>   try{
>
>   String firstName = null;
>   String lastName = null;
>   String output =null;
>
>   Vector lovcEntries = env.getEnvelopeEntries();  //trying to
get
> the xml file contents
>
>  }
>
>
>   catch(Exception ex){
>
>System.out.println("Exception in the RegisterService ::
> doRegistration()");
>
>   }
>  }
>
> i want to get the first and last name tag's from the SOAP/xml. how do
i get
> it. but by using the above env.getEnvelopeEntries() i am not able to
get
> entries. Can anyone suggest me how to parse the Sent xnl fine.
>
> can anyone help me pls
>
> Thanks,
> Kavitha
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: soap, Jetty

2002-10-09 Thread Scott Nichol

The jetty.sh with Jetty 4.1.4 has the section

#
# Build the classpath with Jetty's bundled libraries.
#
if [ $JAVA_VERSION -lt 4 ]
then
   CP=$(ls $JETTY_HOME/ext/*.jar $JETTY_HOME/lib/*.jar | \
  egrep -v org.mortbay.jetty.jar | \
  paste -s -d"$PATH_SEPARATOR" - )
else
   CP=$(ls $JETTY_HOME/ext/*.jar $JETTY_HOME/lib/*.jar | \
  egrep -v
org.mortbay.jetty-jdk1.2.jar\|crimson.jar\|javax.xml.jaxp.jar | \
  paste -s -d"$PATH_SEPARATOR" - )
fi
[ "$CLASSPATH" != "" ] && CP=$CP$PATH_SEPARATOR$CLASSPATH
[ -f $JAVA_HOME/lib/tools.jar ] &&
CP="$CP$PATH_SEPARATOR$JAVA_HOME/lib/tools.jar"
CLASSPATH="$CP"


To use it with Apache SOAP, I would add a line before CLASSPATH="$CP"
like

CP="$CP$PATH_SEPARATOR/path-to-jar/mail.jar$PATH_SEPARATOR/path-to-jar/a
ctivation.jar"

Scott Nichol

- Original Message -
From: "Emma Johansson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 3:31 AM
Subject: Re: soap, Jetty


> Hi Scott,
>
> Thanks alot for your email yesterday, I really appreciate your help.
Since
> you're talking about bat
> files I assume that you're using a windows OS. I myself am using Jetty
> 4.0.5 on Sun Solaris with
> a j2sdk1.4.0. My jetty.bat file seems to be incorrect since I only
read
> /Jetty/bin/jetty.bat: @echo:  not found
> /Jetty/bin/jetty.bat[2]: :::  not found.
> ..
>  syntax error at line 29 : `(' unexpected
>
> /Emma
>
>
>
>
>
> Scott Nichol wrote:
>
> > I have successfully run Apache SOAP with Jetty.  Here's what I did.
> >
> > 1. Download and install Jetty 1.4.1
> > 2. Edit %JETTY_HOME%\bin\jetty.bat, adding two lines after line 117
> > (the location of activation.jar and mail.jar will vary)
> >
> > set CP=%CP%;j:\jakarta-tomcat-4.0.1\common\lib\activation.jar
> > set CP=%CP%;j:\jakarta-tomcat-4.0.1\common\lib\mail.jar
> >
> > 3. Copy soap.war to %JETTY_HOME%\webapps
> > 4. From %JETTY_HOME%\bin, run
> >
> > jetty etc\jetty.xml
> >
> > Step 2 adds the necessary jars to the classpath used by jetty.  Step
3
> > adds the soap webapp.  Step4 starts jetty with a configuration file
that
> > will unpack war files and create a webapp context for each
directory.
> >
> > Note: because jetty.bat does not put ant in the jetty classpath,
JSPs
> > are not enabled in the configuration I've described.
> >
> > Scott Nichol
> >
> > - Original Message -
> > From: "Scott Nichol" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 08, 2002 9:36 AM
> > Subject: Re: soap, Jetty
> >
> > > Apache SOAP should be able to work with any servlet container.
The
> > only
> > > thing that changes from container to container is the way in which
> > > Apache SOAP is installed.  Doing a Google search, I found some
info on
> > > installing Apache SOAP 2.0 on Jetty 3.0, but the current Apache
> > versions
> > > install differently.  I did not look past the first page of
results,
> > so
> > > there may be something better.
> > >
> > > Scott Nichol
> > >
> > > - Original Message -
> > > From: "Emma Johansson" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 08, 2002 9:01 AM
> > > Subject: soap, Jetty
> > >
> > >
> > > > Hi!
> > > >
> > > > Is there some way to create a client that communicates with a
> > servlet
> > > > where Jetty is the servlet container and all messages should be
> > > > transmitted as SOAP messages over HTTP? If so, please tell me
how.
> > > >
> > > > I have just found tutorials when Tomcat is the server.
> > > >
> > > > / Emma
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > 
> > > > For additional commands, e-mail:
> > 
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:

> > > For additional commands, e-mail:

> > >
> > >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Classpath on Windows ME

2002-10-09 Thread Scott Nichol

The Windows ME version of start does not support a title parameter;
therefore, you should remove the "Catalina" parameter from line 3.

Also, your classpath is all wrong.  Tomcat does not want your normal
classpath.  It wants a classpath with its own bootstrap.jar and the
tools.jar from your JDK.  The Tomcat classpath should not have anything
else.  Tomcat will pick up everything in its common/lib directory, as
well as all the classes and jars copied to webapps/axis (you have
followed the instructions at
http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/install.
html, right?).

Also, I cannot recommend strongly enough that you use the release
version of Axis rather than a beta.

Scott Nichol

- Original Message -
From: "Syam Rajasekharuni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 2:11 AM
Subject: Re: Classpath on Windows ME


> Hi,
>
> I created the bat file with the following:
>
> Line 1
> set _CLASSPATH=%CLASSPATH%
>
> Line2
> set
>
CLASSPATH="C:\XML-AXIS-BETA1\LIB\AXIS.JAR;C:\XML-AXIS-BETA1\LIB\JAXRPC.J
AR;C
>
:\XML-AXIS-BETA1\LIB\CLUTIL.JAR;C:\XML-AXIS-BETA1\LIB\WSDL4J.JAR;C:\XML-
AXIS
> -BETA1\LIB\LOG4J-CORE.JAR;C:\XML-AXIS-BETA1\LIB\COMMONS-LOGGING.JAR;C:
\XML-A
>
XIS-BETA1\LIB\TTBYTECODE.JAR;C:\JAKARTA-TOMCAT-4.0.4\COMMON\LIB\XERCES.J
AR;C
> :\JAKARTA-TOMCAT-4.0.4\COMMON\LIB\ACTIVATION.JAR"
>
> Line3
> start "Catalina"
>
"C:\J2SDK1.4.0_02\BIN\java" -Dcatalina_base="c:\jakarta-tomcat-4.0.4" -D
cata
> lina_home="c:\jakarta-tomcat-4.0.4"
org.apache.catalina.startup.Bootstrap
> start
>
> Line 4
> set CLASSPATH=%_CLASSPATH%
>
> I have placed this file in C:\JAKARTA-TOMCAT-4.0.4/BIN directory and
invoked
> it.
>
> I got this error:
>
> A device attached to the system is not functioning
>
> Any clues ?
>
> Thanks
> Syam
>
>
>
> - Original Message -
> From: "Scott Nichol" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 09, 2002 12:27 PM
> Subject: Re: Classpath on Windows ME
>
>
> > You will find that catalina.bat uses a fair amount of environment.
> > However, it is mostly dynamically creating the proper command to
invoke.
> > On the machine I am currently using, which already has
CATALINA_HOME,
> > CATALINA_BASE and JAVA_HOME in the environment, running startup.bat
from
> > %CATALINA_HOME%\bin is equivalent to (word wrapping will make this
look
> > screwy, but it's 5 lines)
> >
> > set _CLASSPATH=%CLASSPATH%
> > set
> >
CLASSPATH="j:\jakarta-tomcat-4.0.1\bin\bootstrap.jar;j:\j2sdk1.4.0_01\li
> > b\tools.jar"
> > start "Catalina" "j:\j2sdk1.4.0_01\bin\java"
> >  -Dcatalina.base="j:\jakarta-tomcat-4.0.1"
> >  -Dcatalina.home="j:\jakarta-tomcat-4.0.1"
> >  org.apache.catalina.startup.Bootstrap
> >  start
> > set CLASSPATH=%_CLASSPATH%
> > set _CLASSPATH=
> >
> > You should be able to construct a batch file with a similar set of
> > commands to execute Tomcat as an alternative to the startup.bat.
> >
> > Scott Nichol
> >
> > - Original Message -
> > From: "Syam Rajasekharuni" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 08, 2002 10:00 PM
> > Subject: Re: Classpath on Windows ME
> >
> >
> > > Hi,
> > >
> > > I have tried maximum environment space of 4096K with CLASSPATH
defined
> > as
> > > shown below by Scott, restarted PC,
> > > Still I get the same error Out of Environment Space when Tomcat
> > startup is
> > > invoked.
> > >
> > > I read on Internet that increasing the maximum environment space
> > beyond
> > > 4096K may work, but it didn't in this case.
> > > Can someone replicate the problem on thier Pc (Windows 98 or ME)
what
> > I am
> > > trying to do ? You must have JDK1.4 or above, Jakarta-Tomcat 4.0.3
or
> > above,
> > > AXIS 1.
> > >
> > > If so, I will send the code for web service.
> > >
> > > Thanks
> > > Syam
> > >
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Scott Nichol" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 09, 2002 1:18 AM
> > > Subject: Re: Classpath on Windows ME
> > >
> > >
> > > > Check
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q230205;
> > > > you will see that the maximum environment space is 4096k.
> > > >
> > > > Scott Nichol
> > > >
> > > > - Original Message -
> > > > From: "Scott Nichol" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, October 08, 2002 11:07 AM
> > > > Subject: Re: Classpath on Windows ME
> > > >
> > > >
> > > > > I suspect your use of /e:920 in config.sys means that the
> > option
> > > > is
> > > > > ignored.  My config.sys on Windows 98 has
> > > > >
> > > > > shell=c:\windows\command.com /e:4096 /p
> > > > >
> > > > > You can build your classpath like (note that you should not
need
> > the
> > > > > J2SDK stuff)
> > > > >
> > > > > SET CLASSPATH=C:\AXIS
> > > > > SET CLASSPATH=%CLASSPATH%;C:\XML-AXIS-BETA1\LIB\AXIS.JAR
> > > > > SET CLASSPATH=%CLASSPATH%

Re: committing some perf improvements

2002-10-09 Thread Scott Nichol

+1 as far as I'm concerned.

Scott Nichol

- Original Message -
From: "Sanjiva Weerawarana" <[EMAIL PROTECTED]>
To: "Apache SOAP" <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 10:43 PM
Subject: committing some perf improvements


> Several months ago I made some changes to the codebase on my
> machine to basically change write (s1 + s2 + .. + sn) to
> write (s1)
> write (s2)
> ..
> and noticed that it got an improvement of about 5%. I just went
> thru and brought the changes in sync with the latest codebase.
>
> Unless anyone objects soon I intend to commit these tomorrow.
>
> Bye,
>
> Sanjiva.
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Transfer

2002-10-09 Thread ROB . HEWLETT

Can I transfer say a 20 M file via soap? If so how do I wrap that and
should I be even considering
SOAP for such a transfer?




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Transfer

2002-10-09 Thread SoumenS

SOAP is XML based application protocol mapped to some transport protocol.
Since you are transferring large file, transport protocol issues are
involved.
I beleive, you need to search for a SOAP implementation on some suitable
transport protocol. The document should be transferred as an attachment.

Soumen Sarkar.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 10:35 AM
To: [EMAIL PROTECTED]
Subject: Transfer


Can I transfer say a 20 M file via soap? If so how do I wrap that and
should I be even considering
SOAP for such a transfer?




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Transfer

2002-10-09 Thread Scott Nichol

Reasons you might want to use SOAP:

1. You want to process the document as soon as it is received
2. You want the sender to know the result of the processing
3. You want to write as little plumbing as possible

Here's what I would do in a couple situations

1 = don't care, 2 = no, 3 = yes

I would use FTP or SSH (if more security is required).

1 = yes, 2 = don't care, 3 = don't care

I would send the document using HTTP POST and write a simple servlet

1 = yes, 2 = yes, 3 = yes

I would use SOAP, which would have the additional benefit of providing a
standard way to document the service if I needed third parties to
interface with my processor.  For ease of coding, I would pass the
document as a parameter (see the Apache SOAP mime sample for code that
does this).  I definitely would use a nightly build of Apache SOAP so
that I could enable gzip encoding, so the document would be compressed
on the fly.

Scott Nichol

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 1:34 PM
Subject: Transfer


> Can I transfer say a 20 M file via soap? If so how do I wrap that and
> should I be even considering
> SOAP for such a transfer?
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Transfer

2002-10-09 Thread Skip Marler

You can attach the file within the SOAP envelope, but, it will use encoding.
I can't give the exact calculation but for every 6 bytes you want to send
you actually send 8.

Regards,
Skip Marler

www.parasoft.com
[EMAIL PROTECTED]
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 10:34 AM
Subject: Transfer


> Can I transfer say a 20 M file via soap? If so how do I wrap that and
> should I be even considering
> SOAP for such a transfer?
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Transfer

2002-10-09 Thread Scott Nichol

The base64-encoded data compresses pretty nicely with gzip, though.

Scott Nichol

- Original Message -
From: "Skip Marler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 2:31 PM
Subject: Re: Transfer


> You can attach the file within the SOAP envelope, but, it will use
encoding.
> I can't give the exact calculation but for every 6 bytes you want to
send
> you actually send 8.
>
> Regards,
> Skip Marler
>
> www.parasoft.com
> [EMAIL PROTECTED]
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 09, 2002 10:34 AM
> Subject: Transfer
>
>
> > Can I transfer say a 20 M file via soap? If so how do I wrap that
and
> > should I be even considering
> > SOAP for such a transfer?
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> >
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: