<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>soap-dev@xml.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/xml-soap-dev/</id>
<updated>2009-12-09T01:31:50Z</updated>
<entry>
<title>Soap Applet Client - Proxy Connection</title>
<author><name>&quot;Jeeva S&quot; &lt;vavjeeva@lycos.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c000801c2c760$62b98b30$2802a8c0@turtleserver.turtleserver%3e"/>
<id>urn:uuid:%3c000801c2c760$62b98b30$2802a8c0@turtleserver-turtleserver%3e</id>
<updated>2003-01-29T06:33:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,
   I need to invoke a Soap Service from Applet thrugh Proxy.

When i invoke a service, it returns AccessControlException (Connect , Resolve)

Is There any way to invoke service thrugh proxy in applet

Help Me

Thank U
Jeeva S


</pre>
</div>
</content>
</entry>
<entry>
<title>[ANN] Apache WSIF 2.0</title>
<author><name>Aleksander Slominski &lt;aslom@cs.indiana.edu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c3E3579D3.9090208@cs.indiana.edu%3e"/>
<id>urn:uuid:%3c3E3579D3-9090208@cs-indiana-edu%3e</id>
<updated>2003-01-27T18:26:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Apache WSIF 2.0 Released
------------------------

The Apache WSIF (Web Services Invocation Framework) team is proud to announce
the first open release of Apache WSIF.

WSIF (the "Web Services Invocation Framework") is a WSDL-based API for
invoking WSDL-described services. WSIF developers interact with Web Services
at the abstract level through their WSDL descriptions. This is done
independently of APIs specific to a message format or network protocol
(eg SOAP APIs).

With WSIF, developers work with the same programming model regardless of
how the Web service is implemented and accessed. WSIF achieves this with a
pluggable architecture with protocol-specific "providers" to handle
invocations according to a specific protocol.

Apache WSIF 2.0 comes bundled with providers for SOAP (using Apache SOAP or
Axis), local java classes, EJBs, JMS services and applications accessible
via Java Connectors. WSIF also describes the specific WSDL extensions used
to make these kinds of applications accessible as WSDL-described services.

WSIF allows stubless or completely dynamic invocation of a Web service,
based upon examination of the meta-data about the service at runtime. It
also allows updated implementations of a binding to be plugged into WSIF at
runtime, and it allows the calling service to defer choosing a binding until
runtime.

This is the first release of WSIF since it was contributed to the ASF, and
is named 2.0 to avoid confusion with previous non-Apache licensed 1.x
versions.

For more information about Apache WSIF 2.0, please go to
http://xml.apache.org/axis/wsif

Thanks to all the committers, contributors and users for their efforts in
helping get our first release out.

Apache WSIF Development Team.


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Web Services project - open for business</title>
<author><name>Davanum Srinivas &lt;dims@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c20030124162209.10558.qmail@web12804.mail.yahoo.com%3e"/>
<id>urn:uuid:%3c20030124162209-10558-qmail@web12804-mail-yahoo-com%3e</id>
<updated>2003-01-24T16:22:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Last cross-posting, i promise...Added a IRC section on the web site. Anyone can use this channel
to discuss web services related topics. Drop by if you have any questions.

Thanks,
dims

--- Davanum Srinivas &lt;dims@yahoo.com&gt; wrote:
&gt; Folks,
&gt; 
&gt; Please visit http://ws.apache.org. Subscribe to general mailing list. Let's start rockin'...
&gt; 
&gt; Thanks,
&gt; dims
&gt; 
&gt; =====
&gt; Davanum Srinivas - http://xml.apache.org/~dims/
&gt; 
&gt; __________________________________________________
&gt; Do you Yahoo!?
&gt; Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
&gt; http://mailplus.yahoo.com
&gt; 


=====
Davanum Srinivas - http://xml.apache.org/~dims/

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Web Services project - open for business</title>
<author><name>Davanum Srinivas &lt;dims@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c20030124155344.2568.qmail@web12801.mail.yahoo.com%3e"/>
<id>urn:uuid:%3c20030124155344-2568-qmail@web12801-mail-yahoo-com%3e</id>
<updated>2003-01-24T15:53:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Folks,

Please visit http://ws.apache.org. Subscribe to general mailing list. Let's start rockin'...

Thanks,
dims

=====
Davanum Srinivas - http://xml.apache.org/~dims/

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: soap.xml</title>
<author><name>Scott Nichol &lt;snicholnews@scottnichol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c3E2E6119.16309.10F9BD@localhost%3e"/>
<id>urn:uuid:%3c3E2E6119-16309-10F9BD@localhost%3e</id>
<updated>2003-01-22T14:15:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
You should find a DeployedServices.ds somewhere.  If you deployed 
Apache SOAP using the soap.war file, check that it has not been 
written into that file.  Also check any "temp" directory into which 
the contents of soap.war may have been copied.

On 21 Jan 2003 at 17:49, brent wrote:

&gt; hi, there,
&gt; I deployed a soap service on server (weblogic 7.0),
&gt; after I restarted server, service is still there. I'd
&gt; like to know how server store information about this
&gt; service.
&gt; After reading documentation, I tried to find
&gt; soap.xml,DeployedServices.ds, but nothing found.
&gt; I wondered how weblogic remembered this service? and
&gt; if those two files really existed, where are they
&gt; located?
&gt; thanks for help.
&gt; 
&gt; rgds
&gt; brent
&gt; 
&gt; __________________________________________________
&gt; Do you Yahoo!?
&gt; Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
&gt; http://mailplus.yahoo.com
&gt; 
&gt; --
&gt; To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;
&gt; 
&gt; 


Scott Nichol


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proposed Resolution to create the Web Services Project</title>
<author><name>Niclas Hedhman &lt;niclas@ewarna.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c200301220955.51435.niclas@ewarna.com%3e"/>
<id>urn:uuid:%3c200301220955-51435-niclas@ewarna-com%3e</id>
<updated>2003-01-22T01:55:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wednesday 22 January 2003 06:22, Roy T. Fielding wrote:
&gt; I will vote against any resolution calling for a "Web Services" project
&gt; for the same reason we don't have a "Java" project or a ".NET" project.
&gt; Those are marketing names owned and established by other companies.
&gt; Find a new name.

Proposal; WOLF

Acronym to be determined later.

Rationale; 
* Follow Apache Foundation's other animal names.
* Nature's Wolf is strong, cunning, work together and is feared.
* Installation of a Wolf Pack, indicates both lethal power and the common 
description of "pack" as a software component/subsystem.
* Nice Logo can easily be designed.
* Doubt that an animal name can be trademarked.

Niclas


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>soap.xml</title>
<author><name>brent &lt;brent_sun@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c20030122014934.10030.qmail@web13802.mail.yahoo.com%3e"/>
<id>urn:uuid:%3c20030122014934-10030-qmail@web13802-mail-yahoo-com%3e</id>
<updated>2003-01-22T01:49:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi, there,
I deployed a soap service on server (weblogic 7.0),
after I restarted server, service is still there. I'd
like to know how server store information about this
service.
After reading documentation, I tried to find
soap.xml,DeployedServices.ds, but nothing found.
I wondered how weblogic remembered this service? and
if those two files really existed, where are they
located?
thanks for help.

rgds
brent

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proposed Resolution to create the Web Services Project</title>
<author><name>&quot;Roy T. Fielding&quot; &lt;fielding@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3cD752DBEA-2D8E-11D7-94A6-000393753936@apache.org%3e"/>
<id>urn:uuid:%3cD752DBEA-2D8E-11D7-94A6-000393753936@apache-org%3e</id>
<updated>2003-01-21T22:22:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I will vote against any resolution calling for a "Web Services" project
for the same reason we don't have a "Java" project or a ".NET" project.
Those are marketing names owned and established by other companies.
Find a new name.

On Tuesday, January 21, 2003, at 06:53  AM, Sam Ruby wrote:

&gt; WHEREAS, the Board of Directors deems it to be in the best
&gt; interests of the Foundation and consistent with the
&gt; Foundation's purpose to establish a Project Management
&gt; Committee charged with the creation and maintenance of
&gt; open-source software related to Web Services, for distribution
&gt; at no charge to the public.
&gt;
&gt; NOW, THEREFORE, BE IT RESOLVED, that a Project Management
&gt; Committee (PMC), to be known as the "Web Services PMC", be and hereby
&gt; is established pursuant to Bylaws of the Foundation; and be it
&gt; further
&gt;
&gt; RESOLVED, that the Web Services PMC be and hereby is responsible for
&gt; the creation and maintenance of software related to component
&gt; and service management, based on software licensed to the
&gt; Foundation; and be it further

Sorry, no.  That is not specific enough to be a scope of work.  Be 
specific
to avoid including httpd and commons in your scope.

&gt; RESOLVED, that the office of "Vice President, Web Services" be and
&gt; hereby is created, the person(s) holding such office to serve at
&gt; the direction of the Board of Directors as the chair of the
&gt; Web Services PMC, and to have primary responsibility for management
&gt; of the projects within the scope of responsibility of the
&gt; Web Services PMC; and be it further
&gt;
&gt; RESOLVED, that the persons listed immediately below be and
&gt; hereby are appointed to serve as the initial members of the
&gt; Web Services PMC:
&gt;
&gt;     David Chappell
&gt;     Glen Daniels
&gt;     Anthony Elder
&gt;     Jeremy Hughes
&gt;     Tom Jordahl
&gt;     Erwin van der Koogh
&gt;     Ted Leung
&gt;     Steve Loughran
&gt;     Christian Geuer-Pollmann
&gt;     Axl Mattheus
&gt;     Nirmal Mukhi
&gt;     Scott Nichol
&gt;     Piotr Przybylski
&gt;     Sam Ruby
&gt;     Alek Slominski
&gt;     James Snell
&gt;     Davanum Srinivas
&gt;     Sanjiva Weerawarana
&gt;
&gt; NOW, THEREFORE, BE IT FURTHER RESOLVED, that Davanum Srinivas
&gt; be and hereby are appointed to the office of Vice President,
&gt; Web Services, to serve in accordance with and subject to the
&gt; direction of the Board of Directors and the Bylaws of the
&gt; Foundation until death, resignation, retirement, removal or
&gt; disqualification, or until a successor is appointed; and be
&gt; it further
&gt;
&gt; RESOLVED, that the initial Web Services PMC be and hereby is tasked
&gt; with the creation of a set of bylaws intended to encourage open
&gt; development and increased participation in the Web Services Project

That is where the board resolution should end.

&gt; ;
&gt; and be it further
&gt;
&gt; RESOLVED, that the initial Web Services PMC be and hereby is tasked
&gt; with the migration and rationalization of the XML PMC
&gt; Axis subproject; and be it further
&gt;
&gt; RESOLVED, that the initial Web Services PMC be and hereby is tasked
&gt; with the migration and rationalization of the XML PMC
&gt; SOAP subproject; and be it further
&gt;
&gt; RESOLVED, that the initial Web Services PMC be and hereby is tasked
&gt; with the migration and rationalization of the XML PMC
&gt; Security subproject; and be it further
&gt;
&gt; RESOLVED, that all responsibility pertaining to the XML
&gt; Axis sub-project and encumbered upon the Web Services PMC are
&gt; hereafter discharged.

That stuff should be implied by the scope of work and worked out
between the XML and *new* PMCs.

....Roy

p.s. the rest looks like a paste-o


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Proposed Resolution to create the Web Services Project</title>
<author><name>Sam Ruby &lt;rubys@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c3E2D5EE8.7080201@apache.org%3e"/>
<id>urn:uuid:%3c3E2D5EE8-7080201@apache-org%3e</id>
<updated>2003-01-21T14:53:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
WHEREAS, the Board of Directors deems it to be in the best
interests of the Foundation and consistent with the
Foundation's purpose to establish a Project Management
Committee charged with the creation and maintenance of
open-source software related to Web Services, for distribution
at no charge to the public.

NOW, THEREFORE, BE IT RESOLVED, that a Project Management
Committee (PMC), to be known as the "Web Services PMC", be and hereby
is established pursuant to Bylaws of the Foundation; and be it
further

RESOLVED, that the Web Services PMC be and hereby is responsible for
the creation and maintenance of software related to component
and service management, based on software licensed to the
Foundation; and be it further

RESOLVED, that the office of "Vice President, Web Services" be and
hereby is created, the person(s) holding such office to serve at
the direction of the Board of Directors as the chair of the
Web Services PMC, and to have primary responsibility for management
of the projects within the scope of responsibility of the
Web Services PMC; and be it further

RESOLVED, that the persons listed immediately below be and
hereby are appointed to serve as the initial members of the
Web Services PMC:

     David Chappell
     Glen Daniels
     Anthony Elder
     Jeremy Hughes
     Tom Jordahl
     Erwin van der Koogh
     Ted Leung
     Steve Loughran
     Christian Geuer-Pollmann
     Axl Mattheus
     Nirmal Mukhi
     Scott Nichol
     Piotr Przybylski
     Sam Ruby
     Alek Slominski
     James Snell
     Davanum Srinivas
     Sanjiva Weerawarana

NOW, THEREFORE, BE IT FURTHER RESOLVED, that Davanum Srinivas
be and hereby are appointed to the office of Vice President,
Web Services, to serve in accordance with and subject to the
direction of the Board of Directors and the Bylaws of the
Foundation until death, resignation, retirement, removal or
disqualification, or until a successor is appointed; and be
it further

RESOLVED, that the initial Web Services PMC be and hereby is tasked
with the creation of a set of bylaws intended to encourage open
development and increased participation in the Web Services Project;
and be it further

RESOLVED, that the initial Web Services PMC be and hereby is tasked
with the migration and rationalization of the XML PMC
Axis subproject; and be it further

RESOLVED, that the initial Web Services PMC be and hereby is tasked
with the migration and rationalization of the XML PMC
SOAP subproject; and be it further

RESOLVED, that the initial Web Services PMC be and hereby is tasked
with the migration and rationalization of the XML PMC
Security subproject; and be it further

RESOLVED, that all responsibility pertaining to the XML
Axis sub-project and encumbered upon the Web Services PMC are
hereafter discharged.


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: [PATCH] Use static predefined ContentType</title>
<author><name>&quot;Kurt Kavanaugh&quot; &lt;kkavanaugh@swingtide.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3cA9B46C710AD479418B3BF86F89D8EF12D57314@EXCH-VS-AC1.EXCHPROD.USA.NET%3e"/>
<id>urn:uuid:%3cA9B46C710AD479418B3BF86F89D8EF12D57314@EXCH-VS-AC1-EXCHPROD-USA-NET%3e</id>
<updated>2003-01-21T13:22:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi all,

This email contained FilterTransport so I decided to start my query
here...

I subscribe to several of the Apache SOAP mail groups, please forgive if
this is the wrong audience.

Goal: Access Soap messages

Approach , so far is to implement the EditorEnvelopeFactory and
EditorEnvelope interface. Done. Place the necessary items in the
web.xml. Done. 

Outcome. My class is initialized but the editIncoming methods and
editOutgoing are never called as deployed web services are invoked. I
saw the EditorEnvelopeAdapter code and used that as a starting point.

Am I heading in the wrong direction, or am I missing something.

Thanks in advance for any and all help.

- Kurt

P.S. I would really like to access the SoapContext object...

-----Original Message-----
From: Scott Nichol [mailto:snicholnews@scottnichol.com] 
Sent: Tuesday, November 12, 2002 8:48 AM
To: soap-dev@xml.apache.org
Subject: Re: [PATCH] Use static predefined ContentType

Pavel,

I will be committing changes I made to HTTPUtils, TransportMessage and
SOAPHTTPConnection later today, after which I will apply and commit your
changes.

Also, I have come to the conclusion that, as you suggested, we should
add a getEnvelope method to SOAPTransport, not SOAPContext.  For
SOAPHTTPConnection, it will just delegate to
TransportMessage#getEnvelope.  When you were looking into this, did you
determine how FilterTransport should implement this method?

Scott Nichol

Perftest results on my AMD K6-III rig

Scenario                 Run 1            Run 2
Code from 11/10      180.299         171.937
+ my changes         177.305         165.798
+ getEnvelope         167.611         157.727

So, the getEnvelope short-cut makes a big difference (I coded Call to
use getEnvelope for SOAPTransport instanceof SOAPHTTPConnection so I
could run the test).  My changes have more benefit for larger messages,
as they prevent one copy of the full message content, but also copies of
subsets of larger messages as done by the ByteArrayOutputStream that
underlies ByteArrayDataSource.

----- Original Message -----
From: "Pavel Ausianik" &lt;Pavel_Ausianik@epam.com&gt;
To: &lt;soap-dev@xml.apache.org&gt;
Sent: Monday, November 11, 2002 12:53 PM
Subject: [PATCH] Use static predefined ContentType


&gt; Hello,
&gt;
&gt; I have prepared patch  for using predefined const  ContentType,
similar to
&gt; patch was done to MimeType . I have traced MimeBodyPart.isMimeType
&gt; implementation...
&gt;
&gt; Please find attached
&gt;
&gt; Best regards,
&gt; Pavel
&gt;
&gt;


------------------------------------------------------------------------
--------


&gt; --
&gt; To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: xml.apache.org refactoring #1</title>
<author><name>Dirk-Willem van Gulik &lt;dirkx@webweaving.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c20030116221414.T93563-100000@foem.leiden.webweaving.org%3e"/>
<id>urn:uuid:%3c20030116221414-T93563-100000@foem-leiden-webweaving-org%3e</id>
<updated>2003-01-16T21:19:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>


On Thu, 16 Jan 2003, Ted Leung wrote:

&gt; We ask each subproject to nominate 1 (or 2) people from that project to
&gt; be a part of the XML PMC.  From my experience, I think that it will be
&gt; better to have 2 people rather than one in order to share workload, etc.

Another task we need nominees for (or will let default to these people) is
that of security contact for each the respective projects.

What this implies is that you will act as a filter and coordinator to deal
with the often time criticial, and not always entirely public, process of
analysing a vulnerability; confirming it and working the likes of CERT to
prepare an advisory. Calling in your peers when neccesary.

Should you have any questions about this role; Ben Laurie (ben@apache.org)
leads the ASF wide security coordination effort.

Dw


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>xml.apache.org refactoring #1</title>
<author><name>&quot;Ted Leung&quot; &lt;twleung@sauria.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c00ec01c2bd93$456738b0$0a00a8c0@boo%3e"/>
<id>urn:uuid:%3c00ec01c2bd93$456738b0$0a00a8c0@boo%3e</id>
<updated>2003-01-16T19:12:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Greetings all,

&gt;From our discussion last December, it seems clear to me that most of the subprojects are
not interested in becoming top-level projects.  It also seems clear that people are interested
broad based representation in the XML PMC.   I think that the best way to improve the issues
related to project oversight is to have a series of small refactorings.  So here's my proposal
for the first refactoring:

We ask each subproject to nominate 1 (or 2) people from that project to be a part of the XML
PMC.  From my experience, I think that it will be better to have 2 people rather than one
in order to share workload, etc.   I believe that both Axis (is Axis planning on taking SOAP
with it) and Cocoon are in the process of creating their own PMC's.  They would obviously
be exempt from this.

I know that we're going to have some discussion about this (lets keep it in general@) -- I
encourage it -- but I've also noticed that things tend to peter out after while and nothing
happens, so I want to have an endmarker.  I propose to limit discussion on this proposal until
next Friday Jan 24.  If this proposal is still being considered on the 24th, then I'd propose
that the subprojects nominate their folks by the following Friday, Jan 31.

Ted

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Init Parameters In Apache SOAP</title>
<author><name>snicholnews@scottnichol.com</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c3E254EC8.17396.C60BBD@localhost%3e"/>
<id>urn:uuid:%3c3E254EC8-17396-C60BBD@localhost%3e</id>
<updated>2003-01-15T17:06:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
See the section

Getting at "environmental" information for RPC style services

at http://xml.apache.org/soap/docs/guide/migration.html.

The nightly builds of Apache SOAP have an additional mechanism, in 
which service classes implement the ConfigurableService interface.

On 14 Jan 2003 at 15:31, GARSKOF, ROBERT D (SNETCOMM) wrote:

&gt; 
&gt; I am running Apache SOAP under IBM WSAD 4.0.4. I would like to set a 
&gt; start up (init) parameter (like in a web.xml) and read it 
&gt; programmatically at run time in my service object. What is the best 
&gt; way to do this? Do I set a value in the dd.xml, the soap.xml, the 
&gt; webxml of the rpcrouter, or what? And then how to I pull it back out 
&gt; programmatically?
&gt; 
&gt; Please post and e-mail any response.
&gt; 
&gt; Thanks.
&gt; 
&gt; --
&gt; Robert Garskof
&gt; SBC Web Services
&gt; robert.garskof@sbc.com
&gt; 


Scott Nichol


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Init Parameters In Apache SOAP</title>
<author><name>&quot;GARSKOF, ROBERT D (SNETCOMM)&quot; &lt;rg2485@sbc.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c027D41E8E18FC04FBCD6733158275A9FD38130@ctnwhn4msgusr02.ITServices.sbc.com%3e"/>
<id>urn:uuid:%3c027D41E8E18FC04FBCD6733158275A9FD38130@ctnwhn4msgusr02-ITServices-sbc-com%3e</id>
<updated>2003-01-14T20:31:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am running Apache SOAP under IBM WSAD 4.0.4. I would like to set a start
up (init) parameter (like in a web.xml) and read it programmatically at run
time in my service object. What is the best way to do this? Do I set a value
in the dd.xml, the soap.xml, the webxml of the rpcrouter, or what? And then
how to I pull it back out programmatically?
 
Please post and e-mail any response.
 
Thanks.
 
--
Robert Garskof
SBC Web Services 
robert.garskof@sbc.com &lt;mailto:robert.garskof@sbc.com&gt; 
 


</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/src/org/apache/soap/util/xml XMLJavaMappingRegistry.java</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c20030108202044.40039.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20030108202044-40039-qmail@icarus-apache-org%3e</id>
<updated>2003-01-08T20:20:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2003/01/08 12:20:44

  Modified:    java/src/org/apache/soap/server RPCRouter.java
               java/src/org/apache/soap/util/xml
                        XMLJavaMappingRegistry.java
  Log:
  Oops.  The previous commit to SOAPMappingRegistry depended on
  uncommitted changes to XMLJavaMappingRegistry.  The changes are used by
  RPCRouter.  I've tested them some.  Although I intended more changes in
  this area, why not just commit what I've got now.
  
  Revision  Changes    Path
  1.19      +23 -1     xml-soap/java/src/org/apache/soap/server/RPCRouter.java
  
  Index: RPCRouter.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/server/RPCRouter.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- RPCRouter.java	4 Dec 2002 03:33:01 -0000	1.18
  +++ RPCRouter.java	8 Jan 2003 20:20:43 -0000	1.19
  @@ -10,6 +10,7 @@
   import org.apache.soap.*;
   import org.apache.soap.rpc.*;
   import org.apache.soap.util.StringUtils;
  +import org.apache.soap.encoding.soapenc.SoapEncUtils;
   
   /**
    * This class is a transport independent SOAP RPC router. However you
  @@ -18,6 +19,7 @@
    * an object you give me). 
    *
    * @author Sanjiva Weerawarana &lt;sanjiva@watson.ibm.com&gt;
  + * @author Scott Nichol (snichol@computer.org)
    */
   public class RPCRouter {
     public static Call extractCallFromEnvelope (ServiceManager serviceManager,
  @@ -145,7 +147,27 @@
   
           Object ret = m.invoke(targetObject, args);
           Class retType = m.getReturnType();
  -        result = new Bean(retType.isPrimitive() ? retType : ret.getClass(), ret);
  +
  +        // See if we change return type for polymorphism, doing as little
  +        // work as possible in the cases where there is no polymorphism.
  +        if (retType != void.class &amp;&amp; !retType.isPrimitive()) {
  +          Class retClass = ret.getClass();
  +          if (retClass != retType) {
  +            Hashtable props = dd.getProps();
  +            if (props != null) {
  +              String val = (String) props.get("PolymorphicSerialization");
  +              if (val != null &amp;&amp; SoapEncUtils.decodeBooleanValue(val)) {
  +                  Class serClass = call.getSOAPMappingRegistry()
  +                                       .getCompatibleClassWithSerializer(retClass,
  +                                                                         respEncStyle);
  +                  if (serClass != null)
  +                    retType = serClass;
  +              }
  +            }
  +          }
  +        }
  +
  +        result = new Bean(retType, ret);
         } else {
           // find the class that provides the BSF services (done
           // this way via reflection to avoid a compile-time dependency on BSF)
  
  
  
  1.13      +115 -0    xml-soap/java/src/org/apache/soap/util/xml/XMLJavaMappingRegistry.java
  
  Index: XMLJavaMappingRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/xml/XMLJavaMappingRegistry.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- XMLJavaMappingRegistry.java	18 Nov 2002 20:19:26 -0000	1.12
  +++ XMLJavaMappingRegistry.java	8 Jan 2003 20:20:44 -0000	1.13
  @@ -58,6 +58,7 @@
   package org.apache.soap.util.xml;
   
   import java.io.*;
  +import java.lang.reflect.Array;
   import java.util.*;
   import org.w3c.dom.*;
   import org.apache.soap.util.*;
  @@ -203,6 +204,27 @@
     }
   
     /**
  +   * This version returns null if the serializer is not found. It is
  +   * intended for internal usage (its used for chaining registries,
  +   * for example).  It does not check for a default serializer.
  +   *
  +   * @param javaType The Java type.
  +   * @param encodingStyleURI The encoding style.
  +   * @return The serializer for the Java type and encoding style, null
  +   *         if one is not found.
  +   */
  +  protected Serializer querySerializerNoDefault_(Class javaType,
  +                                        String encodingStyleURI)
  +  {
  +    Maps maps = getMapsForEncoding(encodingStyleURI);
  +    Object java2XMLKey = "";
  +    if (javaType != null)
  +        java2XMLKey = javaType;
  +
  +    return (Serializer) maps.sReg.get(java2XMLKey);
  +  }
  +
  +  /**
      * This version calls the protected method to do the work and if it's
      * not found throws an exception.
      *
  @@ -252,6 +274,27 @@
     }
   
     /**
  +   * This version returns null if the deserializer is not found. It is
  +   * intended for internal usage (its used for chaining registries,
  +   * for example).  It does not check for a default deserializer.
  +   *
  +   * @param elementType The XML type.
  +   * @param encodingStyleURI The encoding style.
  +   * @return The deserializer for the XML type and encoding style, null
  +   *         if one is not found.
  +   */
  +  protected Deserializer queryDeserializerNoDefault_(QName elementType,
  +                                            String encodingStyleURI)
  +  {
  +    Maps maps = getMapsForEncoding(encodingStyleURI);
  +    Object xml2JavaKey = "";
  +    if (elementType != null)
  +        xml2JavaKey = elementType;
  +
  +    return (Deserializer) maps.dsReg.get(xml2JavaKey);
  +  }
  +
  +  /**
      * This version calls the protected method to do the work and if its
      * not found throws an exception.
      *
  @@ -368,6 +411,78 @@
                                            "' using encoding style '" +
                                            encodingStyleURI + "'.");
       }
  +  }
  +
  +  /**
  +   * Gets the first class in the inheritance hierarchy that has a serializer.
  +   *
  +   * @param type The class at the end of the hierarchy.
  +   * @param encodingStyle The encoding style.
  +   * @return The first class with a serializer, null if none found.
  +   */
  +  public Class getClassWithSerializer(Class type, String encodingStyle) {
  +    boolean isArray = type.isArray();
  +    if (isArray)
  +      type = type.getComponentType();
  +    while (type != null) {
  +      if (querySerializer_(type, encodingStyle) != null) {
  +        if (isArray)
  +          type = Array.newInstance(type, 0).getClass();
  +        return type;
  +      }
  +      type = type.getSuperclass();
  +    }
  +    return null;
  +  }
  +
  +  /**
  +   * Gets the first class in the inheritance hierarchy of an array of classes
  +   * that has a serializer.
  +   *
  +   * @param classes The classes at the ends of the hierarchies.
  +   * @param encodingStyle The encoding style.
  +   * @return The first class with a serializer, null if none found.
  +   */
  +  public Class getClassWithSerializer(Class[] classes, String encodingStyle) {
  +    boolean done = false;
  +    while (!done) {
  +      done = true;
  +      for (int i = 0; i &lt; classes.length; i++) {
  +        Class type = classes[i];
  +        if (type != null) {
  +          if (type.isArray())
  +            throw new IllegalArgumentException("Array classes are not allowed");
  +          done = false;
  +          if (querySerializer_(type, encodingStyle) != null)
  +            return type;
  +          classes[i] = type.getSuperclass();
  +        }
  +      }
  +    }
  +    return null;
  +  }
  +
  +  /**
  +   * Gets the first compatible class that has a serializer, first searching the
  +   * inheritance hierachy, then the hierachies of the implemented interfaces.
  +   *
  +   * @param type The class at the end of the hierarchy.
  +   * @param encodingStyle The encoding style.
  +   * @return The first compatible class with a serializer, null if none found.
  +   */
  +  public Class getCompatibleClassWithSerializer(Class type, String encodingStyle) {
  +    boolean isArray = type.isArray();
  +    if (isArray)
  +      type = type.getComponentType();
  +    Class serClass = getClassWithSerializer(type, encodingStyle);
  +    if (serClass == null)
  +      serClass = getClassWithSerializer(type.getInterfaces(), encodingStyle);
  +    if (serClass != null) {
  +      if (isArray)
  +        serClass = Array.newInstance(serClass, 0).getClass();
  +      return serClass;
  +    }
  +    return null;
     }
   
     /**
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/src/org/apache/soap/encoding SOAPMappingRegistry.java</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c20030108195725.34146.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20030108195725-34146-qmail@icarus-apache-org%3e</id>
<updated>2003-01-08T19:57:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2003/01/08 11:57:24

  Modified:    java/src/org/apache/soap/encoding SOAPMappingRegistry.java
  Log:
  Provide mappings so that null DataHandlers can be serialized and
  de-serialized.
  
  Revision  Changes    Path
  1.37      +44 -20    xml-soap/java/src/org/apache/soap/encoding/SOAPMappingRegistry.java
  
  Index: SOAPMappingRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/encoding/SOAPMappingRegistry.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- SOAPMappingRegistry.java	28 Nov 2002 00:32:51 -0000	1.36
  +++ SOAPMappingRegistry.java	8 Jan 2003 19:57:24 -0000	1.37
  @@ -92,6 +92,7 @@
     private static String soapEncURI = Constants.NS_URI_SOAP_ENC;
   
     private static QName arrayQName = new QName(soapEncURI, "Array");
  +  private static QName dataHandlerQName = new QName(Constants.NS_URI_XML_SOAP, "DataHandler");
   
     // create all the standard serializers/deserializers as static vars.
     // these fill into all the various base registries.
  @@ -149,10 +150,10 @@
       Constants.qName1999QName,
       Constants.date1999QName,
       Constants.timeInst1999QName,
  -    Constants.object1999QName,
  -    Constants.object1999QName,
  -    Constants.object1999QName,
  -    Constants.object1999QName,
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
       Constants.object1999QName,
     };
   
  @@ -177,10 +178,10 @@
       Constants.qName2000QName,
       Constants.date2000QName,
       Constants.timeInst2000QName,
  -    Constants.object2000QName,
  -    Constants.object2000QName,
  -    Constants.object2000QName,
  -    Constants.object2000QName,
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
       Constants.object2000QName,
     };
   
  @@ -205,10 +206,10 @@
       Constants.qName2001QName,
       Constants.date2001QName,
       Constants.timeInst2001QName,
  -    Constants.object2001QName,
  -    Constants.object2001QName,
  -    Constants.object2001QName,
  -    Constants.object2001QName,
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
  +    dataHandlerQName, // for null DataHandler
       Constants.object2001QName,
     };
   
  @@ -303,10 +304,10 @@
       qNameSer,
       calSer,
       dateSer,
  -    null,
  -    null,
  -    null,
  -    null,
  +    null,      // MimeBodyPart
  +    null,      // InputStream
  +    null,      // DataSource
  +    partSer,   // for null DataHandler
       objDeser,
     };
   
  @@ -624,12 +625,23 @@
     protected Serializer querySerializer_(Class javaType,
                                           String encodingStyleURI)
     {
  -    Serializer s = super.querySerializer_(javaType, encodingStyleURI);
  +    Serializer s = super.querySerializerNoDefault_(javaType, encodingStyleURI);
       if (s != null) {
         return s;
       }
       if (parent != null) {
  -      s = parent.querySerializer_(javaType, encodingStyleURI);
  +      s = parent.querySerializerNoDefault_(javaType, encodingStyleURI);
  +      if (s != null) {
  +        return s;
  +      }
  +    }
  +
  +    s = super.querySerializerNoDefault_(null, encodingStyleURI);
  +    if (s != null) {
  +      return s;
  +    }
  +    if (parent != null) {
  +      s = parent.querySerializerNoDefault_(null, encodingStyleURI);
         if (s != null) {
           return s;
         }
  @@ -653,16 +665,28 @@
     protected Deserializer queryDeserializer_(QName elementType,
                                               String encodingStyleURI)
     {
  -    Deserializer ds = super.queryDeserializer_(elementType, encodingStyleURI);
  +    Deserializer ds = super.queryDeserializerNoDefault_(elementType, encodingStyleURI);
       if (ds != null) {
         return ds;
       }
       if (parent != null) {
  -      ds = parent.queryDeserializer_(elementType, encodingStyleURI);
  +      ds = parent.queryDeserializerNoDefault_(elementType, encodingStyleURI);
         if (ds != null) {
           return ds;
         }
       }
  +
  +    ds = super.queryDeserializerNoDefault_(null, encodingStyleURI);
  +    if (ds != null) {
  +      return ds;
  +    }
  +    if (parent != null) {
  +      ds = parent.queryDeserializerNoDefault_(null, encodingStyleURI);
  +      if (ds != null) {
  +        return ds;
  +      }
  +    }
  +
       return null;
     }
   
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/src/org/apache/soap/encoding/soapenc MimePartSerializer.java</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c20030106175714.80387.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20030106175714-80387-qmail@icarus-apache-org%3e</id>
<updated>2003-01-06T17:57:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2003/01/06 09:57:14

  Modified:    java/src/org/apache/soap/encoding/soapenc
                        MimePartSerializer.java
  Log:
  Serialize null values using specified javaType and context, rather than
  always using Object.class and null.
  
  Revision  Changes    Path
  1.5       +2 -2      xml-soap/java/src/org/apache/soap/encoding/soapenc/MimePartSerializer.java
  
  Index: MimePartSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/encoding/soapenc/MimePartSerializer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MimePartSerializer.java	30 Aug 2002 21:39:00 -0000	1.4
  +++ MimePartSerializer.java	6 Jan 2003 17:57:14 -0000	1.5
  @@ -103,8 +103,8 @@
                    src.getClass().toString() + "' to MimePartSerializer");
   
           if (src == null) {
  -            SoapEncUtils.generateNullStructure(inScopeEncStyle, Object.class,
  -                                               null, sink, nsStack, xjmr, ctx);
  +            SoapEncUtils.generateNullStructure(inScopeEncStyle, javaType,
  +                                               context, sink, nsStack, xjmr, ctx);
           } else {
               // get a MimeBodyPart out of the various possible input types
               DataSource ds = null;
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/src/org/apache/soap/transport/http SOAPHTTPConnection.java</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200301.mbox/%3c20030103160841.41538.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20030103160841-41538-qmail@icarus-apache-org%3e</id>
<updated>2003-01-03T16:08:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2003/01/03 08:08:41

  Modified:    java/src/org/apache/soap/transport/http
                        SOAPHTTPConnection.java
  Log:
  Finish cleaning up exception handling in send().
  
  Revision  Changes    Path
  1.30      +8 -16     xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java
  
  Index: SOAPHTTPConnection.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- SOAPHTTPConnection.java	12 Nov 2002 14:15:38 -0000	1.29
  +++ SOAPHTTPConnection.java	3 Jan 2003 16:08:41 -0000	1.30
  @@ -367,20 +367,12 @@
                       "Basic " + HTTPUtils.encodeAuth(proxyUserName, proxyPassword));
         }
   
  -      try
  -      {
  -        TransportMessage msg = new TransportMessage(payload, ctx, headers);
  -        msg.save();
  -
  -        response = HTTPUtils.post (sendTo, msg,
  -                                   timeout, httpProxyHost, httpProxyPort,
  -                                   outputBufferSize, tcpNoDelay,
  -                                   requestCopy, responseCopy);
  -      } catch (MessagingException me) {
  -        throw new IOException ("Failed to encode mime multipart: " + me);
  -      } catch (UnsupportedEncodingException uee) {
  -        throw new IOException ("Failed to encode mime multipart: " + uee);
  -      }
  +      TransportMessage msg = new TransportMessage(payload, ctx, headers);
  +      msg.save();
  +      response = HTTPUtils.post (sendTo, msg,
  +                                 timeout, httpProxyHost, httpProxyPort,
  +                                 outputBufferSize, tcpNoDelay,
  +                                 requestCopy, responseCopy);
   
         if (maintainSession) {
           // look for Set-Cookie2 and Set-Cookie headers and save them.
  @@ -410,9 +402,9 @@
               cookies = hdrCookies;
           }
         }
  -    } catch (IllegalArgumentException e) {
  -      throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
       } catch (IOException e) {
  +      throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
  +    } catch (MessagingException e) {
         throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
       }
     }
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: issue with the MIME header in apache soap</title>
<author><name>Scott Nichol &lt;snicholnews@scottnichol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c006701c2b014$b6b142e0$c900a8c0@fastdata%3e"/>
<id>urn:uuid:%3c006701c2b014$b6b142e0$c900a8c0@fastdata%3e</id>
<updated>2003-12-30T15:04:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The content-type headers within the MIME body are generated by Sun's
JavaMail code.  I don't know of any way to change their format.

Scott Nichol

----- Original Message -----
From: "bow bow" &lt;hoshkoshbgosh@yahoo.co.in&gt;
To: &lt;soap-dev@xml.apache.org&gt;
Sent: Monday, December 30, 2002 7:45 AM
Subject: issue with the MIME header in apache soap


&gt;
&gt; Hi
&gt;
&gt; while working with the CMS, i am facing a problem with the apache
server. While working with soap with attachments in apache, i have
observed that the content-type header has the values enclosed in double
quotes which is being rejected by the CMS. Could you suggest me a work
around / patch to the problem.
&gt;
&gt; Thanx in advance
&gt;
&gt; thomas
&gt;
&gt; Catch all the cricket action. Download Yahoo! Score tracker


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>issue with the MIME header in apache soap</title>
<author><name>=?iso-8859-1?q?bow=20bow?= &lt;hoshkoshbgosh@yahoo.co.in&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c20021230124509.51729.qmail@web8201.mail.in.yahoo.com%3e"/>
<id>urn:uuid:%3c20021230124509-51729-qmail@web8201-mail-in-yahoo-com%3e</id>
<updated>2003-12-30T12:45:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi 

while working with the CMS, i am facing a problem with the apache server. While working with
soap with attachments in apache, i have observed that the content-type header has the values
enclosed in double quotes which is being rejected by the CMS. Could you suggest me a work
around / patch to the problem.

Thanx in advance

thomas

Catch all the cricket action. Download Yahoo! Score tracker

</pre>
</div>
</content>
</entry>
<entry>
<title>Jared P Jurkiewicz/Raleigh/IBM is out of the office.</title>
<author><name>Jared P Jurkiewicz &lt;jaredj@us.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3cOF4A31BEA4.71CEB1EA-ON87256C9D.005B95BF-87256C9D.005B95BF@us.ibm.com%3e"/>
<id>urn:uuid:%3cOF4A31BEA4-71CEB1EA-ON87256C9D-005B95BF-87256C9D-005B95BF@us-ibm-com%3e</id>
<updated>2002-12-28T16:40:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




I will be out of the office starting December 23, 2002 and will not return
until January 6, 2003.

I will be on Christmas vacation.  I will try to check notes during the
vacation and respond if anything is urgent.


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Error parsing HTTP status line &quot;&quot;:</title>
<author><name>Mrigank Shekhar &lt;Mrigank.Shekhar@tavant.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c33240C8EFB1F254EB11E19FD936AFA44010BB339@Mail.CHEERS.HAATHI.COM%3e"/>
<id>urn:uuid:%3c33240C8EFB1F254EB11E19FD936AFA44010BB339@Mail-CHEERS-HAATHI-COM%3e</id>
<updated>2002-12-26T11:38:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

When i execute the follwing command ::
 java org.apache.soap.server.ServiceManagerClient rpc-router-url list 
I get the error ::
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=Error
parsing HTTP status line &amp;quot;&amp;quot;: java.util.NoSuchElementException;
targetE
xception=java.lang.IllegalArgumentException: Error parsing HTTP status line
"":
java.util.NoSuchElementException]
        at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
tion.java:354)
        at org.apache.soap.rpc.Call.invoke(Call.java:248)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:129)
        at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient
.java:151)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java:237)
How do i get rid of the error.
Soap.jar,mail.jar,activation.jar,xerces.jar,xml4j.jar are in my classpath.

Regards;
Mrigank


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/src/org/apache/soap/util/net HTTPUtils.java SSLUtils.java SocketUtils.java</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c20021221035846.58698.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20021221035846-58698-qmail@icarus-apache-org%3e</id>
<updated>2002-12-21T03:58:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2002/12/20 19:58:46

  Modified:    java/src/org/apache/soap/util/net HTTPUtils.java
                        SSLUtils.java SocketUtils.java
  Log:
  Improve reporting of InvocationTargetException.
  
  Revision  Changes    Path
  1.43      +14 -4     xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java
  
  Index: HTTPUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- HTTPUtils.java	20 Dec 2002 21:40:32 -0000	1.42
  +++ HTTPUtils.java	21 Dec 2002 03:58:46 -0000	1.43
  @@ -163,12 +163,17 @@
       try {
         return (Socket) buildSSLSocket.invoke(null, params);
       } catch (Exception e) {
  +      Throwable t;
  +      if (e instanceof InvocationTargetException)
  +        t = ((InvocationTargetException) e).getTargetException();
  +      else
  +        t = e;
         StringBuffer msg = new StringBuffer(512);
         msg.append("Error SSL connecting to ").append(host).append(':').append(port);
         if (httpProxyHost != null)
           msg.append(" via ").append(httpProxyHost).append(':').append(httpProxyPort);
  -      msg.append(": ").append(e.toString());
  -      throw new SOAPException(Constants.FAULT_CODE_CLIENT, msg.toString(), e);
  +      msg.append(": ").append(t.toString());
  +      throw new SOAPException(Constants.FAULT_CODE_CLIENT, msg.toString(), t);
       }
     }
   
  @@ -222,12 +227,17 @@
       try {
         s = SocketUtils.createSocket(theHost, thePort, timeout);
       } catch (Exception e) {
  +      Throwable t;
  +      if (e instanceof InvocationTargetException)
  +        t = ((InvocationTargetException) e).getTargetException();
  +      else
  +        t = e;
         StringBuffer msg = new StringBuffer(512);
         msg.append("Error connecting to ").append(host).append(':').append(port);
         if (proxyUsed.getValue())
           msg.append(" via ").append(httpProxyHost).append(':').append(httpProxyPort);
  -      msg.append(": ").append(e.toString());
  -      throw new SOAPException(Constants.FAULT_CODE_CLIENT, msg.toString(), e);
  +      msg.append(": ").append(t.toString());
  +      throw new SOAPException(Constants.FAULT_CODE_CLIENT, msg.toString(), t);
       }
   
       if (s != null &amp;&amp; tcpNoDelay != null)
  
  
  
  1.11      +5 -7      xml-soap/java/src/org/apache/soap/util/net/SSLUtils.java
  
  Index: SSLUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/net/SSLUtils.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SSLUtils.java	20 Dec 2002 21:40:32 -0000	1.10
  +++ SSLUtils.java	21 Dec 2002 03:58:46 -0000	1.11
  @@ -95,7 +95,7 @@
        */
       public static Socket buildSSLSocket(String host, int port,
                                           String tunnelHost, int tunnelPort)
  -        throws IOException, UnknownHostException {
  +        throws IOException, UnknownHostException, InvocationTargetException {
   
           return buildSSLSocket(host, port, 0,
                                 tunnelHost, tunnelPort,
  @@ -116,7 +116,7 @@
       public static Socket buildSSLSocket(String host, int port,
                                           String tunnelHost, int tunnelPort,
                                           Boolean tcpNoDelay)
  -        throws IOException, UnknownHostException {
  +        throws IOException, UnknownHostException, InvocationTargetException {
   
           return buildSSLSocket(host, port, 0,
                                 tunnelHost, tunnelPort,
  @@ -138,7 +138,7 @@
       public static Socket buildSSLSocket(String host, int port,
                                           String tunnelHost, int tunnelPort,
                                           String tunnelAuth, Boolean tcpNoDelay)
  -        throws IOException, UnknownHostException {
  +        throws IOException, UnknownHostException, InvocationTargetException {
   
           return buildSSLSocket(host, port, 0,
                                 tunnelHost, tunnelPort,
  @@ -161,7 +161,7 @@
       public static Socket buildSSLSocket(String host, int port, int timeout,
                                           String tunnelHost, int tunnelPort,
                                           String tunnelAuth, Boolean tcpNoDelay)
  -        throws IOException, UnknownHostException {
  +        throws IOException, UnknownHostException, InvocationTargetException {
   
           SSLSocket sslSocket =  null;
           SSLSocketFactory factory =
  @@ -195,8 +195,6 @@
                       sslSocket = (SSLSocket) factory.createSocket(host, port);
                   } catch (NoSuchMethodException e) {
                       sslSocket = (SSLSocket) factory.createSocket(host, port);
  -                } catch (InvocationTargetException e) {
  -                    sslSocket = (SSLSocket) factory.createSocket(host, port);
                   } catch (IllegalAccessException e) {
                       sslSocket = (SSLSocket) factory.createSocket(host, port);
                   }
  @@ -240,7 +238,7 @@
                                               String tunnelAuth,
                                               String host, int port, int timeout,
                                               Boolean tcpNoDelay)
  -            throws IOException {
  +            throws IOException, InvocationTargetException {
   
           Socket tunnel = SocketUtils.createSocket(tunnelHost, tunnelPort, timeout);
           if (tunnel != null &amp;&amp; tcpNoDelay != null)
  
  
  
  1.2       +2 -3      xml-soap/java/src/org/apache/soap/util/net/SocketUtils.java
  
  Index: SocketUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/net/SocketUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SocketUtils.java	20 Dec 2002 21:40:32 -0000	1.1
  +++ SocketUtils.java	21 Dec 2002 03:58:46 -0000	1.2
  @@ -79,9 +79,10 @@
        *                The timeout will only be enforced for J2SE 1.4 and later.
        * @exception UnknownHostException
        * @exception IOException
  +     * @exception InvocationTargetException
        */
       public static Socket createSocket(String host, int port, int timeout)
  -            throws UnknownHostException, IOException {
  +            throws UnknownHostException, IOException, InvocationTargetException {
           Socket s;
   
           if (timeout == 0) {
  @@ -104,8 +105,6 @@
               } catch (InstantiationException e) {
                   s = new Socket(host, port);
               } catch (NoSuchMethodException e) {
  -                s = new Socket(host, port);
  -            } catch (InvocationTargetException e) {
                   s = new Socket(host, port);
               } catch (IllegalAccessException e) {
                   s = new Socket(host, port);
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Thom Bentley is out of the office.</title>
<author><name>tbentley@notesdev.ibm.com</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3cOFDE3E0478.845503ED-ON85256C96.00107A24-85256C96.00107A24@notesdev.ibm.com%3e"/>
<id>urn:uuid:%3cOFDE3E0478-845503ED-ON85256C96-00107A24-85256C96-00107A24@notesdev-ibm-com%3e</id>
<updated>2002-12-21T02:59:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>




I will be out of the office starting  12/20/2002 and will not return until
01/02/2003.



--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/src/org/apache/soap/util/net SocketUtils.java HTTPUtils.java SSLUtils.java</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c20021220214032.68653.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20021220214032-68653-qmail@icarus-apache-org%3e</id>
<updated>2002-12-20T21:40:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2002/12/20 13:40:32

  Modified:    java/src/org/apache/soap/util/net HTTPUtils.java
                        SSLUtils.java
  Added:       java/src/org/apache/soap/util/net SocketUtils.java
  Log:
  For J2SE 1.4 and later, use the timeout value as the maximum time to block
  on connect, as well as read.  Thanks to Mike Ladwig for helping to test
  this.
  
  Revision  Changes    Path
  1.42      +23 -10    xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java
  
  Index: HTTPUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- HTTPUtils.java	3 Dec 2002 21:16:08 -0000	1.41
  +++ HTTPUtils.java	20 Dec 2002 21:40:32 -0000	1.42
  @@ -82,6 +82,7 @@
   import org.apache.soap.transport.TransportMessage;
   import org.apache.soap.util.MutableBoolean;
   import org.apache.soap.util.StringUtils;
  +import org.apache.soap.util.net.SocketUtils;
   
   /**
    * A bunch of utility stuff for doing HTTP things.
  @@ -123,7 +124,7 @@
      *
      * @author Chris Nelson
      */
  -  private static Socket getSecureSocket(String host, int port,
  +  private static Socket getSecureSocket(String host, int port, int timeout,
                                           String httpProxyHost, int httpProxyPort,
                                           Hashtable headers, Boolean tcpNoDelay)
           throws Exception {
  @@ -151,11 +152,11 @@
       // Using reflection to avoid compile time dependencies
       Class SSLUtilsClass =
           Class.forName("org.apache.soap.util.net.SSLUtils");
  -    Class[] paramTypes = new Class[] {String.class, int.class,
  +    Class[] paramTypes = new Class[] {String.class, int.class, int.class,
                                         String.class, int.class,
                                         String.class, Boolean.class};
       Method buildSSLSocket = SSLUtilsClass.getMethod("buildSSLSocket", paramTypes);
  -    Object[] params = new Object[] {host, new Integer(port),
  +    Object[] params = new Object[] {host, new Integer(port), new Integer(timeout),
                                       httpProxyHost, new Integer(httpProxyPort),
                                       proxyAuth, tcpNoDelay};
   
  @@ -176,7 +177,7 @@
      *
      * @author Chris Nelson
      */
  -  private static Socket getSocket(String host, int port,
  +  private static Socket getSocket(String host, int port, int timeout,
                                     String httpProxyHost, int httpProxyPort,
                                     Hashtable headers, Boolean tcpNoDelay,
                                     MutableBoolean proxyUsed)
  @@ -208,11 +209,18 @@
         }
       }
   
  +    String theHost;
  +    int thePort;
  +    if (proxyUsed.getValue()) {
  +      theHost = httpProxyHost;
  +      thePort = httpProxyPort;
  +    } else {
  +      theHost = host;
  +      thePort = port;
  +    }
  +
       try {
  -      if (proxyUsed.getValue())
  -        s = new Socket(httpProxyHost, httpProxyPort);
  -      else
  -        s = new Socket(host, port);
  +      s = SocketUtils.createSocket(theHost, thePort, timeout);
       } catch (Exception e) {
         StringBuffer msg = new StringBuffer(512);
         msg.append("Error connecting to ").append(host).append(':').append(port);
  @@ -271,6 +279,7 @@
      * @param url the url to post to
      * @param request the message
      * @param timeout the amount of time, in ms, to block on reading data
  +   *        for J2SE 1.4 and later, also the time to block on connect
      * @param httpProxyHost the HTTP proxy host or null if no proxy
      * @param httpProxyPort the HTTP proxy port, if the proxy host is not null
      * @return the response message
  @@ -296,6 +305,7 @@
      * @param url the url to post to
      * @param request the message
      * @param timeout the amount of time, in ms, to block on reading data
  +   *        for J2SE 1.4 and later, also the time to block on connect
      * @param httpProxyHost the HTTP proxy host or null if no proxy
      * @param httpProxyPort the HTTP proxy port, if the proxy host is not null
      * @param outputBufferSize the size of the output buffer on the HTTP stream
  @@ -323,6 +333,7 @@
      * @param url the url to post to
      * @param request the message
      * @param timeout the amount of time, in ms, to block on reading data
  +   *        for J2SE 1.4 and later, also the time to block on connect
      * @param httpProxyHost the HTTP proxy host or null if no proxy
      * @param httpProxyPort the HTTP proxy port, if the proxy host is not null
      * @param outputBufferSize the size of the output buffer on the HTTP stream
  @@ -355,6 +366,7 @@
      * @param url the url to post to
      * @param request the message
      * @param timeout the amount of time, in ms, to block on reading data
  +   *        for J2SE 1.4 and later, also the time to block on connect
      * @param httpProxyHost the HTTP proxy host or null if no proxy
      * @param httpProxyPort the HTTP proxy port, if the proxy host is not null
      * @param outputBufferSize the size of the output buffer on the HTTP stream
  @@ -392,6 +404,7 @@
      * @param url the url to post to
      * @param request the message
      * @param timeout the amount of time, in ms, to block on reading data
  +   *        for J2SE 1.4 and later, also the time to block on connect
      * @param httpProxyHost the HTTP proxy host or null if no proxy
      * @param httpProxyPort the HTTP proxy port, if the proxy host is not null
      * @param outputBufferSize the size of the output buffer on the HTTP stream
  @@ -425,11 +438,11 @@
         /* Open the connection */
         try {
             if (protocol.equalsIgnoreCase("HTTPS")) {
  -              s = getSecureSocket(host, port, httpProxyHost, httpProxyPort,
  +              s = getSecureSocket(host, port, timeout, httpProxyHost, httpProxyPort,
                                     request.getHeaders(), tcpNoDelay);
             } else {
                 MutableBoolean isProxyUsed = new MutableBoolean(proxyUsed);
  -              s = getSocket(host, port, httpProxyHost, httpProxyPort,
  +              s = getSocket(host, port, timeout, httpProxyHost, httpProxyPort,
                                     request.getHeaders(), tcpNoDelay,
                                     isProxyUsed);
                 proxyUsed = isProxyUsed.getValue();
  
  
  
  1.10      +78 -13    xml-soap/java/src/org/apache/soap/util/net/SSLUtils.java
  
  Index: SSLUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/net/SSLUtils.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SSLUtils.java	8 Nov 2002 04:32:37 -0000	1.9
  +++ SSLUtils.java	20 Dec 2002 21:40:32 -0000	1.10
  @@ -57,11 +57,20 @@
   
   package org.apache.soap.util.net;
   
  -import java.net.*;
  -import java.io.*;
  -import java.util.*;
  -import javax.net.ssl.*;
  -import java.security.*;
  +import java.io.InputStream;
  +import java.io.IOException;
  +import java.io.OutputStream;
  +import java.io.UnsupportedEncodingException;
  +import java.lang.reflect.Constructor;
  +import java.lang.reflect.InvocationTargetException;
  +import java.lang.reflect.Method;
  +import java.net.Socket;
  +import java.net.UnknownHostException;
  +import java.util.StringTokenizer;
  +import javax.net.ssl.SSLSocket;
  +import javax.net.ssl.SSLSocketFactory;
  +
  +import org.apache.soap.util.net.SocketUtils;
   
   /**
    * A bunch of utility stuff for doing SSL things.  It is separate from
  @@ -88,7 +97,7 @@
                                           String tunnelHost, int tunnelPort)
           throws IOException, UnknownHostException {
   
  -        return buildSSLSocket(host, port,
  +        return buildSSLSocket(host, port, 0,
                                 tunnelHost, tunnelPort,
                                 null, null);
       }
  @@ -109,9 +118,9 @@
                                           Boolean tcpNoDelay)
           throws IOException, UnknownHostException {
   
  -        return buildSSLSocket(host, port,
  +        return buildSSLSocket(host, port, 0,
                                 tunnelHost, tunnelPort,
  -                              null, null);
  +                              null, tcpNoDelay);
       }
   
       /**
  @@ -131,12 +140,68 @@
                                           String tunnelAuth, Boolean tcpNoDelay)
           throws IOException, UnknownHostException {
   
  +        return buildSSLSocket(host, port, 0,
  +                              tunnelHost, tunnelPort,
  +                              tunnelAuth, tcpNoDelay);
  +    }
  +
  +    /**
  +     * Builds an SSL socket, after auto-starting SSL.
  +     *
  +     * @param host The host to which to connect.
  +     * @param port The port to which to connect.
  +     * @param timeout The maximum amount of time to wait to connect (0 for no timeout).
  +     * @param tunnelHost The host to which to tunnel through.
  +     * @param tunnelPort The port to which to tunnel through.
  +     * @param tunnelAuth The authentication string for the tunnel.
  +     * @param tcpNoDelay Whether or not to disable Nagling.
  +     *
  +     * @return The socket.
  +     */
  +    public static Socket buildSSLSocket(String host, int port, int timeout,
  +                                        String tunnelHost, int tunnelPort,
  +                                        String tunnelAuth, Boolean tcpNoDelay)
  +        throws IOException, UnknownHostException {
  +
           SSLSocket sslSocket =  null;
           SSLSocketFactory factory =
               (SSLSocketFactory)SSLSocketFactory.getDefault();
   
           if (tunnelHost == null) {
  -            sslSocket = (SSLSocket) factory.createSocket(host, port);
  +            if (timeout == 0) {
  +                sslSocket = (SSLSocket) factory.createSocket(host, port);
  +            } else {
  +                // for J2SE 1.4 and later, use Socket#connect to implement
  +                // timeout on the connect
  +                try {
  +                    Method createSocket = SSLSocketFactory.class.getMethod(
  +                                            "createSocket", new Class[]{});
  +                    Class socketAddress = Class.forName("java.net.SocketAddress");
  +                    Method connect = SSLSocket.class.getMethod("connect",
  +                                            new Class[]{socketAddress, int.class});
  +                    Class inetSocketAddress = Class.forName("java.net.InetSocketAddress");
  +                    Constructor ctor = inetSocketAddress.getConstructor(
  +                                            new Class[]{String.class, int.class});
  +
  +                    sslSocket = (SSLSocket) createSocket.invoke(null, 
  +                                                        new Object[]{});
  +                    Object address = ctor.newInstance(new Object[]{
  +                                                        host, new Integer(port)});
  +                    connect.invoke(sslSocket, new Object[]{address,
  +                                                        new Integer(timeout)});
  +                } catch (ClassNotFoundException e) {
  +                    sslSocket = (SSLSocket) factory.createSocket(host, port);
  +                } catch (InstantiationException e) {
  +                    sslSocket = (SSLSocket) factory.createSocket(host, port);
  +                } catch (NoSuchMethodException e) {
  +                    sslSocket = (SSLSocket) factory.createSocket(host, port);
  +                } catch (InvocationTargetException e) {
  +                    sslSocket = (SSLSocket) factory.createSocket(host, port);
  +                } catch (IllegalAccessException e) {
  +                    sslSocket = (SSLSocket) factory.createSocket(host, port);
  +                }
  +            }
  +
               if (sslSocket != null &amp;&amp; tcpNoDelay != null)
                   sslSocket.setTcpNoDelay(tcpNoDelay.booleanValue());
           } else {
  @@ -147,7 +212,7 @@
                * over the top of it.
                */
               Socket tunnel = doTunnelHandshake(tunnelHost, tunnelPort, tunnelAuth,
  -                                              host, port, tcpNoDelay);
  +                                              host, port, timeout, tcpNoDelay);
   
               // Overlay tunnel socket with SSL
               sslSocket = (SSLSocket) factory.createSocket(tunnel, host, port, true);
  @@ -168,16 +233,16 @@
            */
           sslSocket.startHandshake();   
   
  -        return sslSocket;  
  +        return (Socket) sslSocket;  
       }
   
       static private Socket doTunnelHandshake(String tunnelHost, int tunnelPort,
                                               String tunnelAuth,
  -                                            String host, int port,
  +                                            String host, int port, int timeout,
                                               Boolean tcpNoDelay)
               throws IOException {
   
  -        Socket tunnel = new Socket(tunnelHost, tunnelPort);
  +        Socket tunnel = SocketUtils.createSocket(tunnelHost, tunnelPort, timeout);
           if (tunnel != null &amp;&amp; tcpNoDelay != null)
               tunnel.setTcpNoDelay(tcpNoDelay.booleanValue());
   
  
  
  
  1.1                  xml-soap/java/src/org/apache/soap/util/net/SocketUtils.java
  
  Index: SocketUtils.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2000 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "SOAP" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2000, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * &lt;http://www.apache.org/&gt;.
   */
  
  package org.apache.soap.util.net;
  
  import java.io.IOException;
  import java.lang.reflect.Constructor;
  import java.lang.reflect.InvocationTargetException;
  import java.lang.reflect.Method;
  import java.net.Socket;
  import java.net.UnknownHostException;
  
  /**
   * Socket utility functions.
   *
   * @author Scott Nichol (snichol@computer.org)
   */
  public class SocketUtils {
      /**
       * Creates a connected TCP socket.
       *
       * @param host The host to which to connect.
       * @param port The port to which to connect.
       * @param timeout The maximum amount of time to wait to connect (0 for no timeout).
       *                The timeout will only be enforced for J2SE 1.4 and later.
       * @exception UnknownHostException
       * @exception IOException
       */
      public static Socket createSocket(String host, int port, int timeout)
              throws UnknownHostException, IOException {
          Socket s;
  
          if (timeout == 0) {
              s = new Socket(host, port);
          } else {
              // for J2SE 1.4 and later, use Socket#connect to implement
              // timeout on the connect
              try {
                  Class socketAddress = Class.forName("java.net.SocketAddress");
                  Method connect = Socket.class.getMethod("connect",
                                          new Class[]{socketAddress, int.class});
                  s = (Socket) Socket.class.newInstance();
                  Class inetSocketAddress = Class.forName("java.net.InetSocketAddress");
                  Constructor ctor = inetSocketAddress.getConstructor(
                                          new Class[]{String.class, int.class});
                  Object address = ctor.newInstance(new Object[]{host, new Integer(port)});
                  connect.invoke(s, new Object[]{address, new Integer(timeout)});
              } catch (ClassNotFoundException e) {
                  s = new Socket(host, port);
              } catch (InstantiationException e) {
                  s = new Socket(host, port);
              } catch (NoSuchMethodException e) {
                  s = new Socket(host, port);
              } catch (InvocationTargetException e) {
                  s = new Socket(host, port);
              } catch (IllegalAccessException e) {
                  s = new Socket(host, port);
              }
          }
  
          return s;
      }
  }
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Instant messaging Implementation</title>
<author><name>&quot;Andrie-Surya&quot; &lt;suryapro@telkom.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3cweb-825426@b1.c.plasa.com%3e"/>
<id>urn:uuid:%3cweb-825426@b1-c-plasa-com%3e</id>
<updated>2002-12-14T12:05:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
I'm doing a final project right now. It's about Instant 
messaging. What I want to ask is, are there any methods 
that i can use to implement instant messaging by SOAP?
==========================================================
Pilih Pemenang Lomba Kartu Elektronik PlasaCom di http://kartu.plasa.com/lomba/
==========================================================
Bila ada spamming atau abuse laporkan ke abuse@telkom.net

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>How I can make Serialization under Weblogic</title>
<author><name>Nirmal Mukhi &lt;nmukhi@us.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3cOF85256C8E.006FF3DB-ON85256C8E.006FF3DB-85256C8E.006FF3DC@us.ibm.com%3e"/>
<id>urn:uuid:%3cOF85256C8E-006FF3DB-ON85256C8E-006FF3DB-85256C8E-006FF3DC@us-ibm-com%3e</id>
<updated>2002-12-13T20:22:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Return Receipt
                                                                           
    Your      How I can make Serialization under Weblogic                  
    document                                                               
    :                                                                      
                                                                           
    was       Nirmal Mukhi/Watson/IBM                                      
    received                                                               
    by:                                                                    
                                                                           
    at:       12/13/2002 15:22:49                                          
                                                                           





--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How I can make Serialization under Weblogic</title>
<author><name>Scott Nichol &lt;snicholnews@scottnichol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c03ee01c2a2e5$466f3960$c900a8c0@fastdata%3e"/>
<id>urn:uuid:%3c03ee01c2a2e5$466f3960$c900a8c0@fastdata%3e</id>
<updated>2002-12-13T20:21:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
There appear to be multiple problems.

The biggest is that the service appears to be written for
document/literal, while Apache SOAP sends rpc/encoded.  To have any
chance of properly sending a request to a doc/lit service, you must use
a nightly build of Apache SOAP, which allows you to send messages that
look like doc/lit.  Another problem is that you are using an old XML
Schema, which suggests to me you are using Apache SOAP 2.2.

Since the service is doc/lit, I highly recommend you use Axis as your
client.  See http://xml.apache.org/axis/.

Scott Nichol

----- Original Message -----
From: "Augusto Vyhmeister" &lt;augusto.vyhmeister@sixbell.com&gt;
To: &lt;soap-dev@xml.apache.org&gt;
Sent: Friday, December 13, 2002 1:19 PM
Subject: How I can make Serialization under Weblogic


Hello:

I am the following problem:


I send from a java client an invoke(...) to Weblogic ( I am working with
WorkShop, and have this response:




      Service Request
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              &lt;SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"&gt;
                &lt;SOAP-ENV:Body&gt;
                  &lt;ns1:sumar
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.openuri.org/"&gt;
                    &lt;valor1 xsi:type="xsd:int"&gt;30&lt;/valor1&gt;
                    &lt;valor2 xsi:type="xsd:int"&gt;2&lt;/valor2&gt;
                  &lt;/ns1:sumar&gt;
                &lt;/SOAP-ENV:Body&gt;
              &lt;/SOAP-ENV:Envelope&gt;

      Warning
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor1' does not match.

      Warning
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor2' does not match.

      Service Response
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              &lt;SOAP-ENV:Envelope
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"&gt;
                &lt;SOAP-ENV:Body&gt;
                  &lt;sumarResponse xmlns="http://www.openuri.org/"&gt;
                    &lt;sumarResult&gt;0&lt;/sumarResult&gt;
                  &lt;/sumarResponse&gt;
                &lt;/SOAP-ENV:Body&gt;
              &lt;/SOAP-ENV:Envelope&gt;





--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>How I can make Serialization under Weblogic</title>
<author><name>&quot;Augusto Vyhmeister&quot; &lt;augusto.vyhmeister@sixbell.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c000801c2a2d4$1f444710$5a01a8c0@sixbell.cl%3e"/>
<id>urn:uuid:%3c000801c2a2d4$1f444710$5a01a8c0@sixbell-cl%3e</id>
<updated>2002-12-13T18:19:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello:

I am the following problem:


I send from a java client an invoke(...) to Weblogic ( I am working with WorkShop, and have
this response:




      Service Request 
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"&gt;

                &lt;SOAP-ENV:Body&gt; 
                  &lt;ns1:sumar SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.openuri.org/"&gt; 
                    &lt;valor1 xsi:type="xsd:int"&gt;30&lt;/valor1&gt;
                    &lt;valor2 xsi:type="xsd:int"&gt;2&lt;/valor2&gt;
                  &lt;/ns1:sumar&gt;
                &lt;/SOAP-ENV:Body&gt;
              &lt;/SOAP-ENV:Envelope&gt; 
     
      Warning 
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor1' does not match.  
     
      Warning 
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor2' does not match.  
     
      Service Response 
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              &lt;SOAP-ENV:Envelope 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"&gt;

                &lt;SOAP-ENV:Body&gt; 
                  &lt;sumarResponse xmlns="http://www.openuri.org/"&gt; 
                    &lt;sumarResult&gt;0&lt;/sumarResult&gt;
                  &lt;/sumarResponse&gt;
                &lt;/SOAP-ENV:Body&gt;
              &lt;/SOAP-ENV:Envelope&gt;
           
     



</pre>
</div>
</content>
</entry>
<entry>
<title>URJENT -- Deploy descriptor problem with apache soap</title>
<author><name>&quot;Sinha, Madhukar [IT]&quot; &lt;madhukar.sinha@citigroup.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c8DE6ACD23A59D211BB0E00805FA720210DAD0DDC@exchny20.corp.smb.com%3e"/>
<id>urn:uuid:%3c8DE6ACD23A59D211BB0E00805FA720210DAD0DDC@exchny20-corp-smb-com%3e</id>
<updated>2002-12-10T23:16:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
 
I am having problems with deploy descriptors . The config manger is not
bieng able to locate it registry file and is looking at wrong place.
 
Here is the -
 
soap.xml file (/export/enterprise-docs/riskmast/config/local/soap.xml)
 
 
&lt;!-- Apache SOAP Server Configuration File --&gt;
&lt;soapServer&gt;
   &lt;configManager value="org.apache.soap.server.DefaultConfigManager"&gt;
     &lt;option name="filename"
value="/export/enterprise-docs/riskmast/rmsoapsvc/WEB-INF/jsp/DeployedServic
es.ds"/&gt;
   &lt;/configManager&gt;
&lt;/soapServer&gt;
 
web.xml file of the webapp "rmsoapsvc"
 
 
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "  &lt;http://java.sun.com/j2ee/dtds/web-app_2_2.dtd&gt;
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"&gt;
&lt;web-app&gt;
        &lt;display-name&gt;RMSOAPSVC&lt;/display-name&gt;
        &lt;description&gt;RiskMaster SOAP Service&lt;/description&gt;
        &lt;session-config&gt;
                &lt;session-timeout&gt;30&lt;/session-timeout&gt;
        &lt;/session-config&gt;
        &lt;mime-mapping&gt;
                &lt;extension&gt;txt&lt;/extension&gt;
                &lt;mime-type&gt;text/plain&lt;/mime-type&gt;
        &lt;/mime-mapping&gt;
        &lt;mime-mapping&gt;
                &lt;extension&gt;html&lt;/extension&gt;
                &lt;mime-type&gt;text/html&lt;/mime-type&gt;
        &lt;/mime-mapping&gt;
        &lt;welcome-file-list&gt;
                &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
                &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
        &lt;/welcome-file-list&gt;
        &lt;servlet&gt;
                &lt;servlet-name&gt;rpcrouter&lt;/servlet-name&gt;
 
&lt;servlet-class&gt;org.apache.soap.server.http.RPCRouterServlet&lt;/servlet-class&gt;
                &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
                &lt;init-param&gt;
                        &lt;param-name&gt;faultListener&lt;/param-name&gt;
 
&lt;param-value&gt;org.apache.soap.server.DOMFaultListener&lt;/param-value&gt;
                &lt;/init-param&gt;
                &lt;init-param&gt;
                        &lt;param-name&gt;ConfigFile&lt;/param-name&gt;
 
&lt;param-value&gt;/export/enterprise-docs/riskmast/config/local/soap.xml&lt;/param-v
alue&gt;
                &lt;/init-param&gt;
        &lt;/servlet&gt;
        &lt;servlet-mapping&gt;
                &lt;servlet-name&gt;rpcrouter&lt;/servlet-name&gt;
                &lt;url-pattern&gt;/soap/servlet/rpcrouter&lt;/url-pattern&gt;
        &lt;/servlet-mapping&gt;
        &lt;servlet&gt;
                &lt;servlet-name&gt;messagerouter&lt;/servlet-name&gt;
 
&lt;servlet-class&gt;org.apache.soap.server.http.MessageRouterServlet&lt;/servlet-cla
ss&gt;
                &lt;load-on-startup&gt;2&lt;/load-on-startup&gt;
                &lt;init-param&gt;
                        &lt;param-name&gt;faultListener&lt;/param-name&gt;
 
&lt;param-value&gt;org.apache.soap.server.DOMFaultListener&lt;/param-value&gt;
                &lt;/init-param&gt;
        &lt;/servlet&gt;
        &lt;servlet-mapping&gt;
                &lt;servlet-name&gt;messagerouter&lt;/servlet-name&gt;
                &lt;url-pattern&gt;/soap/servlet/messagerouter&lt;/url-pattern&gt;
        &lt;/servlet-mapping&gt;
&lt;/web-app&gt;


error on web based deploy tool when i use DEPLOY option
------------------------------------
 
 
 javax.servlet.ServletException: Exception thrown on line '437' from page
'/export/enterprise-docs/riskmast/rmsoapsvc/admin/deploy.jsp'.
[SOAPException: faultCode=SOAP-ENV:Server; msg=Error saving services
registry: /export/enterprise-docs/riskmast/DeployedServices.ds (Permission
denied)]
at
org.apache.soap.server.DefaultConfigManager.saveRegistry(DefaultConfigManage
r.java:151)
at
org.apache.soap.server.BaseConfigManager.deploy(BaseConfigManager.java:119)
at org.apache.soap.server.ServiceManager.deploy(ServiceManager.java:238)
at
jrun__rmsoapsvc__admin__deploy2ejsp1b._jspService(jrun__rmsoapsvc__admin__de
ploy2ejsp1b.java:171)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:175)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:367)
at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(WorkerThread.java:75)
 
------------------
 
error on STDERR of app server
-------
 
Operating System: SunOS Version 5.6
Java Virtual Machine: mixed mode from Sun Microsystems Inc.
JRun 3.0 3.01.5870 Starting riskmast...
Current Locale: en
Loading scheduler
Loading logging
SOAP Service Manager: Unable to read 'DeployedServices.ds': assuming fresh
start
 
 
 
 
WHY IS IT LOOKING AT WRONG PLACE .. THOUGH I HAVE SPECIFIED PATH IN soap.xml
file..
its now looking for DeployedServices.ds file in my JRUN root
(/export/enterprise-docs/riskmast) instead of looking at place specified in
soap.xml file.
 
Please help ASAP its urjent
 
 
 

~
~


 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Again: Attachments through COMProvider</title>
<author><name>Scott Nichol &lt;snicholnews@scottnichol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c04b501c2a073$a5be98d0$c900a8c0@fastdata%3e"/>
<id>urn:uuid:%3c04b501c2a073$a5be98d0$c900a8c0@fastdata%3e</id>
<updated>2002-12-10T17:43:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Lief,

Thanks for your contribution.  I have committed the original change for
returning strings as attachments.  I'll wait for byte array support to
allow arbitrary attachments.

Scott Nichol

----- Original Message -----
From: "Leif Nilsson TACMa" &lt;leni@tac.se&gt;
To: &lt;soap-dev@xml.apache.org&gt;
Sent: Tuesday, December 10, 2002 10:41 AM
Subject: RE: Again: Attachments through COMProvider


&gt; Hi!
&gt;
&gt;
&gt; Regarding byte array I see that arrays are currently not supported:
&gt;      else if( o.getClass().isArray())
&gt;      {
&gt;       // ArrayInfo ai= new ArrayInfo(o);
&gt;       // v= ai.toVariant();
&gt;       throw new SOAPException(Constants.FAULT_CODE_SERVER, "Currently
arrays
&gt; are unsupported,  type received:" + o.getClass().getName());
&gt;      }
&gt;
&gt; One idea would be to send the response object as a serialized
&gt;  Object - the following way:
&gt;  (Whenever someone decides to add bytearray it would be possible to
attach
&gt; it ?!?!)
&gt;  (In the previous solution we were dependant on the UTF-8 encoding)
&gt;
&gt;     Object ret= null;
&gt;     try{
&gt;       ret= invoke( threadingModel, progid, methodName, vp);
&gt;     }catch( Exception e)
&gt;     {
&gt;       String msg= Log.msg(Log.ERROR,
"msg.comprovider.error.nativeError",
&gt; e.toString());
&gt;       throw new SOAPException( Constants.FAULT_CODE_SERVER, msg);
&gt;     }
&gt;     try {
&gt;       Parameter pret= null;
&gt;       if(ret != null) {
&gt;         if (attachSerializedObject &amp;&amp; ret instanceof Serializable) {
&gt;           // We are about to return a serializable object and they
should be
&gt;           //  returned as attachments. Use a DataHandler object.
&gt;           ByteArrayOutputStream baos = new ByteArrayOutputStream();
&gt;           ObjectOutput            oo = new ObjectOutputStream(baos);
&gt;           oo.writeObject(ret);
&gt;           oo.flush();
&gt;
&gt;           DataSource  ds  = new
ByteArrayDataSource(baos.toByteArray(),
&gt; "application/octet-stream");
&gt;           DataHandler dh  = new DataHandler(ds);
&gt;           ret = dh;
&gt;         }
&gt;
&gt;         pret= new Parameter(RPCConstants.ELEM_RETURN , ret.getClass(),
ret,
&gt; null);
&gt;       }
&gt;    }
&gt;
&gt;
&gt; Is this acceptable ?????
&gt; You activate the attach serialized object by addding the following to
your
&gt; DeplymentDescriptor
&gt;
&gt;        &lt;isd:option key="attachSerializedObject" value="true" /&gt;
&gt;
&gt; On the client side you do as follows:
&gt;
&gt; Parameter ret = resp.getReturnValue();
&gt; try {
&gt;   Object obj = ret.getValue();
&gt;
&gt;   if (obj instanceof DataHandler) {
&gt;     try {
&gt;       DataHandler dh = (DataHandler) obj;
&gt;       DataSource  ds = dh.getDataSource();
&gt;
&gt;       InputStream is  = ds.getInputStream();
&gt;       ObjectInput oi  = new ObjectInputStream(is);
&gt;       Object      attachedObject = oi.readObject();
&gt;
&gt;      .... Do your stuff .....
&gt;
&gt; /Leif
&gt;
&gt; -----Original Message-----
&gt; From: Scott Nichol [mailto:snicholnews@scottnichol.com]
&gt; Sent: Tuesday, December 03, 2002 13:46
&gt; To: soap-dev@xml.apache.org
&gt; Subject: Re: Again: Attachments through COMProvider
&gt;
&gt;
&gt; Lief,
&gt;
&gt; Thank you for being both patient and persistent!
&gt;
&gt; My one question about this is that the option you add applies to
&gt; Strings, which are returned from COM objects as Unicode.  This would
not
&gt; allow binary files to be returned unless the COM object does some
&gt; encoding on the file, such as Base64.  Would we be able to implement
&gt; this for another data type (array of byte?) that would support
arbitrary
&gt; files?
&gt;
&gt; Scott Nichol
&gt;
&gt; ----- Original Message -----
&gt; From: "Leif Nilsson TACMa" &lt;leni@tac.se&gt;
&gt; To: &lt;soap-dev@xml.apache.org&gt;
&gt; Sent: Tuesday, December 03, 2002 3:24 AM
&gt; Subject: Again: Attachments through COMProvider
&gt;
&gt;
&gt; Hi!
&gt;
&gt; Since no one seems to object I suggest this change to be added.
&gt;
&gt; /Leif
&gt;
&gt; &gt;  -----Original Message-----
&gt; &gt; From: Leif Nilsson TACMa
&gt; &gt; Sent: Monday, October 28, 2002 19:10
&gt; &gt; To: 'soap-dev@xml.apache.org'
&gt; &gt; Subject: Attachments through COMProvider
&gt; &gt;
&gt; &gt; Hi!
&gt; &gt;
&gt; &gt; We send XML-files through Apache Soap.
&gt; &gt; There is a COM-server accessed via Apaches COMProvider.
&gt; &gt; The best way to send files as discussed is through attachments.
&gt; &gt; The only way I have figured out to do this via the ComProvider is to
&gt; alter
&gt; &gt; the
&gt; &gt;  org.apache.soap.providers.com.RPCProvider.java code.
&gt; &gt;
&gt; &gt; I'm sure there is a better way but I will explain what I have done.
&gt; &gt;   I have added an option for the COmProvider DeploymentDescriptor
&gt; &gt; (attachString), which if present and set to true will cause
&gt; &gt;   Strings returned from COM-servers to be packaged in a DataHandler
&gt; object
&gt; &gt; using UTF-8 coding.
&gt; &gt;
&gt; &gt; Any suggestions for how to do this better / cleaner ?
&gt; &gt; Cf. attached java code.
&gt; &gt;  &lt;&lt;Original RPCProvider.java&gt;&gt;  &lt;&lt;RPCProvider.java&gt;&gt;
&gt; &gt;
&gt; &gt; Leif Nilsson
&gt; &gt; Software Engineer
&gt; &gt;
&gt; &gt; TAC AB
&gt; &gt; Jägershillgatan 18
&gt; &gt; SE-213 75 Malmö, Sweden
&gt; &gt; Direct +46 40 38 69 56
&gt; &gt; Fax +46 40 21 82 87
&gt; &gt; Mobile +46 46 299 89 56
&gt; &gt; www.tac-global.com
&gt; &gt;
&gt; &gt; This email is intended only for the use of the individual or entity
to
&gt; &gt; whom it is addressed. It may contain information that is privileged,
&gt; &gt; confidential or otherwise protected from disclosure under applicable
&gt; law.
&gt; &gt; If you have received this transmission in error, please delete it
&gt; &gt; immediately and notify me by mailing me.
&gt; &gt;
&gt; &gt;
&gt;
&gt;
&gt;
&gt; ----------------------------------------------------------------------
--
&gt; --------
&gt;
&gt;
&gt; &gt; --
&gt; &gt; To unsubscribe, e-mail:
&lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; &gt; For additional commands, e-mail:
&lt;mailto:soap-dev-help@xml.apache.org&gt;
&gt;
&gt;
&gt; --
&gt; To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;
&gt;
&gt;


------------------------------------------------------------------------
--------


&gt; --
&gt; To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/docs changes.html</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c20021210173340.12691.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20021210173340-12691-qmail@icarus-apache-org%3e</id>
<updated>2002-12-10T17:33:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2002/12/10 09:33:40

  Modified:    java/src/org/apache/soap/providers/com RPCProvider.java
               java/docs changes.html
  Log:
  Submitted by: Leif Nilsson TACMa &lt;leni@tac.se&gt;
  
  We send XML-files through Apache Soap.
  There is a COM-server accessed via Apaches COMProvider.
  The best way to send files as discussed is through attachments.
  The only way I have figured out to do this via the ComProvider is to alter
  the
   org.apache.soap.providers.com.RPCProvider.java code.
  
  I'm sure there is a better way but I will explain what I have done.
    I have added an option for the COmProvider DeploymentDescriptor
  (AttachString), which if present and set to true will cause
    Strings returned from COM-servers to be packaged in a DataHandler object
  using UTF-8 coding.
  
  Scott Nichol added a few mods, including changing the option name to have
  a leading Upper case character.
  
  Revision  Changes    Path
  1.3       +39 -15    xml-soap/java/src/org/apache/soap/providers/com/RPCProvider.java
  
  Index: RPCProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/providers/com/RPCProvider.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RPCProvider.java	12 Apr 2001 16:26:53 -0000	1.2
  +++ RPCProvider.java	10 Dec 2002 17:33:40 -0000	1.3
  @@ -56,17 +56,26 @@
    */
   package org.apache.soap.providers.com;
   
  -import java.io.* ;
  -import java.util.* ;
  -import java.text.MessageFormat;
  -import javax.servlet.* ;
  -import javax.servlet.http.* ;
  -import org.apache.soap.* ;
  -import org.apache.soap.rpc.* ;
  -import org.apache.soap.server.* ;
  -import org.apache.soap.util.* ;
  +import java.io.*;
   import java.lang.Math;
  -
  +import java.text.MessageFormat;
  +import java.util.*;
  +import javax.activation.DataHandler;
  +import javax.activation.DataSource;
  +import javax.servlet.*;
  +import javax.servlet.http.*;
  +import org.apache.soap.*;
  +import org.apache.soap.encoding.soapenc.SoapEncUtils;
  +import org.apache.soap.rpc.*;
  +import org.apache.soap.server.*;
  +import org.apache.soap.util.*;
  +import org.apache.soap.util.mime.ByteArrayDataSource;
  +
  +/*
  + * @author jmsnell?
  + * @author dug
  + * @author Leif Nilsson TACMa (leni@tac.se)
  + */
   public class RPCProvider implements Provider
   {
     private DeploymentDescriptor dd ;
  @@ -81,6 +90,7 @@
     private ServletContext sc= null;
     private String threadingModel= null;
     private static boolean initLog= false;
  +  private boolean attachString=false;
   
     public void locate( DeploymentDescriptor dd,
                         Envelope env,
  @@ -108,6 +118,7 @@
        }
        
       //This validates that the method name is listed in the deployment descriptor.
  +    // TODO: use RPCRouter.validMessage
       if (!MessageRouter.validMessage (dd, methodName)) {
         String msg=
         Log.msg(Log.ERROR, "msg.comprovider.badMethod", targetObjectURI, methodName);
  @@ -142,10 +153,14 @@
          progid= targetObjectURI;
       }
   
  -    threadingModel=  (String) props.get("threadmodel"); 
  +    threadingModel=  (String) props.get("threadmodel");
       if( null == threadingModel) threadingModel= "MULTITHREADED";
       Log.msg(Log.INFORMATION, "msg.comprovider.info.cominf", progid, threadingModel );
   
  +    // Should we send Strings as attachments ?
  +    String attach = (String) props.get("AttachString");
  +    attachString  = (attach != null &amp;&amp; SoapEncUtils.decodeBooleanValue(attach));
  +
       this.dd              = dd ;
       this.envelope        = env ;
       this.call            = call ;
  @@ -189,11 +204,20 @@
             }catch( Exception e)
             {
               String msg= Log.msg(Log.ERROR, "msg.comprovider.error.nativeError", e.toString());
  -            throw new SOAPException( Constants.FAULT_CODE_SERVER, msg);
  +            throw new SOAPException(Constants.FAULT_CODE_SERVER, msg, e);
             }
             try {
             Parameter pret= null;
  -          if(ret != null) pret= new Parameter(RPCConstants.ELEM_RETURN , ret.getClass(),
ret, null);
  +          if(ret != null) {
  +             if (attachString &amp;&amp; ret instanceof String) {
  +                // We are about to return a String and they should be returned as
  +                //  attachments. Use a DataHandler object.
  +                DataSource  ds  = new ByteArrayDataSource(((String) ret).getBytes("UTF-8"),
"application/octet-stream");
  +                DataHandler dh  = new DataHandler(ds);
  +                ret = dh;
  +             }
  +             pret= new Parameter(RPCConstants.ELEM_RETURN , ret.getClass(), ret, null);
  +          }
                 vp=null; //dereference.
             Response resp = new Response( targetObjectURI,   // URI
                              call.getMethodName(),  // Method
  @@ -211,7 +235,7 @@
             catch( Exception e ) {
               String msg= Log.msg(Log.ERROR, "msg.comprovider.error.exp", e.toString());
              if ( e instanceof SOAPException ) throw (SOAPException ) e ;
  -            throw new SOAPException( Constants.FAULT_CODE_SERVER, msg );
  +            throw new SOAPException( Constants.FAULT_CODE_SERVER, msg, e );
             }
   
      Log.msg(Log.SUCCESS, "msg.comprovider.ok", ret == null ? "*null*" : ret.toString() );
  @@ -316,7 +340,7 @@
        else if(o  instanceof java.lang.Long) //VT_R8
        { //COM has no long type so promote it to double which can contain it.
         v[os+0] = 5; //VT_R8
  -     	v[os+1] = 0;
  +      v[os+1] = 0;
         long x= Double.doubleToLongBits((double)(((Long)o).longValue()));
         v[os+8]= (byte)x;
         v[os+9]= (byte)((x&gt;&gt;&gt;8) &amp; 0xff);
  
  
  
  1.53      +8 -5      xml-soap/java/docs/changes.html
  
  Index: changes.html
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/docs/changes.html,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- changes.html	4 Dec 2002 03:33:01 -0000	1.52
  +++ changes.html	10 Dec 2002 17:33:40 -0000	1.53
  @@ -96,11 +96,14 @@
         &lt;li&gt;Add client support for HTTP redirects.&lt;/li&gt;
         &lt;li&gt;Allow additional transport headers to be specified by client.&lt;/li&gt;
         &lt;li&gt;Add client support for one-way (as defined in WSDL) calls.&lt;/li&gt;
  -      &lt;li&gt;Serialize method return values using their actual type rather than
  -      the declared type when the declared type is not a primitive.  This may
  -      break existing services, e.g. where methods return subclasses of the
  -      declared return type, but a serializer is registered only for the
  -      declared return type.&lt;/li&gt;
  +      &lt;li&gt;Add the ability to serialize method return values using their actual
  +      type rather than the declared type (polymorphism) on a per service basis
  +      by specifying
  +      &lt;code&gt;&amp;lt;isd:option key=&amp;quot;PolymorphicSerialization&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;/code&gt;
  +      within the &lt;code&gt;isd:provider&lt;/code&gt; element in the deployment descriptor.&lt;/li&gt;
  +      &lt;li&gt;Add the ability to return text attachments from COM-based services by setting
  +      &lt;code&gt;&amp;lt;isd:option key=&amp;quot;AttachString&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;/code&gt;
  +      within the &lt;code&gt;isd:provider&lt;/code&gt; element in the deployment descriptor.&lt;/li&gt;
       &lt;/ul&gt;
     &lt;/li&gt;
   &lt;/ul&gt;
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Again: Attachments through COMProvider</title>
<author><name>Leif Nilsson TACMa &lt;leni@tac.se&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3cC59B57F38112D311A47A0008C7F33BA102AA86A5@TAMFS11%3e"/>
<id>urn:uuid:%3cC59B57F38112D311A47A0008C7F33BA102AA86A5@TAMFS11%3e</id>
<updated>2002-12-10T15:41:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi!


Regarding byte array I see that arrays are currently not supported:
     else if( o.getClass().isArray())
     {
      // ArrayInfo ai= new ArrayInfo(o);
      // v= ai.toVariant();
      throw new SOAPException(Constants.FAULT_CODE_SERVER, "Currently arrays
are unsupported,  type received:" + o.getClass().getName());
     }

One idea would be to send the response object as a serialized 
 Object - the following way:
 (Whenever someone decides to add bytearray it would be possible to attach
it ?!?!)
 (In the previous solution we were dependant on the UTF-8 encoding)

    Object ret= null;
    try{
      ret= invoke( threadingModel, progid, methodName, vp);
    }catch( Exception e)
    {
      String msg= Log.msg(Log.ERROR, "msg.comprovider.error.nativeError",
e.toString());
      throw new SOAPException( Constants.FAULT_CODE_SERVER, msg);
    }
    try {
      Parameter pret= null;
      if(ret != null) {
        if (attachSerializedObject &amp;&amp; ret instanceof Serializable) {
          // We are about to return a serializable object and they should be
          //  returned as attachments. Use a DataHandler object.
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          ObjectOutput            oo = new ObjectOutputStream(baos);
          oo.writeObject(ret);
          oo.flush();

          DataSource  ds  = new ByteArrayDataSource(baos.toByteArray(),
"application/octet-stream");
          DataHandler dh  = new DataHandler(ds);
          ret = dh;
        }

        pret= new Parameter(RPCConstants.ELEM_RETURN , ret.getClass(), ret,
null);
      }
   }


Is this acceptable ?????
You activate the attach serialized object by addding the following to your
DeplymentDescriptor

       &lt;isd:option key="attachSerializedObject" value="true" /&gt;

On the client side you do as follows:

Parameter ret = resp.getReturnValue();
try {
  Object obj = ret.getValue();

  if (obj instanceof DataHandler) {
    try {
      DataHandler dh = (DataHandler) obj;
      DataSource  ds = dh.getDataSource();

      InputStream is  = ds.getInputStream();
      ObjectInput oi  = new ObjectInputStream(is);
      Object      attachedObject = oi.readObject();
      
     .... Do your stuff .....

/Leif

-----Original Message-----
From: Scott Nichol [mailto:snicholnews@scottnichol.com]
Sent: Tuesday, December 03, 2002 13:46
To: soap-dev@xml.apache.org
Subject: Re: Again: Attachments through COMProvider


Lief,

Thank you for being both patient and persistent!

My one question about this is that the option you add applies to
Strings, which are returned from COM objects as Unicode.  This would not
allow binary files to be returned unless the COM object does some
encoding on the file, such as Base64.  Would we be able to implement
this for another data type (array of byte?) that would support arbitrary
files?

Scott Nichol

----- Original Message -----
From: "Leif Nilsson TACMa" &lt;leni@tac.se&gt;
To: &lt;soap-dev@xml.apache.org&gt;
Sent: Tuesday, December 03, 2002 3:24 AM
Subject: Again: Attachments through COMProvider


Hi!

Since no one seems to object I suggest this change to be added.

/Leif

&gt;  -----Original Message-----
&gt; From: Leif Nilsson TACMa
&gt; Sent: Monday, October 28, 2002 19:10
&gt; To: 'soap-dev@xml.apache.org'
&gt; Subject: Attachments through COMProvider
&gt;
&gt; Hi!
&gt;
&gt; We send XML-files through Apache Soap.
&gt; There is a COM-server accessed via Apaches COMProvider.
&gt; The best way to send files as discussed is through attachments.
&gt; The only way I have figured out to do this via the ComProvider is to
alter
&gt; the
&gt;  org.apache.soap.providers.com.RPCProvider.java code.
&gt;
&gt; I'm sure there is a better way but I will explain what I have done.
&gt;   I have added an option for the COmProvider DeploymentDescriptor
&gt; (attachString), which if present and set to true will cause
&gt;   Strings returned from COM-servers to be packaged in a DataHandler
object
&gt; using UTF-8 coding.
&gt;
&gt; Any suggestions for how to do this better / cleaner ?
&gt; Cf. attached java code.
&gt;  &lt;&lt;Original RPCProvider.java&gt;&gt;  &lt;&lt;RPCProvider.java&gt;&gt;
&gt;
&gt; Leif Nilsson
&gt; Software Engineer
&gt;
&gt; TAC AB
&gt; Jägershillgatan 18
&gt; SE-213 75 Malmö, Sweden
&gt; Direct +46 40 38 69 56
&gt; Fax +46 40 21 82 87
&gt; Mobile +46 46 299 89 56
&gt; www.tac-global.com
&gt;
&gt; This email is intended only for the use of the individual or entity to
&gt; whom it is addressed. It may contain information that is privileged,
&gt; confidential or otherwise protected from disclosure under applicable
law.
&gt; If you have received this transmission in error, please delete it
&gt; immediately and notify me by mailing me.
&gt;
&gt;



------------------------------------------------------------------------
--------


&gt; --
&gt; To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: cvs commit: xml-soap/java/src/org/apache/soap/util/xml XMLParserUtils.java</title>
<author><name>Scott Nichol &lt;snicholnews@scottnichol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c002a01c29b9d$f4df7090$c900a8c0@fastdata%3e"/>
<id>urn:uuid:%3c002a01c29b9d$f4df7090$c900a8c0@fastdata%3e</id>
<updated>2002-12-04T14:03:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I can put it to a vote, but even if approved, I need a more experienced
committer to volunteer to be release manager, since I don't know
everything that must be done.

The timing may be less than ideal as well, since Axis is gearing up to
release 1.1 before the end of the year.  Some of the potential release
managers are very busy on that project, and it's not clear whether we
want releases of SOAP and Axis to occur at the same time.

Scott Nichol

----- Original Message -----
From: "Pavel Ausianik" &lt;Pavel_Ausianik@epam.com&gt;
To: &lt;soap-dev@xml.apache.org&gt;
Sent: Wednesday, December 04, 2002 7:33 AM
Subject: RE: cvs commit: xml-soap/java/src/org/apache/soap/util/xml
XMLParserUtils.java


Scott,

Thanks, no more problems now

Another question was raised several times already. Can official public
build of Xerces 2.3.2 be released? I remember you've asked other
committers, but nobody answered. But at least nobody complains...


Pavel

-----Original Message-----
From: Scott Nichol [mailto:snicholnews@scottnichol.com]
Sent: Tuesday, December 03, 2002 7:59 PM
To: soap-dev@xml.apache.org
Subject: Re: cvs commit: xml-soap/java/src/org/apache/soap/util/xml
XMLParserUtils.java

Pavel,

Can you test with these changes?  Thanks.

Scott Nichol
----- Original Message -----
From: &lt;snichol@apache.org&gt;
To: &lt;xml-soap-cvs@apache.org&gt;
Sent: Tuesday, December 03, 2002 12:45 PM
Subject: cvs commit: xml-soap/java/src/org/apache/soap/util/xml
XMLParserUtils.java


&gt; snichol     2002/12/03 09:45:11
&gt;
&gt;   Modified:    java/src/org/apache/soap/util/xml XMLParserUtils.java
&gt;   Log:
&gt;   Only set Xerces-specific features if we believe we are using a
Xerces
&gt;   factory.  Rather than throwing an exception when a feature is set on
the
&gt;   factory, parsers throw when a parser is actually instantiated, which
is
&gt;   a problem.
&gt;
&gt;   Thanks to Pavel for finding this problem and suggesting the fix.
&gt;
&gt;   Revision  Changes    Path
&gt;   1.10      +22 -3
xml-soap/java/src/org/apache/soap/util/xml/XMLParserUtils.java
&gt;
&gt;   Index: XMLParserUtils.java
&gt;   ===================================================================
&gt;   RCS file:
/home/cvs/xml-soap/java/src/org/apache/soap/util/xml/XMLParserUtils.java
,v
&gt;   retrieving revision 1.9
&gt;   retrieving revision 1.10
&gt;   diff -u -r1.9 -r1.10
&gt;   --- XMLParserUtils.java 21 Nov 2002 16:36:58 -0000 1.9
&gt;   +++ XMLParserUtils.java 3 Dec 2002 17:45:11 -0000 1.10
&gt;   @@ -161,10 +161,29 @@
&gt;        dbf.setExpandEntityReferences(expandEntityReferences);
&gt;
&gt;        try {
&gt;   -
dbf.setAttribute("http://apache.org/xml/features/dom/defer-node-expansio
n",
&gt;   -                       Boolean.FALSE);
&gt;   +      // Some parsers don't throw an exception here, but throw one
when the
&gt;   +      // factory creates an instance instead, so try to only do
this for
&gt;   +      // Xerces.
&gt;   +      if
(dbf.getClass().getName().equals("org.apache.xerces.jaxp.DocumentBuilder
Factory")) {
&gt;   +        // speed up processing by turning off deferred node
expansion
&gt;   +
dbf.setAttribute("http://apache.org/xml/features/dom/defer-node-expansio
n",
&gt;   +                         Boolean.FALSE);
&gt;   +      }
&gt;        } catch (IllegalArgumentException e) {
&gt;   -      // parsers that do not support this option with throw this
exception
&gt;   +      // parsers that do not support this option *should* throw
this exception
&gt;   +    }
&gt;   +
&gt;   +    try {
&gt;   +      // Some parsers don't throw an exception here, but throw one
when the
&gt;   +      // factory creates an instance instead, so try to only do
this for
&gt;   +      // Xerces.
&gt;   +      if
(dbf.getClass().getName().equals("org.apache.xerces.jaxp.DocumentBuilder
Factory")) {
&gt;   +        // future: protect against DOS attacks through DOCTYPE
processing
&gt;   +
dbf.setAttribute("http://apache.org/xml/features/disallow-doctype-decl",
&gt;   +                         Boolean.TRUE);
&gt;   +      }
&gt;   +    } catch (IllegalArgumentException e) {
&gt;   +      // parsers that do not support this option *should* throw
this exception
&gt;        }
&gt;
&gt;        /*
&gt;
&gt;
&gt;
&gt;
&gt; --
&gt; To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;
&gt;
&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: cvs commit: xml-soap/java/src/org/apache/soap/util/xml XMLParserUtils.java</title>
<author><name>&quot;Pavel Ausianik&quot; &lt;Pavel_Ausianik@epam.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c5C8FE3BB7A7A4F4E9AB6604B3C2B9FAE2469E6@epmsa009.minsk.epam.com%3e"/>
<id>urn:uuid:%3c5C8FE3BB7A7A4F4E9AB6604B3C2B9FAE2469E6@epmsa009-minsk-epam-com%3e</id>
<updated>2002-12-04T12:33:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Scott,

Thanks, no more problems now

Another question was raised several times already. Can official public
build of Xerces 2.3.2 be released? I remember you've asked other
committers, but nobody answered. But at least nobody complains...


Pavel

-----Original Message-----
From: Scott Nichol [mailto:snicholnews@scottnichol.com] 
Sent: Tuesday, December 03, 2002 7:59 PM
To: soap-dev@xml.apache.org
Subject: Re: cvs commit: xml-soap/java/src/org/apache/soap/util/xml
XMLParserUtils.java

Pavel,

Can you test with these changes?  Thanks.

Scott Nichol
----- Original Message -----
From: &lt;snichol@apache.org&gt;
To: &lt;xml-soap-cvs@apache.org&gt;
Sent: Tuesday, December 03, 2002 12:45 PM
Subject: cvs commit: xml-soap/java/src/org/apache/soap/util/xml
XMLParserUtils.java


&gt; snichol     2002/12/03 09:45:11
&gt;
&gt;   Modified:    java/src/org/apache/soap/util/xml XMLParserUtils.java
&gt;   Log:
&gt;   Only set Xerces-specific features if we believe we are using a
Xerces
&gt;   factory.  Rather than throwing an exception when a feature is set on
the
&gt;   factory, parsers throw when a parser is actually instantiated, which
is
&gt;   a problem.
&gt;
&gt;   Thanks to Pavel for finding this problem and suggesting the fix.
&gt;
&gt;   Revision  Changes    Path
&gt;   1.10      +22 -3
xml-soap/java/src/org/apache/soap/util/xml/XMLParserUtils.java
&gt;
&gt;   Index: XMLParserUtils.java
&gt;   ===================================================================
&gt;   RCS file:
/home/cvs/xml-soap/java/src/org/apache/soap/util/xml/XMLParserUtils.java
,v
&gt;   retrieving revision 1.9
&gt;   retrieving revision 1.10
&gt;   diff -u -r1.9 -r1.10
&gt;   --- XMLParserUtils.java 21 Nov 2002 16:36:58 -0000 1.9
&gt;   +++ XMLParserUtils.java 3 Dec 2002 17:45:11 -0000 1.10
&gt;   @@ -161,10 +161,29 @@
&gt;        dbf.setExpandEntityReferences(expandEntityReferences);
&gt;
&gt;        try {
&gt;   -
dbf.setAttribute("http://apache.org/xml/features/dom/defer-node-expansio
n",
&gt;   -                       Boolean.FALSE);
&gt;   +      // Some parsers don't throw an exception here, but throw one
when the
&gt;   +      // factory creates an instance instead, so try to only do
this for
&gt;   +      // Xerces.
&gt;   +      if
(dbf.getClass().getName().equals("org.apache.xerces.jaxp.DocumentBuilder
Factory")) {
&gt;   +        // speed up processing by turning off deferred node
expansion
&gt;   +
dbf.setAttribute("http://apache.org/xml/features/dom/defer-node-expansio
n",
&gt;   +                         Boolean.FALSE);
&gt;   +      }
&gt;        } catch (IllegalArgumentException e) {
&gt;   -      // parsers that do not support this option with throw this
exception
&gt;   +      // parsers that do not support this option *should* throw
this exception
&gt;   +    }
&gt;   +
&gt;   +    try {
&gt;   +      // Some parsers don't throw an exception here, but throw one
when the
&gt;   +      // factory creates an instance instead, so try to only do
this for
&gt;   +      // Xerces.
&gt;   +      if
(dbf.getClass().getName().equals("org.apache.xerces.jaxp.DocumentBuilder
Factory")) {
&gt;   +        // future: protect against DOS attacks through DOCTYPE
processing
&gt;   +
dbf.setAttribute("http://apache.org/xml/features/disallow-doctype-decl",
&gt;   +                         Boolean.TRUE);
&gt;   +      }
&gt;   +    } catch (IllegalArgumentException e) {
&gt;   +      // parsers that do not support this option *should* throw
this exception
&gt;        }
&gt;
&gt;        /*
&gt;
&gt;
&gt;
&gt;
&gt; --
&gt; To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;
&gt;
&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/docs changes.html</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c20021204033301.59328.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20021204033301-59328-qmail@icarus-apache-org%3e</id>
<updated>2002-12-04T03:33:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2002/12/03 19:33:01

  Modified:    java/src/org/apache/soap/server RPCRouter.java
               java/docs changes.html
  Log:
  Serialize method return values using their actual type rather than
  the declared type when the declared type is not a primitive.  This may
  break existing services, e.g. where methods return subclasses of the
  declared return type, but a serializer is registered only for the
  declared return type.
  
  Revision  Changes    Path
  1.18      +3 -1      xml-soap/java/src/org/apache/soap/server/RPCRouter.java
  
  Index: RPCRouter.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/server/RPCRouter.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- RPCRouter.java	25 May 2001 19:25:28 -0000	1.17
  +++ RPCRouter.java	4 Dec 2002 03:33:01 -0000	1.18
  @@ -143,7 +143,9 @@
             throw e;
           }
   
  -        result = new Bean (m.getReturnType (), m.invoke (targetObject, args));
  +        Object ret = m.invoke(targetObject, args);
  +        Class retType = m.getReturnType();
  +        result = new Bean(retType.isPrimitive() ? retType : ret.getClass(), ret);
         } else {
           // find the class that provides the BSF services (done
           // this way via reflection to avoid a compile-time dependency on BSF)
  
  
  
  1.52      +6 -1      xml-soap/java/docs/changes.html
  
  Index: changes.html
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/docs/changes.html,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- changes.html	19 Nov 2002 02:47:38 -0000	1.51
  +++ changes.html	4 Dec 2002 03:33:01 -0000	1.52
  @@ -90,12 +90,17 @@
         of Maps.&lt;/li&gt;
         &lt;li&gt;Read HTTP[S] proxy information from system properties if not explicitly
         specified.&lt;/li&gt;
  -      &lt;li&gt;Support messaging in the Stateless EJB and CORBA provieders.  Throw an
  +      &lt;li&gt;Support messaging in the Stateless EJB and CORBA providers.  Throw an
         exception for messaging calls in the Stateful EJB and Entity EJB providers
         rather than throwing a NPE.&lt;/li&gt;
         &lt;li&gt;Add client support for HTTP redirects.&lt;/li&gt;
         &lt;li&gt;Allow additional transport headers to be specified by client.&lt;/li&gt;
         &lt;li&gt;Add client support for one-way (as defined in WSDL) calls.&lt;/li&gt;
  +      &lt;li&gt;Serialize method return values using their actual type rather than
  +      the declared type when the declared type is not a primitive.  This may
  +      break existing services, e.g. where methods return subclasses of the
  +      declared return type, but a serializer is registered only for the
  +      declared return type.&lt;/li&gt;
       &lt;/ul&gt;
     &lt;/li&gt;
   &lt;/ul&gt;
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/samples/multiref GetCircularBean.java</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c20021203211652.64348.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20021203211652-64348-qmail@icarus-apache-org%3e</id>
<updated>2002-12-03T21:16:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2002/12/03 13:16:52

  Modified:    java/samples/multiref GetCircularBean.java
  Log:
  Add use of request/response copy buffers.
  
  Revision  Changes    Path
  1.2       +15 -0     xml-soap/java/samples/multiref/GetCircularBean.java
  
  Index: GetCircularBean.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/samples/multiref/GetCircularBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GetCircularBean.java	28 Jun 2002 02:33:16 -0000	1.1
  +++ GetCircularBean.java	3 Dec 2002 21:16:52 -0000	1.2
  @@ -65,6 +65,7 @@
   import org.apache.soap.encoding.*;
   import org.apache.soap.encoding.soapenc.*;
   import org.apache.soap.rpc.*;
  +import org.apache.soap.transport.http.SOAPHTTPConnection;
   
   /**
    * See \samples\multiref\readme for info.
  @@ -84,6 +85,13 @@
       SOAPMappingRegistry smr = new SOAPMappingRegistry();
       BeanMultiRefSerializer beanSer = new BeanMultiRefSerializer();
   
  +    // Set up debug buffers
  +    StringBuffer requestBuffer = new StringBuffer(1024);
  +    StringBuffer responseBuffer = new StringBuffer(1024);
  +    SOAPHTTPConnection shc = new SOAPHTTPConnection();
  +    shc.setRequestCopy(requestBuffer);
  +    shc.setResponseCopy(responseBuffer);
  +
       // Map the types.
       smr.mapTypes(Constants.NS_URI_SOAP_ENC,
                    new QName("urn:xml-soap-multiref-sample", "circularbean"),
  @@ -96,6 +104,7 @@
       call.setTargetObjectURI("urn:MultiRefSample");
       call.setMethodName("getCircularBean");
       call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
  +    call.setSOAPTransport(shc);
   
       Vector params = new Vector();
       call.setParams(params);
  @@ -123,5 +132,11 @@
   
         System.err.println("Generated fault: " + fault);
       }
  +
  +    // Display the request and response
  +    System.out.println("********** Request *********");
  +    System.out.println(shc.getRequestCopy().toString());
  +    System.out.println("********** Response *********");
  +    System.out.println(shc.getResponseCopy().toString());
     }
   }
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>cvs commit: xml-soap/java/src/org/apache/soap/util/net HTTPUtils.java</title>
<author><name>snichol@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c20021203211608.64201.qmail@icarus.apache.org%3e"/>
<id>urn:uuid:%3c20021203211608-64201-qmail@icarus-apache-org%3e</id>
<updated>2002-12-03T21:16:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
snichol     2002/12/03 13:16:08

  Modified:    java/src/org/apache/soap/util/net HTTPUtils.java
  Log:
  Fix bug in one of the post methods in which the copy buffers were not being
  passed along.
  
  Revision  Changes    Path
  1.41      +1 -1      xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java
  
  Index: HTTPUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- HTTPUtils.java	29 Nov 2002 21:42:39 -0000	1.40
  +++ HTTPUtils.java	3 Dec 2002 21:16:08 -0000	1.41
  @@ -374,7 +374,7 @@
                                         StringBuffer responseCopy)
             throws IOException, SOAPException {
         return post(url, request, timeout, httpProxyHost, httpProxyPort,
  -                   outputBufferSize, tcpNoDelay, null, null, 0);
  +                   outputBufferSize, tcpNoDelay, requestCopy, responseCopy, 0);
     }
   
     /**
  
  
  

--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Fw: Security Alert - Xerces]</title>
<author><name>Scott Nichol &lt;snicholnews@scottnichol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c087c01c29af9$d2865b70$c900a8c0@fastdata%3e"/>
<id>urn:uuid:%3c087c01c29af9$d2865b70$c900a8c0@fastdata%3e</id>
<updated>2002-12-03T18:28:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
This is the "future" feature being set for Xerces.

Scott Nichol

----- Original Message -----
From: "Ted Leung" &lt;twleung@sauria.com&gt;
To: &lt;security@apache.org&gt;
Cc: &lt;xerces-j-dev@xml.apache.org&gt;; &lt;axis-dev@xml.apache.org&gt;
Sent: Tuesday, December 03, 2002 10:31 AM
Subject: Re: Security Alert - Xerces]


&gt; The next version of Xerces-J will include a parser feature that will
&gt; turn off DOCTYPE processing.  When activated, this feature will
&gt; prevent the entity expansion that causes this vulnerability.  The Axis
&gt; team will be able to use this feature to close the hole.
&gt;
&gt; The URI for the parser feature will be
&gt; "http://apache.org/xml/features/disallow-doctype-decl"
&gt;
&gt; Ted
&gt; ----- Original Message -----
&gt; From: "Ben Laurie" &lt;ben@algroup.co.uk&gt;
&gt; To: "Ted Leung" &lt;twleung@sauria.com&gt;
&gt; Sent: Wednesday, November 27, 2002 3:37 AM
&gt; Subject: [Fwd: Security Alert - Xerces]
&gt;
&gt;
&gt; &gt; Here ya go. Please keep security@ copied on any followups...
&gt; &gt;
&gt; &gt; Cheers,
&gt; &gt;
&gt; &gt; Ben.
&gt; &gt;
&gt; &gt; --
&gt; &gt; http://www.apache-ssl.org/ben.html       http://www.thebunker.net/
&gt; &gt;
&gt; &gt; "There is no limit to what a man can do or how far he can go if he
&gt; &gt; doesn't mind who gets the credit." - Robert Woodruff
&gt; &gt;
&gt;
&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: cvs commit: xml-soap/java/src/org/apache/soap/util/xml XMLParserUtils.java</title>
<author><name>Scott Nichol &lt;snicholnews@scottnichol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xml-soap-dev/200212.mbox/%3c086d01c29af5$9cd4c510$c900a8c0@fastdata%3e"/>
<id>urn:uuid:%3c086d01c29af5$9cd4c510$c900a8c0@fastdata%3e</id>
<updated>2002-12-03T17:58:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Pavel,

Can you test with these changes?  Thanks.

Scott Nichol
----- Original Message -----
From: &lt;snichol@apache.org&gt;
To: &lt;xml-soap-cvs@apache.org&gt;
Sent: Tuesday, December 03, 2002 12:45 PM
Subject: cvs commit: xml-soap/java/src/org/apache/soap/util/xml
XMLParserUtils.java


&gt; snichol     2002/12/03 09:45:11
&gt;
&gt;   Modified:    java/src/org/apache/soap/util/xml XMLParserUtils.java
&gt;   Log:
&gt;   Only set Xerces-specific features if we believe we are using a
Xerces
&gt;   factory.  Rather than throwing an exception when a feature is set on
the
&gt;   factory, parsers throw when a parser is actually instantiated, which
is
&gt;   a problem.
&gt;
&gt;   Thanks to Pavel for finding this problem and suggesting the fix.
&gt;
&gt;   Revision  Changes    Path
&gt;   1.10      +22 -3
xml-soap/java/src/org/apache/soap/util/xml/XMLParserUtils.java
&gt;
&gt;   Index: XMLParserUtils.java
&gt;   ===================================================================
&gt;   RCS file:
/home/cvs/xml-soap/java/src/org/apache/soap/util/xml/XMLParserUtils.java
,v
&gt;   retrieving revision 1.9
&gt;   retrieving revision 1.10
&gt;   diff -u -r1.9 -r1.10
&gt;   --- XMLParserUtils.java 21 Nov 2002 16:36:58 -0000 1.9
&gt;   +++ XMLParserUtils.java 3 Dec 2002 17:45:11 -0000 1.10
&gt;   @@ -161,10 +161,29 @@
&gt;        dbf.setExpandEntityReferences(expandEntityReferences);
&gt;
&gt;        try {
&gt;   -
dbf.setAttribute("http://apache.org/xml/features/dom/defer-node-expansio
n",
&gt;   -                       Boolean.FALSE);
&gt;   +      // Some parsers don't throw an exception here, but throw one
when the
&gt;   +      // factory creates an instance instead, so try to only do
this for
&gt;   +      // Xerces.
&gt;   +      if
(dbf.getClass().getName().equals("org.apache.xerces.jaxp.DocumentBuilder
Factory")) {
&gt;   +        // speed up processing by turning off deferred node
expansion
&gt;   +
dbf.setAttribute("http://apache.org/xml/features/dom/defer-node-expansio
n",
&gt;   +                         Boolean.FALSE);
&gt;   +      }
&gt;        } catch (IllegalArgumentException e) {
&gt;   -      // parsers that do not support this option with throw this
exception
&gt;   +      // parsers that do not support this option *should* throw
this exception
&gt;   +    }
&gt;   +
&gt;   +    try {
&gt;   +      // Some parsers don't throw an exception here, but throw one
when the
&gt;   +      // factory creates an instance instead, so try to only do
this for
&gt;   +      // Xerces.
&gt;   +      if
(dbf.getClass().getName().equals("org.apache.xerces.jaxp.DocumentBuilder
Factory")) {
&gt;   +        // future: protect against DOS attacks through DOCTYPE
processing
&gt;   +
dbf.setAttribute("http://apache.org/xml/features/disallow-doctype-decl",
&gt;   +                         Boolean.TRUE);
&gt;   +      }
&gt;   +    } catch (IllegalArgumentException e) {
&gt;   +      // parsers that do not support this option *should* throw
this exception
&gt;        }
&gt;
&gt;        /*
&gt;
&gt;
&gt;
&gt;
&gt; --
&gt; To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
&gt; For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;
&gt;
&gt;


--
To unsubscribe, e-mail:   &lt;mailto:soap-dev-unsubscribe@xml.apache.org&gt;
For additional commands, e-mail: &lt;mailto:soap-dev-help@xml.apache.org&gt;



</pre>
</div>
</content>
</entry>
</feed>
