cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve IP from end terminal

Former Member
0 Kudos

Hi everyone,

i need to retrieve the IP of the terminal in which a purchase order is emitted. The adapter used is HTTP. I need to manipulate the IP in XI to be able to create a sort of ID.

Any idea of how to achieve it?

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Eduardo,

not in the standard. You can write a Java servlet, which is catching the request , reads the IP and add it to the payload and routing the result to the http adapter. You can use the J2EE engine of WAS and deploy the servlet to it.

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

and how can i put the servlet in XI?,

Thanks

Former Member
0 Kudos

If it is file adapter, u can go for a shell script with particular OS commands.

-Naveen

udo_martens
Active Contributor
0 Kudos

Hi Eduardo,

you can use the NWDS to deploy an servlet to the J2EE engine.

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

i can develop a servlet, but how can i invoke it from the XI mapping tool (or wherever)?.

how should be scenario of this?

thanks.

Former Member
0 Kudos

my scenario is the next (maybe it is helpful)

-


http -


RFCadapt -


ARIVA


>

XI


>

R3

-


-


-


Ariva is a third party application.

udo_martens
Active Contributor
0 Kudos

Hi Eduardo,

you invoke the servlet via http. The servlet itself invokes the http adapter of XI. The servlet has to catch the IP and merge the IP with a string operation into the XML stream, to avoid a lot work parsing the XML. May be as attribute of the root element.

Regards,

Udo

Answers (0)