Skip to Content
avatar image
Former Member

Parameter for Java Mapping

Hi!

Is it possible to pass individual parameters via XI to a Java Mapping so they can be accessed in its service()-method?

Regards,

Thomas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 13, 2006 at 10:31 AM

    Thomas, we normaly call the java mapping using the interface mapping and the IM editor takes a Message only as a parameter. i doubt we can pass individual parameters to Java Mapping. U mean the "execute" method rite !! since we implement streamtransformation interface , we have only an InputStream object to work with.

    Regards

    Saravana

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2006 at 10:31 AM

    Are you talking about the <b>execute</b> method of Java mapping ???

    In that case there are only two parameters passed to this which are

    public void execute(InputStream iStream, OutputStream oStream)

    This is the entry point into your Java code and InputStream is the stream to your XML document and OutputStream is where you write your output to..so unfortunately no more parameters to the execute method 😔

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2006 at 10:40 AM

    Hi,

    As far as i know there is no method by name service in java mapping. for more information on java mapping go thru the link.

    http://help.sap.com/saphelp_nw2004s/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm

    Regards

    Vishal Kumar

    Add comment
    10|10000 characters needed characters exceeded