on 02-20-2008 4:40 PM
Hi,
How can I access a value mapping defined in ID from a Java Server Proxy?
I've tried to that with the following code:
import com.sap.aii.mapping.value.api.*;
public class MIGetDocsIn_PortTypeImpl extends com.sap.aii.proxy.xiruntime.core.AbstractProxy implements MIGetDocsIn_PortType {
public DTGetDocsResponse_Type mIGetDocsIn(DTGetDocsRequest_Type mTGetDocsRequest)
throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException{
String senderAgency = "Source";
String senderScheme = "Source1";
String receiverAgency = "Target";
String receiverScheme = "Target1";
IFIdentifier src = XIVMFactory.newIdentifier(senderAgency, senderScheme);
IFIdentifier dst = XIVMFactory.newIdentifier(receiverAgency , receiverScheme);
try {
String res = XIVMService.executeMapping(src, dst, "var1");
} catch (ValueMappingException e) {}
Do I need to add package com.sap.aii.mapping.value.api in application-j2ee-engine.xml?? What is the reference target for that package?
Thanks,
Pedro Leal
Hi,
I'm getting the following error: "JPR could not process the message. Reason: Error invoking method mIGetDocsIn of proxy bean $Proxy371: com.sap.aii.mapping.value.api.XIVMFactory".
Is this possible??
Need help!!
Thanks,
Pedro Leal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It seems is not possible to access value mapping in java proxy.
Alternatively can someone give me some advices about the best to way to read configuration parameters in a java proxy server scenario?
Properties file is a solution. Is there any other way to achieve similar functionality?
Thanks,
Pedro Leal
User | Count |
---|---|
74 | |
26 | |
10 | |
10 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.