cancel
Showing results for 
Search instead for 
Did you mean: 

Get MessageId from Java Proxy Server

Former Member
0 Kudos

Hello,

How can i get messageId from implementation class?

Can anyone give me an example of how to use MessageSpecifier properly.

This is my code:


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{

MIGetDocsIn_PortTypeBean bean = new MIGetDocsIn_PortTypeBean();

MessageSpecifier msg = (MessageSpecifier) bean.$messageSpecifier();

String msgId = String.valueOf(msg.getMessageID());

When t try to see the value of string msgId i get null.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Problem solved.

I can directly access an instance variable messageSpecifier in the implementation class.



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 msgId =  messageSpecifier.getMessageID().toString();

Thanks anyway.

Pedro Leal

Edited by: Pedro Leal on Feb 19, 2008 7:37 PM