...
CampaignLoaded msg = new CampaignLoaded();
// marshaling a message using old kvbinding
OutboundDesktopFactory factory = new OutboundDesktopFactory();
KeyValueCollection kv = factory.marshal(msg);
// marshaling a message using new kvbinding
KeyValueCollection kv2 = OutboundDesktopBinding.marshal(msg);
...
Unmarshal an OCS desktop message from EventUserEvent:
...
EventUserEvent evt = (EventUserEvent) message;
KeyValueCollection kv = evt.getUserData());
// unmarshaling a kvlist using old kvbinding
Object obj = factory.unmarshal(kv);
if (obj instanceof CampaignLoaded){
...
}
// unmarshaling a kvlist using new kvbinding
Object obj2 = OutboundDesktopBinding.unmarshal(kv);
if (obj2 instanceof CampaignLoaded){
...
}
Exception | Description |
---|---|
OutboundDesktopBinding.KVBindingException |
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.