cancel
Showing results for 
Search instead for 
Did you mean: 

JPR - Access Value Mapping

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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