openamf/src/java/org/openamf/invoker WebServiceInvoker.java,1.9,1.10

[email protected]
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/invoker
In directory sc8-pr-cvs1:/tmp/cvs-serv9562/src/java/org/openamf/invoker

Modified Files:
	WebServiceInvoker.java 
Log Message:


Index: WebServiceInvoker.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/invoker/WebServiceInvoker.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** WebServiceInvoker.java	1 May 2003 04:01:45 -0000	1.9
--- WebServiceInvoker.java	1 May 2003 04:15:29 -0000	1.10
***************
*** 39,55 ****
  
  		/*
! 		 * TODO: acquire className and requestedMethodName
! 		 * 
! 		 * look to see if mapping exists in context
! 		 * if not, have to do the whole whammie
! 		 * 
! 		 * if so, we should probably store the two classnames so we 
! 		 * dont have to do the introspection, maybe store ALL the method names?
! 		 * 
! 		 * look closer, maybe all we want to do is invoke()
! 		 * 
! 		 * actually looks like all we need is the package name,
! 		 * which we make up and then provide the ant task.
! 		 * 
  		 * 
  		 */
--- 39,43 ----
  
  		/*
! 		 * TODO: Can optimize so introspection isnt necessary every time.
  		 * 
  		 */
***************
*** 57,65 ****
  		String serviceName = request.getServiceName();
  		log.debug("SERVICE NAME: " + serviceName);
- 		String x = request.getServiceMethodName();
- 		log.debug("SERVICE METHOD NAME: " + x);
- 		String y = request.getTarget();
- 		log.debug("TARGET: " + y);
- 
  		Object r = null;
  		String requestedMethodName = request.getServiceMethodName();
--- 45,48 ----
***************
*** 75,81 ****
  		packageFolder = removeChar(packageFolder, '.');
  		log.debug("PACKAGE NAME:" + packageFolder);
! 
! 		//TODO: something to think about, we dont want to start creating stubs if there is a bad method name
! 
  		try {
  
--- 58,63 ----
  		packageFolder = removeChar(packageFolder, '.');
  		log.debug("PACKAGE NAME:" + packageFolder);
! 		
! 		//note: things go boom right now if bad method name passed
  		try {
  
***************
*** 88,94 ****
  				//		ANT stuff 
  				Project project = new Project();
- 				//project.fireBuildStarted();
  				project.init();
! 				project.addBuildListener(new ServletLogger());
  				File buildFile = new File(webservicesDir + "/build.xml");
  
--- 70,76 ----
  				//		ANT stuff 
  				Project project = new Project();
  				project.init();
! 				//this is a ton of debug code
! 				//project.addBuildListener(new ServletLogger());
  				File buildFile = new File(webservicesDir + "/build.xml");
  
***************
*** 106,109 ****
--- 88,92 ----
  				//end ant stuff	
  			}
+ 			
  			Class bindingClass = null;
  			Class locatorClass = null;
***************
*** 126,131 ****
  			String bindingFileName = "";
  
! 			for (int i = 0; i < fileList.length; ++i) {
! 				//System.out.println(fileList[i]);
  				String temp = fileList[i];
  				if (temp.indexOf(".class") == -1)
--- 109,115 ----
  			String bindingFileName = "";
  
! 			for (int i = 0; i < fileList.length; ++i)
! 			 {
! 		
  				String temp = fileList[i];
  				if (temp.indexOf(".class") == -1)
***************
*** 193,198 ****
  			Constructor pc = null;
  			Class[] argTypes2 = requestedMethod.getParameterTypes();
! 			System.out.println("Method Name:" + requestedMethod.getName());
! 			System.out.println(
  				"REQUESTED METHOD NUM PARMS:" + argTypes2.length);
  
--- 177,182 ----
  			Constructor pc = null;
  			Class[] argTypes2 = requestedMethod.getParameterTypes();
! 			log.debug("Method Name:" + requestedMethod.getName());
! 			log.debug(
  				"REQUESTED METHOD NUM PARMS:" + argTypes2.length);
  
***************
*** 234,238 ****
  		return r;
  	}
! 	protected static Object convertHashMapToBean(HashMap data, Class beanClass)
  		throws
  			InstantiationException,
--- 218,222 ----
  		return r;
  	}
! 	protected  Object convertHashMapToBean(HashMap data, Class beanClass)
  		throws
  			InstantiationException,
***************
*** 288,292 ****
  		StringBuffer b = new StringBuffer(s.length());
  
! 		for (int i = 0; i < s.length(); i++) {
  			if (s.charAt(i) != c)
  				b.append(s.charAt(i));
--- 272,276 ----
  		StringBuffer b = new StringBuffer(s.length());
  
! 		for (int i=0;i<s.length();++i) {
  			if (s.charAt(i) != c)
  				b.append(s.charAt(i));




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.