nagy        02/05/03 09:17:31

  Modified:    java/samples/ejb ejbtest.java
  Log:
  Pass in correct parameter to EJB method. For more info, see: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5193
  Submitted by: Bernd Proissl ([EMAIL PROTECTED])
  Reviewed by: Bill Nagy ([EMAIL PROTECTED])
  
  Revision  Changes    Path
  1.3       +4 -2      xml-soap/java/samples/ejb/ejbtest.java
  
  Index: ejbtest.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/samples/ejb/ejbtest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ejbtest.java      17 May 2001 21:24:02 -0000      1.2
  +++ ejbtest.java      3 May 2002 16:17:31 -0000       1.3
  @@ -76,10 +76,12 @@
   
       // Build the call.
       Call call = new Call ();
  +    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
       call.setTargetObjectURI ("urn:ejbhello");
       call.setMethodName ("hello");
       Vector params = new Vector ();
  -    // params.addElement (new Parameter("symbol", String.class, symbol, null));
  +    params.addElement (new Parameter("phrase", String.class,
  +                                  "what's your name?", null));
       call.setParams (params);
   
       // make the call: note that the action URI is empty because the 
  @@ -95,7 +97,7 @@
         System.out.println ("  Fault String = " + fault.getFaultString ());
       } else {
         Parameter result = resp.getReturnValue ();
  -      System.out.println ( "Done" );
  +      System.out.println ( "Done. result=" + result.getValue());
       }
     }
   }
  
  
  


Reply via email to