Hello All,
I am trying to use AOP for my current assignment by following the quick start expamples from the coldpsring site. I am trying to intercept method calls made to remote proxies via webservices from Flex. However the method calls seems not be intercepted. I am not getting any error I am getting the result back whatever the undelying method should return. This is how a part of my coldpsring config file looks. I am not sure whether I am missing anything here. Any pointers are deeply appreciated.
<bean id="ABCService" class="com.model.pos.ABCService" parent="abstractService">
<!-- List Of Other bean entries this bean is dependent on -->
</bean>
<cfcomponent output="false" extends="coldspring.aop.MethodInterceptor">
<cffunction name="init" returntype="any" output="false" access="public" hint="Constructor">
<cfreturn this />
</cffunction>
<cffunction name="invokeMethod" returntype="any" access="public" output="false" hint="">
<cfargument name="methodInvocation" type="coldspring.aop.MethodInvocation" required="true" hint="" />
<cfset var local = StructNew() />
<!--- Capture the arguments and method name being invoked. --->
<cfset local.logData = StructNew() />
<cfset local.logData.args = StructCopy(arguments.methodInvocation.getArguments()) />
<cfset local.logData.method = arguments.methodInvocation.getMethod().getMethodName() />
<cfset request.logData = local.logData />
<!--- Proceed with the method call to the underlying CFC. --->
<cfset local.result = arguments.methodInvocation.proceed() />
<!--- Return the result of the method call. --->
<cfreturn local.result />
</cffunction>
</cfcomponent>
The Test File Code.
ABCWS = createObject("webservice",http://infospherix.dev/webservices/com/webservices/ABCWebServices.cfc?wsdl);
response = ABCWS.getTransactions(argumentsinXMLFormat);
--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To post to this group, send email to coldspri...@googlegroups.com.
To unsubscribe from this group, send email to coldspring-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coldspring-users?hl=en.