Server java proxy in PI 7.1
Hi ,
I am implementing Java server Proxy in PI 7.1. Got below files when generated java proxy from ESR. can you tell me in which file I have to write the code. Please share if you have sample code.
ActiveDirectoryListOIn_PortType.java
ActiveDirectoryListOIn_PortTypeBean.java
ActiveDirectoryListOIn_PortTypeHome.java
ActiveDirectoryListOIn_PortTypeLocal.java
ActiveDirectoryListOIn_PortTypeLocalHome.java
ActiveDirectoryListOIn_PortTypeRemote.java
DepartmentResponseType_Type.java
DepartmentType_Type.java
Thanks,
Madhu Pusala
Hi Bhasker,
That document for XI 3.0 or 7.0. We don't write the coode XXXBean.java. we have to impliment the code in ActiveDirectoryListOIn_PortTypeImpl.template. But this file not created when I genarate the java proxy from ESR.
Pelase let me know if you find anything.
Thanks,
Madhu Pusala
Similar Messages
-
Weblogic.jar in server java proxy
Hi,
weblogic.jar is so big size, when i have I/F item that's number of 30 for server java proxy. i have to deploy individual ear file included individual weblogic.jar,
like common jar, do i have to deploy it with ear every time?
is there a way?
thanks
venjamin
null> Hi,
>
> you mean, like external driver setting with
> aii_af_jmsproviderlib.sda,
>
> <jars>
> <jar-name>ojdbc14.jar</jar-name>
> <jar-name>weblogic.jar</jar-name>
> /jars>
>
> and then deploy it?
Yes.
> i do not need to add weblogic.jar into InboundEjb for server java proxy in
> order to call target ejb?
I do not understand this sentence.
What is your scenario?
Stefan -
Call Client Java Proxy from Server Java Proxy
Hi Gurus!!
I'm trying to call a Client Java Proxy from a Server Java Proxy.
Is possible to do this? I think must be possible.
I have called this Client Java Proxy from another application, and run ok.
I have tried to call it following the Guide to call Java Client Proxies:
es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeHome queryOutHome = null;
es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeRemote queryOutRemote = null;
try {
// Get naming context
Properties p = new Properties();
p.put(
Context.INITIAL_CONTEXT_FACTORY,
"com.sap.engine.services.jndi.InitialContextFactoryImpl");
p.put(Context.PROVIDER_URL, "myurl:50104");
p.put(Context.SECURITY_PRINCIPAL, "MMIGUEZ");
p.put(Context.SECURITY_CREDENTIALS, mypasswrod);
Context ctx = new InitialContext(p);
Object ref = ctx.lookup("RobotOut");
// Look up jndi name of proxy bean
try {
queryOutHome =
(MIRobotOut_PortTypeHome) PortableRemoteObject.narrow(
ref,
MIRobotOut_PortTypeHome.class);
} catch (Exception e) {
throw new RuntimeException(e + "1");
// Get Remote interface
queryOutRemote = queryOutHome.create();
} catch (Exception e) {
throw new RuntimeException(e + "2");
but I get this error
"com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method mIRobotIn of proxy bean $Proxy351: es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeHome: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method mIRobotIn of proxy bean $Proxy351: es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeHome"
es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeHome is the corresponding PortTypeHome to the Client Java Proxy.
I have tried to call too calling directly from the server Java Proxy to the method correcponding to the Client Java Proxy. The error I get is:
"com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method mIRobotIn of proxy bean $Proxy351: es/navantia/xi/mm/dispositivosRobotizadosKasto/DTRobot_Type: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method mIRobotIn of proxy bean $Proxy351: es/navantia/xi/mm/dispositivosRobotizadosKasto/DTRobot_Type"
Tha call to the client is:
es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortType clase = null;
es.navantia.xi.mm.dispositivosRobotizadosKasto.DTRobot_Type client_req = null;
es.navantia.xi.mm.dispositivosRobotizadosKasto.DTRobotResponse_Type client_res = null;
client_res = clase.mIRobotOut(client_req);
Please, any help will be useful.
Thanks and regards,
Manuel Míguez.Hi,
Now I get another error message:
com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method mIRobotIn of proxy bean $Proxy351: es/navantia/xi/mm/dispositivosRobotizadosKasto/MITextoOut_PortTypeRemote: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method mIRobotIn of proxy bean $Proxy351: es/navantia/xi/mm/dispositivosRobotizadosKasto/MITextoOut_PortTypeRemote
Now, my source is:
MITextoOut_PortTypeHome queryOutHome = null;
MITextoOut_PortTypeRemote queryOutRemote = null;
try {
// Get naming context
Context ctx = new InitialContext();
// Look up the EJB name in the environment
Object ref = ctx.lookup("java:comp/env/ejb/TextoOut");
// Object ref = ctx.lookup("java:comp/env/ejb/MITextoOut_PortTypeBean");
// Cast to Home interface
queryOutHome = (MITextoOut_PortTypeHome)
PortableRemoteObject.narrow(ref,
MITextoOut_PortTypeHome.class);
// Get Remote interface
queryOutRemote = queryOutHome.create();
} catch (Exception e) {
System.out.println("RemoteException occurred: "+e.getMessage());
e.printStackTrace();
//return;
try {
queryOutRemote.$messageSpecifier();
} catch (RemoteException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
DTTexto_Type Texto_type = new DTTexto_Type();
Texto_type.setTexto(req_texto);
DTTextoResponse_Type Texto_response = new DTTextoResponse_Type();
try {
Texto_response = queryOutRemote.mITextoOut(Texto_type);
} catch (SystemFaultException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (ApplicationFaultException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
I have tryed removing queryOutRemote.$messageSpecifier() and I get the error:
com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method mIRobotIn of proxy bean $Proxy351: es/navantia/xi/mm/dispositivosRobotizadosKasto/DTTexto_Type: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method mIRobotIn of proxy bean $Proxy351: es/navantia/xi/mm/dispositivosRobotizadosKasto/DTTexto_Type
Somebody knows what could be the cause of these errors?
Thanks and regards,
Manuel. -
Problem with Server Java Proxy
I have got an error: Delivery of the message to the application using connection JPR failed, due to: RecoverableException.
Could you help me what is wrong with JPR?
RWB monitoring doesn't show errors
defaultTrace.trc - no errors
Messafing System monitor
Error Category: XI_J2EE_MESSAGING_SYSTEM
Error Code: INBOUND_DELIVERY_ERROR
I have deployed Java proxy on the same server (as XI)Hi Sergey,
These may help you..
User exit or Badi for VL31N (create inbound delivery)
Idoc WHSORD for inbound delivery
cheers,
Prashanth -
Deploy XI java Proxy inside JBoss application server
Hello,
Can I deploy XI java Proxy inside JBoss application server
Appreciate you response.
ThanksHi,
<b>Yes</b>
You can deploy your Java Proxy inside JBoss Server (in any Application server). But this will be possible only for Client Java Proxy and not for Server Java Proxy.
I have succesfully completed those scenarios.
After generating Client Java proxy, create EJB application with generated Java classes for proxies and deploy it in JBoss.
Then you can access that EJB to pass inputs either in standalone application or some JSP.
Regards,
Uma -
JAVA Proxy :: Exception in ejb-jar.xml in NWDS
Hi All
I am getting exception while Importing (Inbound) JAVA Proxy ZIP file in NWDS, ejb-jar.xml shows the red cross & when I double click on it got following error -->
The content of element type "ejb-jar" is incomplete, it must match "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,relationships?,assembly-descriptor?,ejb-client-jar?)".
I already add the following JAR files in class-path -->
aii_proxy_xirt.jar
aii_msg_runtime.jar
aii_utilxi_misc.jar
guidgenerator.jar
One different thing I also notice is that after adding these JAR files in classpath I am not getting my Inbound Interface BEAN under EJB candidates.
Also nothing is visible under ejbModule usually it shows 4 JAVA files & one template file.
As a solution I tried searching in google & forum for above exception, most threads suggest to add the Beans to xml files but I am not getting my interface Bean under EJB candidates.
I also tried reloading all the external JAR files again from System but still same issue.
Also within the same NWDS one another version of EJB is working fine but I worked on it 6months back, I tried copy its contents to ejb-jar.xml source code but then also nothing happens.
I am using NWDS Version: 7.0.10
Can you pls. suggest & let me know what further information I can provide from my side which can help you to investigate it.
Regards
Lalithi,
Your are using server java proxy.
You can use some other jar files apart from what you are using,.
ejb20.jar
exception.jar
sapj2eeclient.jar
and after importing your zip file (create a ejb project first ,then add the zar files and then click on the ejbModule and then import your zip file ) close and open your project.
Do not directly click on ejb-jar.xml.Click on ejbModule and import the .zip file.
then save your .template file in ejbModule as a .java project.
then there should not be any error.
you can refer
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23702
regards,
ujjwal kumar -
Hello,
Can I deploy XI java Proxy inside JBoss application server
Appreciate you response.
ThanksHi,
<b>Yes</b>
You can deploy your Java Proxy inside JBoss Server (in any Application server). But this will be possible only for Client Java Proxy and not for Server Java Proxy.
I have succesfully completed those scenarios.
After generating Client Java proxy, create EJB application with generated Java classes for proxies and deploy it in JBoss.
Then you can access that EJB to pass inputs either in standalone application or some JSP.
Regards,
Uma -
Give me description about JAVA Proxy Runtime and JAVA Proxy Server
Give me description about JAVA Proxy Runtime and JAVA Proxy Server with some examples.
Hi,
Java proxy runtime :
Using the Java proxy runtime you can receive messages or send messages to the Integration Server.
This will help you
http://help.sap.com/saphelp_nw04/helpdata/en/64/7e5e3c754e476ee10000000a11405a/frameset.htm
Java proxy server :
The connection to the Integration Server by using the Java proxy runtime.
This will help you
http://help.sap.com/saphelp_nw04/helpdata/en/87/5305adc23540b8ac7bce08dbe96bd5/frameset.htm
Regards
Agasthuri Doss -
Sync Java Proxy Server response in XML
Hi !
We've this scenario: File1 <-> XI <-> Java Proxy <-> File2
Using a BPM, we made a Async/Sync workflow. It works ok. It uses a SYNC Java Proxy Server.
The problem is that inside the java proxy, we query an http source that returns already XML formated data. We need this data to be mapped from the java proxy response message type to the File2 message type.
We know that we can parse the XML data inside the java proxy and fill the response message type structures (creating items, and array items for nested records), or directly code the mapping here.
But, is there any alternative to pass the received XML from the HTTP directly to XI, and map that XML structure with the File2 message type using graphical mapping ? instead of programming the xml parsing and creating the response structure?
If we create a message type for the response of the java proxy, as 1 field that contains the whole XML code, then we would not map it....Is there any way to complete or to add something to the received XML code, to convert it to the XI message format..so XI could interpret it as a true XI message and map it transparently via graphical mapping?
Thanks,
MatiasHi Akshay !
That's exactly what I don't know how to do it.
Inside the java proxy function I have a string variable, let's call it xmlResponse, that contains:
<customer>
<name>Matias</name>
<country>China</country>
</customer>
I also have a message type created in XI (let's call it MT_Response), that has the same fields as the above message structure. And my java proxy function is declared something like this:
public MT_Response.Type myFunction(MT_Request.Type myRequest) {
String xmlResponse="";
// http connection code goes here..
xmlResponse = httpConnection.getResponse();
return ??????? what ????
I don't want to parse the xmlResponse variable in order to fill the MT_Response structure. I need a more direct way, because the content of xmlResponse is already XML !
Thanks. -
Open source Java proxy server?!
Hi,
I want to use a java proxy server in my application.Can someone suggest me some popular java proxy server with free source code? Also, the proxy should log URL details that the user navigates to.
Any help is greatly appreciated.
Thanks
AparnaHi michael,
In fact i have downloaded the proxy but running into problems while using it.I am using it on windows platform and when i give some URL in the browser, the request is taken by our RabbIT but after that the browser is asking me for the authentication for a number of times and then show me some error.Why is RabbIT asking me for authentication though i am specifying it in the configuration file?
Any help is appreciated.
Aparna -
Synchronous Java Proxy Server template - filling reponse message elements
Hi !
I'm writing a java proxy server for a synchronous interface. I'm somehow new in java...and I don't know how should I create elements for my response message inside the java method used to process the request message.
The response message format is something like this:
<field1>abc</field1>
<field2>
....<field2a>
........<fields2a1>
........</fields2a1>
....</field2a>
....<field2a>
....</field2a>
</field2>
according to the type "DT_Output_Type" type of the public class MyMethod defined in the java template generated by XI repository..
I think I should do something like this:
DT_Output_Type response = new DT_Output_Type();
DT_Output_Type.field2_List field2values = new DT_Output_Type.field2_List();
field2values.setfield2a(0,"1234");
response.setfield1 = "abc";
response.setfield2(field2values);
return response;
But I receive "Error invoking method". If I comment out the code where I assign values to sub-elements, everything works ok.
Thanks !
MatiasHi Matias,
>><i>DT_Output_Type.field2_List field2values = new DT_Output_Type.field2_List();</i>
This will create instance for field2 only.
Before setting field2a using <i>field2values.setfield2a(0,"1234");</i> you must creat instance of field2a and also for field2a1.
I guess field2a will be an array.
so the order of creating instance and setting values can be ...
1. create instance of field2
2. create instance of field2a array
3. create instance of first array element of field2a
4. create instance of field2a1
5. set value for field2a1
6. set field2a1 in first array element of field2a
repeat steps 3-6 for next elements of field2a
7. set field2a array object (created in step 2) in field2
8. response.setfield2(field2values);
Also,
as mentioned by Amol, set value for filed1 should be
response.setfield1("abc");
Regards,
Uma -
Error when deploy Java Proxy Server EAR to PI
We are trying to deploy our Java Proxy Server EAR to PI using Visual Administrator. However, it gives the following error:
Deploy of the ear has errors :
java.rmi.RemoteException: Cannot deploy application sap.com/TestBatch
Reason: Errors while compiling:
.... .java:91 illegal escape character
if (method.equals("U0024descriptor")) { ....
We have tried to deploy the same EAR to another PI system and it works fine. As a result, we think we might have missed something when installing or configuring this PI but don't have a clue where to start. We have also tried deploying using SDM but also didn't succeed.Hi Pikad !
I understand that it the very same EAR deployed with no hassle in another PI, here it should work ok, but I think you should check the backslash you are using. If you need to use the backslash character, you must use ("
U0024descriptor") or change the U to \u0024 for the dollar sign.
Check:
Regards,
Matias. -
Using a java proxy with XI to execute a Script located in external server
HI
I have recived help from here about this. But i don´t know how to work with java proxy. Is someone there who can help me in it.
Many thanks in advance.
NoeliaHi Noelia,
You can have 2 types of Java proxies viz. client(putting data into xi pipeline) & server (xi pipeline sends request to these proxies.)
From system point of view, the requirements vary in case of these two. for server proxies you can have a webas java business system and associated technical system in sld.in case of client proxies, refer SAP note #809420.
The basic difference between ABAP proxies and Java proxies is ABAP proxies reside on the perticular application system(CRM or R/3) but java proxies reside on SAP Web AS J2EE stack of your XI server.
Just search SDN pointers on Java proxy developement and you will get good pointers. There is one How-to guide on service marketplace by the name "HowToWorkWithJavaProxies.pdf".
Regarding your dev environment, you can always make use of NWDS, you need to be very much familier with EJB concepts and deployment. Check help.sap.com for more details.
Java Proxies and SAP XI - The Inside Story, Part 1
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
Java Proxies and SAP XI - The Inside Story, Part II
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
SAP XI 1.0 Configuring your PC or Laptop as a Java Receiving System
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5b19b90-0201-0010-9bb0-81c235713d8d
Also go through these links:
/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
/people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501
http://help.sap.com/saphelp_nw2004s/helpdata/en/97/7d5e3c754e476ee10000000a11405a/frameset.htm
Here you can download code samples for inbound and outbound Java Proxies which you can use together with the Flight Booking Scenario.
http://de.geocities.com/stefan_grube/JavaProxyExample.zip
I hope it helps........
Regards,
Abhy -
TCP/IP Server Socket using Java Proxy (Sender) ?
Hi,
I have requirement to listen certain port for third party POS system using TCP/IP Socket. Since there is no standard SAP TCP/IP Socket Adapter. I am planning to develop using Sender Java Proxy.
Please advise whether this approach is workable ? or is there any related blog / forum discuss about Socket Server.
This blog is only for socket client /people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi
Thank You and Best Regards
FernandWhen you want to have minimal effort, you can create a standalone Java program which listens on a port and transforms the incoming tcp/ip stream to an HTTP message, which you can send to SAP PI.
With more effort you can create an TCP/IP adapter by your own, according to JCA architecture.
A sender Java proxy does not have any runnable code itself, so the problem to create a listened is not solved. -
Hire a java expert for java proxy server.
hello,
i need a expert java programmer to hire for a simple java proxy project please contact me if you are intrested please leave me a message for more info.http://localhost:7021/sbresource?PROXY/MySample/MyJMSProxyService is the WSDL URL of the proxy.
Transport is is picked by the client from wsdl.
As far as the documentation of client generation is there, there is no change.
But meanwhile I have started working on sending the message directly to queue. JMSProxy is getting called. May be I will first run the proxy this way and then try troubleshooting the java client.
Regards
Ashwani
Maybe you are looking for
-
Quickly create 8 minute highest quality DVD with no menus from Motion 4?
What's the fastest/simplest way to create a high quality DVD without any menus that just plays from Motion 4? I set quality to best. I just tried using Share, and I can see one of my processors working at 100%, but I've got no indication of any progr
-
Issue while calling COBOL program from Component Interface in PeopleSoft HRMS 9.2
In HRMS 9.2, I am facing problem while calling the remote call function through component interface. In GP_ABS_EESS_REQ (Navigation Main Menu > Self Service > Time Reporting > Report Time > Absence Request) component, we have "Forecast Balance" butto
-
How do I get my Windows 7 network to see my iPad mini?
Can't get my mini to connect to my network via wifi. Want to stream content from my Win 7 laptop to mini using Plex Media Server. Thanks for any help anyone can offer. Stan
-
I am using a Mac OX10 with Mountain Lion. I saved a vital mailbox to an original document file but it turned out encrypted. How can I get it into normal format? why did this happen?
-
Hi Friends, "I am the FI consultant and I got one requiremet for the New GR55 report and following are the inputs...........But i don't have an idea that how to create a new report. Can any body help me please.............. "New GR55 Cost center repo