You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by sn...@apache.org on 2002/11/20 23:27:10 UTC

cvs commit: xml-soap/java/src/org/apache/soap/rpc Call.java

snichol     2002/11/20 14:27:10

  Modified:    java/samples/doclit Add.java
               java/src/org/apache/soap/rpc Call.java
  Log:
  Remove get/setDocLitSerialization from Call.  Clients should just set
  this directly on SOAPContext.
  
  Revision  Changes    Path
  1.2       +1 -1      xml-soap/java/samples/doclit/Add.java
  
  Index: Add.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/samples/doclit/Add.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Add.java	30 Aug 2002 21:38:59 -0000	1.1
  +++ Add.java	20 Nov 2002 22:27:10 -0000	1.2
  @@ -99,7 +99,7 @@
       call.setTargetObjectURI("http://www.xml-webservices.net/services/maths");
       call.setMethodName("Add");
       call.setEncodingStyleURI(encodingStyleURI);
  -    call.setDocLitSerialization(true);
  +    call.getSOAPContext().setDocLitSerialization(true);
   
       Vector params = new Vector();
       params.addElement(new Parameter("a", Float.class, number1, null));
  
  
  
  1.25      +0 -18     xml-soap/java/src/org/apache/soap/rpc/Call.java
  
  Index: Call.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/rpc/Call.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- Call.java	20 Nov 2002 21:54:25 -0000	1.24
  +++ Call.java	20 Nov 2002 22:27:10 -0000	1.25
  @@ -148,24 +148,6 @@
       super(targetObjectURI, methodName, params, header, encodingStyleURI, ctx);
     }
   
  -  /**
  -   * Gets whether document/literal style is used in serialization.
  -   *
  -   * @return Whether document/literal style is used in serialization.
  -   */
  -  public boolean getDocLitSerialization() {
  -    return ctx.getDocLitSerialization();
  -  }
  -
  -  /**
  -   * Sets whether document/literal style is used in serialization.
  -   *
  -   * @param docLitSerialization Whether document/literal style is used in serialization.
  -   */
  -  public void setDocLitSerialization(boolean docLitSerialization) {
  -    ctx.setDocLitSerialization(docLitSerialization);
  -  }
  -
     public void setSOAPMappingRegistry(SOAPMappingRegistry smr)
     {
       this.smr = smr;