DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9476>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9476

The encodingStyle attribute of generated multiRef elements is missing the SOAP 
envelope namespace prefix





------- Additional Comments From [EMAIL PROTECTED]  2002-06-06 16:27 -------
I found the location of the problem, but don't have a CVS account.  Can someone 
integrate the change?

In the class org.apache.axis.encoding.SerializationContextImpl, make the 
following changes:

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;

May also need to change 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.

Reply via email to