I sent this email last Thursday, but cannot find record of it on the
axis-dev email list.  My apologies if this is a repeat.

To fix bug #9476
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9476), can someone
make the following modifications to the class
org.apache.axis.encoding.SerializationContextImpl : 

In the method outputMultiRefs( ), change the following lines:

String encStyle = getPrefixForURI(soapConstants.getEnvelopeURI() + 
                       ":" + Constants.ATTR_ENCODING_STYLE);

to the following lines:
 
String encPrefix = getPrefixForURI(soapConstants.getEnvelopeURI());
String encStyle = encPrefix + ":" + Constants.ATTR_ENCODING_STYLE;

I also changed the method getPrefixForURI(String uri, String
defaultPrefix) to include the following lines: 

if (prefix == null && uri.equals(soapConstants.getEnvelopeURI())) {
   prefix = Constants.NSPREFIX_SOAP_ENV;
   registerPrefixForURI(prefix, uri);
}

(This is in addition to the similar code already there for the
EncodingURI.  I'm not sure that the change to this method is required.)

I used the source code from beta2, and some of the constants seem to
have changed names in the latest code.

I have verified that this fixes bug #9476, but I have not run junit
tests.

Thanks,
Jim Dibble

Reply via email to