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/08 23:35:21 UTC

cvs commit: xml-axis/java/samples/echo TestClient.java

rubys       01/07/08 14:35:21

  Modified:    java/samples/echo TestClient.java
  Log:
  It helps if the call and output parameter use the same TypeMappingRegistry
  
  Revision  Changes    Path
  1.13      +3 -1      xml-axis/java/samples/echo/TestClient.java
  
  Index: TestClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/echo/TestClient.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- TestClient.java	2001/07/08 14:18:35	1.12
  +++ TestClient.java	2001/07/08 21:35:20	1.13
  @@ -79,10 +79,11 @@
   public abstract class TestClient {
   
       private static ServiceClient call;
  -    private static TypeMappingRegistry map = new SOAPTypeMappingRegistry();
       private static boolean addMethodToAction = false;
       private static String soapAction = "http://soapinterop.org/";
   
  +    private TypeMappingRegistry map;
  +
       /**
        * Determine if two objects are equal.  Handles nulls and recursively
        * verifies arrays are equal.
  @@ -146,6 +147,7 @@
        */
       public void setURL(String url) {
           call = new ServiceClient(url);
  +        map = call.getMessageContext().getTypeMappingRegistry();
       }
   
       /**