Debugging Java Client Proxy - XI Interface
Hi ,
I am trying out Oubound Proxy client to an XI message interface through EJB client lookup from JSP.
I would like to debug my java bean and jsp. I added system.out.println statements in my code, it is not coming out in console_logs of J2EE Server.. Can any one shed some light on what could be wrong. Or is there any other good way[like logger api's] to do debug.
Thanks,
Ganesh Ram
Any comments?
Ganesh Ram
Similar Messages
-
SOAP --XI ---RFC or Java Client Proxy
Hello Gurus,
Need your adivce for a scenario in XI
Scenario --- To implement XI with SAP SCEM(Supply Chain Event Management).
Client is sending data from Web Portal (JSP Page) and wants to integrate with R/3.
(Request from client and Response from R/3 shown again at browser )
Web Portal (JSP Page) is on server A and XI on server B
Queries ---
1. Can I use Java Client Proxy Approach --- proxy --- xi -- rfc approach
If Web Portal (JSP page) is working in server A and XI in server B then can I call xi server from jsp page by passing xi server credential (username,password,bus service) and using sync Interface I can show result back to browser.
2. For SOAP Approach -- SOAP -- XI --- RFC approach
Suppose I need to send two parameters from my Web Portal (JSP page) to xi to R/3 and it will return some result.
Concept of Webservice --- any application (like BAPI ) exposed.
a. Pls tell me all the steps required for IR and ID
b.How can I invoke that generated webservice from my jsp page --- so that my request parameters values go to xi from my jsp page and to R/3 and then result from R/3 to xi and to my jsp page.
RegardsI think second approach is more appropriate ie. SOAP>XI>RFC
Some of the blogs you can refer:
/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
Sender SOAP adapter config: http://help.sap.com/saphelp_nw04s/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
Hope this helps,
Rgds,
Moorthy -
Error while deploying Java Client Proxy
Hi Experts,
I developed a java client proxy.Since i do not have access to visual administrator, i uploaded the ear file to a folder in the XI box and asked the basis folks to deploy it.
On trying to deploy it on to the server they got the following error.
Details:
========
1) Error loading archive
/usr/sap/XS1/put/R3Ear.ear
(server side name is: /usr/sap/XS1/put/R3Ear.ear)
com.sap.sdm.util.sduread.IllFormattedSduFileException: Error during attribute reading: received exception: invalid stored block lengths
What could be the reason for the error?Hi
recreate your ear file and try to redeploy it.
it could be a zipping problem
Regards
Vishnu -
How to use Http test Client for Java Client Proxy Scenario
Hi,
I build a scenario using Java Client Proxy where JSP as my FrontHand.
Can I know that whether i can use Http Test Client in place of JSP for sending data and getting response back. If yes than how can i implement this ?
Regards,
AbhiHi,
with Http Test Client you post your messages
directly to the Integration Engine (not using adapter framework)
so you can use Http Test Client to simulate any message
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Why java Client Proxy is used?
Hi all!
I am using sudhir porumamill's scenario available at the following links:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
and
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
I am not getting which proxy he is referring to? whether it is java client proxy/server proxy?
What to be given in SLD for client proxy and server proxy as well?
ThanksHi,
Only the database name can be specified in JDBC communication channel. The table should given in receiver data type in Integration Repository.
Refer these link for sql-xml data types to be followed for JDBC scenario.
http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Regards,
Uma -
Hello Folks,
I am trying to implement the java client proxies for one of my requirements...
i have used the guides provided for the java client proxies in SDN and trying to implemented the same (Mine is asynchronous..)
so far I have been able to deploy the EJB into the PI system and able to acces the JSP pages...when i submit the request using jsps..i am not able to see the entry in PI Moni.....and also unable to pinpoint the error ...
i have used the user role which consists of J2ee login crendetials also...
My requirement is JSP->Java->Ejbs->XI->DB... like shown in java proxies guide by sudhir......
I am not able to see any logs related to errors in defaulttrace and applications log files also...
Could someone help me in this regard...
Regards
RajeshProvide a JSP error page and write the exceptions of the java proxy call to that screen.
-
Hi All,
I am working on java client proxies.
Can anybody give me step by step approach for creating application java class using proxy and bean classes generated from my outbound interfaces?
I want to create EJB module project and EAR project,I have created it using NWDS04,but I am getting error as it is not finding com.sap.aii.proxy.xiruntime.core.AbstractProxy this class.
Please help me to reolve this problem.Hi,
The EJB code that you write for creating client proxies uses many of the inbuilt JAVA classes...so it is dependent on those classes...you need to define these dependencies using an xml file ....... 'application-j2ee-engine.xml'.
you can find more information on this at
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab
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-e7eb8903501d -
Jws source file not found (Java client proxy)
Hi,
I created a web service in Workshop, and generated a Java proxy from it using the test console. I then wrote a stand-alone Java client to invoke an operation on the web service based on the workshop examples. I'm able to first get the service proxy fine.
MyService_Impl proxy = new MyService_Impl("http://localhost:7001/MyProcesses/MyService.jws?WSDL=");
Then, the following line fails.
MyServiceSoap soapProxy = proxy.getMyServiceSoap();
Error is a SoapFaultException with message "Source file MyService.jws not found". I don't know where it's looking for the file to begin with. Is there a place where I can control that?
When I look at the WSDL in the workshop test browser, the soap:address location URL is different from the actual URL in the test browser address bar.
I'm new to this stuff. Any ideas will help.
Thankshello folks,
I have Windows XP home Firefox v1.0.6.
removed old java in Add/Remove programs.
cleared the "Temporary Internet Files" folder that contained C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5.
tried to load jre-1_5_0_04-windows-i586-p-iftw.exe for the third time, and the install still hangs up.
J2SE Runtime Environment 5.0 Update Installer Information : Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\2XFKL4VY\je150000[1].cab. Verify that the file exists and that you can access it.
and,
Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\EEIDPHGA\jp150040[1].cab. Verify that the file exists and that you can access it.
here's the thing, I cannot surf to "Content.IE5" folder in my "Local Settings\Temporary Internet Files" folder, but I can plug in the directory in the address bar of Windows Explorer & see the "Content.IE5" folder.
I do not see "je150000[1].cab" or "je150000[1].cab" in there.
Am I using the wrong program to fresh install Java for Firefox in XP?
Is there something wrong with my operating system?
monitoring this thread.....
thanx. -
Hi All,
My scenario is JavaClient Proxy -
XI----
>RFC.
Here i generated JavaProxies for my Message interface and i imported that zip file into NWDS for my EjbModule project.
and also i added Jar files in libraries by saying add External Jars.
Here r the Jars:
aii_proxy_xirt.jar
aii_msg_runtime.jar
aii_utilxi_misc.jar
guidgenerator.jar
even i am getting an error saying com.sap can not be resolved or not a type
Any inputs
Is there any other jars i need to add ??
How to resolve this error.
Thanks,
Kalyan.Hi Kalyan,
I think you have not set the classpath corectly.
For this :
1. Get the file aii_map_api.jar from XI server (if you have not done this already).
2. Create a new folder in the Java project you have created for mapping program. Name it as "lib"(any name would do..I just try to follow widely used naming conventions).
3.Copy the jar file aii_map_api.jar to this folder.(You can copy it in explorer and go to NWDS, select the lib folder and do a Ctrl + V).
4. Right click on the java project, select properties. Select Java build path. Go to Libraries tab. Click on the button "Add jars". In the dialog that pops up select your java project> lib> aii_map_api.jar.
5. Click apply / OK.
Rewards,
Vinod. -
Set username/password using in Java client proxy for a JAX-WS webservice
Hi, i am invoking one deployed EBS webservice , while trying to run that client program me
i am getting error WSSE security, where can i set Uname pwd , through java program me
++Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Missing <wsse:Security> in SOAP Header
Thanks Regards
Raj
Edited by: 952094 on Jan 23, 2013 1:42 PMimport java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.xml.ws.BindingProvider;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import weblogic.xml.crypto.wss.WSSecurityContext;
import weblogic.xml.crypto.wss.provider.CredentialProvider;
you can add username for weblogic client using
// Create list of credential providers
List credProviders = new ArrayList();
// Create user name token provider
ClientUNTCredentialProvider unt = new ClientUNTCredentialProvider("weblogic", "weblogic");
credProviders.add(unt);
credProviders.add(cp);
// Finally add the credential providers to the request context
Map<string, object=""> requestContext = ((BindingProvider)brokerService).getRequestContext();
requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders); -
hi
my scenario is JSP => SOAP => XI => RFC => SAP.
i developed all the things which required ,and this scenario is working fine, when i m using XMLSPY Tools and create / send SOAP Request through this tools i will got response properly,
but i want to create SOAP request in JAva and used in Java / JSP,
please, Any one tell me how to do this ?
B'se when i m creating java client i will got Exception, or Authentication level problem,
please any one knwon solution please help me,
regards
BhaumikSteps to create Java client proxy :
1. Right click on your Sender Message Interface and select "Java Proxy Generation".
2. This will generate the EJB skeleton code which you need to import in NDS and then call the EJB code from your JSP / Java code. Note that calling from JSP would be an easy task as you they both could be a part of the same Enterprise app. but creating standalone java client code could be a tricky situation.
These 2 PDFs should help you.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://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 1 By Sudhir Porumamilla</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d">Java Proxies and SAP XI - The Inside Story, Part 2 By Sudhir Porumamilla</a>
Regards,
Amol -
Hi
How to debug the client proxy ?? this particular question is available on forum. But for that everybody replied with procedure for server proxy. All of them suggested the below links which are for server proxy. But atleast this time plz somebody explain me how we do debugging of client proxy ??
/people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d4900e81a30c
thanks
kumarHi,
1. is it an SAP proxy or customer dev ?
- if customer dev you just need to put a break point in your report
(or FM ) from which you invoke it... that's all
so it doesn't make sense to describe it
- if SAP proxy than you need to find the place
where SAP program calls send_asynchnous method
and put a break point before it and that's all
no special things to do just put a break point and you have client
proxy debugging
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Hi
in the new jdev 11g r1 I get this exception
java.io.FileNotFoundException: \ade\aime_xdk_407339\oracle\xdk\lib\xmlparserv2.jar
in debugging a ws proxy client . when I run it normally it works perfectly .
the old 11g jdev does it also fine
thanks EdwinHi,
I have the exact same problem!!!
Kind regards
Tage -
Missing " Create Sample Java Client" from the context menu when debugging
Jdev 11.1.1.3 on Windows 7 x64
I have created an EJB - Session Bean from the ADF components and have put some logic into it with one public method.
I have exposed the method in the local interface.
I start the integrated server in the debug mode
When I right-click there is no option to do the sample client.
Am I missing a plug-in - like JUnit or something?
From the manual:
The integrated Oracle WebLogic Server runs within JDeveloper. You can run and test EJBs quickly and easily using this server, and then deploy your EJBs with no changes to them. You do not need to create a deployment profile to use this server, nor do you have to initialize it.
To run a sample client on the integrated Oracle WebLogic Server: In the Application Navigator, right-click on an EJB and choose Run.
Notice in the Message pane that Oracle WebLogic Server has been launched. Right-click on an EJB and choose Create Sample Java Client from the context menu. The default choice is to create a client for the integrated Oracle WebLogic Server, so click OK.
The client is created and opens in the code editor. If your session bean serves as a facade over JPA entities, code is generated to instantiate the query methods. If you exposed methods on your bean, the generated client contains methods that can be uncommented to call them.
After your EJB has been successfully started from the Application Navigator, right-click on the sample client and choose Run.Shay,
Pretty much what I did exactly - except - since my apps are all using the local interface - I did not create the remote.
This may be an old habit - but generally it is not a good practice to do both - though this may have changed lately.
I have this app working and the EJBs are executing fine.
I used a testview and drug the method onto it - and was able to debug it that way - but still no create java client in the menu.
Is there any other place to find this other than the context menu? Then I can check to see if it is available.
I am using WLS 10.3 that ships with Jdev 11.1.1.3 (forgot that little bit) without any changes. -
How to call a text FTP proxy service from a Java client ?
Greetings,
I've configured a text FTP proxy service which downloads files from a FTP server. It pols a directory on the FTP server and, as soon as a file respecting a given pattern apears it is downloaded. I tested the service in the test console and by putting some test files onto the FTP server. Now, I need to be able to test it from a Java client. How may I do that ? I need to write a Java client to connect to the OSB and to tell to it to use the FTP proxy in order to download a given file, from a given location and to put it in a given location on the client machine. Many thanks in advance for any help. A sample would be great !
Kind regards,
NicolasOk, I understand. The crucial question here is "what is a caller that you refer to?"
Don't get me wrong, but the problem here is that you probably don't understand, what OSB is good for. OSB is an event-driven system. The event in your case is a new message in remote FTP server. You have to define what should happen when that event is fired. And that's all. You don't have to involve other client (or caller) for this case.
You should define your FTP proxy to retrieve all relevant files from FTP server and then you should route them based on their name/content/encoding/whatever to different consumers. You can also have many proxies if you want - one for each name. It's up to you. But you don't have any "callers" in either case.
Maybe you are looking for
-
Hi everyone, we are facing the below issue when trying to schedule a BI report. Error Details: +oracle.apps.xdo.servlet.scheduler.ProcessingException: Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.topli
-
If I buy an app that doesn't work like it is suppose to, can I get the $6.99 refunded back to my iTunes account ?
-
FM or program SD invoice from Archive
Hi All, I want to read the SD invoice from the archive in the program. We have option to read EDI_IDOC_GET_FROM_ARCHIVE for reading from Archive. I need same type of FM for reading SD invoices. Please suggest the possible options. Thanks in Advance.
-
Reg: Adding field names in table control
Hi I am new to table control ,instead of going with table control wizard i am proceeding with table control. I have added all the fields as per my requirement, i have added like matnr ,maktx. above these fields i would like to add material and materi
-
I want to play interactive games on pogo but need java to do it. My new iPad air isn't allowing me to download java can anyone help?