Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Hessian and RPC not working together

Avatar

Level 1
Using remote procedure calls(RPC) with cairgnorm framework.
I'm trying to add hessian remote service to the existing rpc calls.
Either hessian is working or RPC is working. Together both are not
working. Here's my service.mxml . PLease help me...



<?xml version="1.0" encoding="utf-8"?>

<ServiceLocator xmlns="com.adobe.cairngorm.business.*"
xmlns:mx="
http://www.adobe.com/2006/mxml">



<mx:Script>

<![CDATA[

import com.project.model.ApplicationModel;

import mx.rpc.events.FaultEvent;

import mx.rpc.events.ResultEvent;

import mx.rpc.events.InvokeEvent;

import mx.utils.ObjectUtil;

import com.project.utils.DebugUtil;



[Bindable]

public var xpmEndpoint:String;

[Bindable]

public var webEndpoint:String;



private function invoke(event:InvokeEvent):void

{

DebugUtil.remoteObjectInvocation(event);

}



private function result(event:ResultEvent):void

{

//DebugUtil.remoteObjectResult(event)

}



private function fault(event:FaultEvent):void

{

//DebugUtil.remoteObjectFault(event);

}

]]>

</mx:Script>





<hessian:HessianService xmlns:hessian="hessian.mxml.*"
id="service" destination="hello"/>



<mx:RemoteObject

id="productSearchService"

showBusyCursor="true"

destination="productSearch"

invoke="invoke(event)"

result="result(event)"

fault="fault(event)"

endpoint="{this.xpmEndpoint}"/>



<mx:RemoteObject id="productSetService"

destination="productSet"

showBusyCursor="true"

invoke="invoke(event)"

result="result(event)"

fault="fault(event)"

endpoint="{this.xpmEndpoint}"/>







<mx:RemoteObject

id="contractService"

showBusyCursor="true"

destination="contract"

invoke="invoke(event)"

result="result(event)"

fault="fault(event)"

endpoint="{this.xpmEndpoint}"/>



<mx:RemoteObject

id="vendorService"

showBusyCursor="true"

destination="graniteXVS"

invoke="invoke(event)"

result="result(event)"

fault="fault(event)"

endpoint="{this.xpmEndpoint}"/>



<mx:RemoteObject

id="graniteXPMService"

showBusyCursor="true"

destination="graniteXPM"

invoke="invoke(event)"

result="result(event)"

fault="fault(event)"

endpoint="{this.xpmEndpoint}"/>



<mx:RemoteObject

id="customerService"

showBusyCursor="true"

destination="customerMaster"

invoke="invoke(event)"

result="result(event)"

fault="fault(event)"

endpoint="{this.webEndpoint}"/>







</ServiceLocator>

0 Replies

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now