Please unsubscribe me

2002-01-31 Thread Andrew Simpson


I have tried repeatedly to unsubscribe from this list, and received
acknowledgements, but still receive the messages.

How can I unsubscribe?

Thanks,

Andrew


 Andrew Simpson, SpeechWorks International, Inc.
 695 Atlantic Avenue, Boston, MA 02111, U.S.A.
 Voice: +1 617 428 ,  Fax: +1 617 757 2211
 [EMAIL PROTECTED]  http://www.speechworks.com





RE: soap.xml and deployed-services.xml

2002-01-22 Thread Andrew Simpson


For the J2EE RI, soap.xml file does not need to live in WEB-INF, but in the
root of the directory created by the war file.

here is the contents of my soap war file:

META-INF/
META-INF/MANIFEST.MF
soap.xml
WEB-INF/
WEB-INF/lib/
WEB-INF/lib/activation.jar
WEB-INF/lib/cscie162-asimpson-fp-ba.jar
WEB-INF/lib/mail.jar
WEB-INF/lib/soap.jar
WEB-INF/lib/xerces.jar
WEB-INF/web.xml

And here is the relevant section of the web.xml file:


init-param
  param-nameConfigFile/param-name
  param-valuesoap.xml/param-value
/init-param
  /servlet

Not sure if this is the same on BEA.

Andrew



-Original Message-
From: Jamie Tsao [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 1:34 PM
To: [EMAIL PROTECTED]
Subject: RE: soap.xml and deployed-services.xml


Now I'm really confused, the Apache documentation clearly says:

init-param
  param-nameConfigFile/param-name
  param-valueconfig-file/param-value
/init-param
  /servlet
where config-file is the path (either fully qualified or relative) and
filename of the SOAP configuration file.

So this means that it should work if I put /WEB-INF/soap.xml
In my soap.xml file, I have:
soapServer
  configManager value=org.apache.soap.server.XMLConfigManager
option name=filename value=/WEB-INF/deployed-services.xml/
  /configManager
/soapServer

Why is this not working ??  I really don't want to put soap.xml and
deployed-services.xml in my root web directory.  IT BELONGS IN WEB-INF 
ANYBODY ???
I'm using weblogic 6.1
Thanks.


-Original Message-
From: Jamie Tsao
Sent: Monday, January 21, 2002 5:24 PM
To: [EMAIL PROTECTED]
Subject: soap.xml and deployed-services.xml


Do these files have to be in the root directory of the web app ??  Why can't
I put these files in the WEB-INF directory, and just specify the path in
web.xml:

init-param
  param-nameConfigFile/param-name
  param-valueWEB-INF/soap.xml/param-value
/init-param

This seems a bit odd to me.  Can somebody confirm or explain this ?

Thanks




RE: Do I need a serializer ?

2002-01-14 Thread Andrew Simpson


Standard apache serializers will (de)serialize most of what you need.  As
well as basic types, you can even d/s arrays of beans, or beans which
contain other beans.

Attached is a deployment descriptor for a stateless session bean which
returns arrays of beans, some sample beans, and some sample XML generated.

Andrew


 Andrew Simpson, SpeechWorks International, Inc.
 695 Atlantic Avenue, Boston, MA 02111, U.S.A.
 Voice: +1 617 428 ,  Fax: +1 617 757 2211
 [EMAIL PROTECTED]  http://www.speechworks.com


-Original Message-
From: Jamie Tsao [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 3:22 PM
To: [EMAIL PROTECTED]
Subject: Do I need a serializer ?

I'm a beginner with SOAP, and have been reading a lot of documentation on
it.  I'm a bit confused about whether or not I need a serializer.
What I'm trying to build:
I want to use the RPC router servlet to provide a SOAP interface to our
existing platform.  Outside clients would make requests to our platform by
sending XML request messages (in SOAP format).  They would receive responses
also in XML.
So I basically need to take the XML message, grab the data out and
instantiate a bean to pass into our existing business objects.  Is this what
the deserializer is meant for ?  It doesn't seem like it.  The code that
does this seems very specific to the particular format of the XML message,
and seems more like DOM work to me.  When I get the response back from the
business object, I have to take the data out of the javabean, and construct
an XML message to be sent back to the client.  This once agains seems very
specific, and NOT serializer work.
If I'm right in my assumptions, do I need a serializer/deserializer then ??
Thanks for any help.



serialization.zip
Description: Zip compressed data


RE: Serializing an array of beans

2002-01-09 Thread Andrew Simpson


Hi Chris, this looks promising.

However, I'm having trouble using ANY type of home-grown serializer, and
would like to use one which someone knows works (other than the apache ones
which come with the distribution).

Thanks,

Andrew

-Original Message-
From: Chris Means [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 5:03 PM
To: [EMAIL PROTECTED]
Subject: RE: Serializing an array of beans


Unless I misunderstood your problem.

You just put the 'array' brackets next to the object class name, like this:

String [] fieldNames ;

...

if (fieldNames != null)
{
  xjmr.marshall (inScopeEncStyle,
 String[].class,
 fieldNames,
 fieldNames,
 sink,
 nsStack,
 ctx) ;

  sink.write (StringUtils.lineSeparator) ;
}



 -Original Message-
 From: Andrew Simpson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 09, 2002 3:52 PM
 To: [EMAIL PROTECTED]
 Subject: Serializing an array of beans


 Hi, I'm going round in circles trying to serialize an array of beans.

 First I tried using the Apache Bean Serializer, specifying it in the
 deployment descriptor; this worked for one bean, but not for an array.

 I then wrapped the array in another class, then tried to write my own
 serializer for the wrapper class, and refer to this serializer in the
 deployment descriptor.

 This produces an error on post whenever I change it to point from anything
 but the apache serializers.

 I am inspecting the XML returned from the soap servlet, the
 output is shown
 below.

 On the server end, is using the deployment descriptor (e.g. xml2java...
 attribute) sufficent to successfully invoke my serializer when returning a
 reply?

 From the client end I am using perl SOAP::Lite to invoke the function.  On
 the server end I am using the StatelessSessionBean provider to invoke a
 method whose return type is the object array.

 Has anyone managed to write and make work an object array serializer on
 Apache SOAP 2.2.  If so, do you have any code/class/deployment
 descriptors I
 could look at?

 Thanks,

 Andrew

 12:00:18:362|15|S|010: SOAP-ENV:Body
 12:00:18:362|15|S|011: SOAP-ENV:Fault
 12:00:18:362|15|S|012: faultcodeSOAP-ENV:Server.Exception:/faultcode
 12:00:18:362|15|S|013:
 faultstringorg/apache/soap/util/xml/Serializer/faultstring
 12:00:18:362|15|S|014: faultactor/soap/servlet/rpcrouter/faultactor
 12:00:18:362|15|S|015: /SOAP-ENV:Fault
 12:00:18:362|15|S|016:
 12:00:18:362|15|S|017: /SOAP-ENV:Body

 

  Andrew Simpson, SpeechWorks International, Inc.
  695 Atlantic Avenue, Boston, MA 02111, U.S.A.
  Voice: +1 617 428 ,  Fax: +1 617 757 2211
  [EMAIL PROTECTED]  http://www.speechworks.com