You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ru...@apache.org on 2001/07/07 03:45:44 UTC

cvs commit: xml-axis/java/src/org/apache/axis/providers/java RPCProvider.java

rubys       01/07/06 18:45:44

  Modified:    java/src/org/apache/axis/providers/java RPCProvider.java
  Log:
  Increase interoperability with xml-soap v2.2+ and MS.Net beta 2.
  
  While V2.2 could accept responses without an explicit encoding, changes
  since V2.2 was cut require encoding.  MS.Net requires an exact match on
  return parameter names - so for now make the defaults align.
  
  Ultimately, the encoding, schema, and parameter names should all be
  determined by deployment information (WSDL, if available).
  
  Revision  Changes    Path
  1.8       +2 -1      xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java
  
  Index: RPCProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/providers/java/RPCProvider.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RPCProvider.java	2001/07/01 03:31:01	1.7
  +++ RPCProvider.java	2001/07/07 01:45:43	1.8
  @@ -242,10 +242,11 @@
               resBody.setPrefix( body.getPrefix() );
               resBody.setNamespaceURI( body.getNamespaceURI() );
               if ( objRes != null ) {
  -                RPCParam param = new RPCParam("return", objRes);
  +                RPCParam param = new RPCParam(mName + "Result", objRes);
                   resBody.addParam(param);
               }
               resEnv.addBodyElement( resBody );
  +            resEnv.setEncodingStyleURI(Constants.URI_SOAP_ENC);
           }
       }
   }