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=17009>.
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=17009

encodingStyle gets set even when using document style calls

           Summary: encodingStyle gets set even when using document style
                    calls
           Product: Axis
           Version: 1.1RC1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This simple example:

        String ARG = "i FeEL sTrAnGEly CAsEd (but I like it)";
        Call call = new Call(DOC_INT_ENDPOINT);
        call.setSOAPVersion(SOAPConstants.SOAP12_CONSTANTS);
        call.setOperationStyle(Style.WRAPPED);
        call.setOperationUse(Use.LITERAL);
        call.addParameter(new QName("", "inputString"),
                          Constants.XSD_STRING, ParameterMode.IN);
        call.setReturnType(Constants.XSD_STRING);
        
        String ret = (String)call.invoke(ECHO_STRING_QNAME, new Object [] { 
ARG });

Generates this envelope:

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2002/12/soap-envelope"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <soapenv:Body>
  <ns1:echoString soapenv:encodingStyle="http://www.w3.org/2002/12/soap-
encoding" xmlns:ns1="http://soapinterop.org/";>
   <inputString>i FeEL sTrAnGEly CAsEd (but I like it)</inputString>
  </ns1:echoString>
 </soapenv:Body>
</soapenv:Envelope>

The "encodingStyle" attribute should not be there on the echoString element, 
and should default to nothing for all non-RPC-styled invocations.

Reply via email to