Excel as a Component in java application
Can anyone please tell me that how can I use an Excel worksheet as a COM object within Java application. please reply urgently
look up www.tidestone.com, they had an MS Excel lib you could get for java. It is not free and they also just sold to another company. See if they still offer it.
Similar Messages
-
Reading Excel sheet data in WebDynpro Java Application
Hi,
I need to read an excel file which is stored locally in my computer. How to use upload UI element (in WebDynpro Java) ?
After reading the excel file the data is displayed in table structure in WD Java application. After doing some calculations on click of generate excel button the table data is translated into excel sheet. How to achieve this?
Thanks,
AnmolHi,
Hope the below links helps...
Re: upload & download files
https://wiki.sdn.sap.com/wiki/display/WDJava/Uploading%20excel%20file%20using%20WebDynpro%20for%20Java
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0729285250DB01215080400348251106End?blog=/pub/wlg/6603
Thanks,
Prakash -
Excel Sheet Drag & Drop into Java Application Q
New to this forum. Have a question regarding the ability to drag and drop an Excel Sheet from an open Excel file onto a Java application. A friend has been able to drag and drop an Excel file from Windows Explorer onto a Java application and then read the sheets to select what you want and display/use the information in a particular sheet, I'd like to take it a step further to so that the user has the ability to be working in Excel and then drag and drop individual sheets into a Java application as they desire. Is this latter option possible?
Hi,
Hope the below links helps...
Re: upload & download files
https://wiki.sdn.sap.com/wiki/display/WDJava/Uploading%20excel%20file%20using%20WebDynpro%20for%20Java
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID0729285250DB01215080400348251106End?blog=/pub/wlg/6603
Thanks,
Prakash -
Java Application interface with MS Excel through DDE
We have a financial application written in JAVA and have requests from users that want to interface with the application. Meaning, They would like the Java application interface with Excel. For example, if you had a C++ application, you could create a DDE link in Excel that points to the C++ application and receive the data.
How could I do this with a Java Applictaion ? I was told that there was an application written that lets Java interface with Excel.
Any ideas or does anyone know ?JNI
-
Get version of Application / Software Component in Java
Hi guys,
im searching for a way to get the version / buildinformation of a software component in java.
I can get the version and buildinformation of a single project from the META-INF but not the buildinformation or versionnumber of the whole Application.
I there a way to get the actual buildinformation of a whole Application?
Thanks,
MartinHi David,
does this help:
[SCN NetWeaver Basis Architecture Space] HowTo Find Software Component Patch Levels In NWA NetWeaver Administrator
Kind regards,
Andy. -
Downloading excel in 2010 instead of 2003 through webdynpro java application
Hi Experts,
We have developed a webdynpro java application where we are downloading an excel file through linktourl UI element. we are not using any external jars to create that excel and we used simple java.io API. When we run the application and trying to download the excel, by default it is asking us to save in 2003 instead of 2010. I came to know that it depends on the version of MS office available / installed in SAP portal server. Can somebody provide SAP official links to support this?
Thanks in advance,
Regards,
PradeepHi Jun,
Thanks for your reply. We know by using Apache POI external jars we can achieve the functionality. But we don't want to do major changes to the existing application to just download the excel in 2010 format instead of 2003.
Is there any other way to do without using the external jars. I mean simple coding / configuration or any work around.
Regards,
Pradeep -
Can I use Java Reporting Component(JRC) in core Java application?
I want to use JRC in core Java application.
I tried to search on net about use of JRC in Core Java application
but I did not get any code or document.
I have a core Java application in which I want to use JRC.
So please help me about this.
Is there any link which help me about use of JRC in Core Java application?
I don't want to use web server or application server.How do you mean "control"?
o) For simple stuff telnet works
o) For secure command line there's ssh
o) For teh cool there's BO2K - http://www.bo2k.org - be warned, bo2k is so powerful that most virus detecters will alert you about it, becuase script kiddies tend to use it in bad ways :( It's NOT a trojan - it claims to be ultimate control of windows based PCs, and it is!
None are java though, but you could always make a java clone of them...
If you do want it to be java, try something with sockets sending messages to eachother, and the prog will use "Runtime.getRuntime().exec(yourprogram)" when it is given specific signals. For mouse and keyboard control try java.awt.Robot -
Help please! Java application and web application...
Hi,
I have a problem with inserting a java application (Main.java) in a web application(index.jsp).
I found a source demo of a drag and drop application on the Internet, but now I want to
have the drag and drop application work in a Jpanel/JFrame in a webapplication.
The drag and drop application code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class Main {
public static void main(final String[] args) {
final ButtonGroup grp = new ButtonGroup();
final JPanel palette = new JPanel(new FlowLayout(FlowLayout.LEFT));
palette.setBorder(BorderFactory.createTitledBorder("Palette"));
final MainPanel mainPanel = new MainPanel();
mainPanel.setPalette(palette);
for(int j=0; j<4; j++){
final JToggleButton btn = new JToggleButton("Panel "+(j+1));
palette.add(btn);
grp.add(btn);
btn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
mainPanel.setAdding(btn.getText());
final JFrame f = new JFrame("Drag and drop panels");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(palette, BorderLayout.WEST);
f.getContentPane().add(mainPanel, BorderLayout.CENTER);
f.setSize(800, 600);
f.setVisible(true);
class MainPanel extends JPanel implements MouseListener, MouseMotionListener {
private JPanel palette;
private String adding="";
private SubPanel hitPanel;
private int deltaX, deltaY, oldX, oldY;
private final int TOL = 4; //tolerance
public MainPanel() {
setLayout(null);
addMouseListener(this);
addMouseMotionListener(this);
public void mousePressed(final MouseEvent e) {
if( adding != "" ){
setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
SubPanel sub = new SubPanel(adding);
add(sub);
sub.setSize(sub.getPreferredSize());
sub.setLocation((int)e.getX(),(int)e.getY());
revalidate();
adding = "";
return;
Component c = getComponentAt(e.getPoint());
if (c instanceof SubPanel) {
hitPanel = (SubPanel) c;
oldX = hitPanel.getX();
oldY = hitPanel.getY();
deltaX = e.getX() - oldX;
deltaY = e.getY() - oldY;
if( oldX < e.getX()-TOL ) oldX += hitPanel.getWidth();
if( oldY < e.getY()-TOL ) oldY += hitPanel.getHeight();
public void mouseDragged(final MouseEvent e) {
if (hitPanel != null) {
int xH = hitPanel.getX();
int yH = hitPanel.getY();
int xDiff = e.getX()-oldX;
int yDiff = e.getY()-oldY;
int cursorType = hitPanel.getCursor().getType();
if( cursorType == Cursor.W_RESIZE_CURSOR){ //West resizing
hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() );
}else if( cursorType == Cursor.N_RESIZE_CURSOR){ //North resizing
hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth(), hitPanel.getHeight() - yDiff );
}else if( cursorType == Cursor.S_RESIZE_CURSOR){ //South resizing
hitPanel.setSize( hitPanel.getWidth(), hitPanel.getHeight() + yDiff );
}else if( cursorType == Cursor.E_RESIZE_CURSOR){ //East resizing
hitPanel.setSize( hitPanel.getWidth() + xDiff, hitPanel.getHeight() );
}else if( cursorType == Cursor.NW_RESIZE_CURSOR){ //NorthWest resizing
hitPanel.setBounds( e.getX(), e.getY(), hitPanel.getWidth() - xDiff, hitPanel.getHeight() - yDiff );
}else if( cursorType == Cursor.NE_RESIZE_CURSOR){ //NorthEast resizing
hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth() + xDiff, hitPanel.getHeight() - yDiff );
}else if( cursorType == Cursor.SW_RESIZE_CURSOR){ //SouthWest resizing
hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() + yDiff );
}else if( cursorType == Cursor.SE_RESIZE_CURSOR){ //SouthEast resizing
hitPanel.setBounds( xH, yH, hitPanel.getWidth() + xDiff, hitPanel.getHeight() + yDiff );
}else{ //moving subpanel
hitPanel.setLocation( e.getX()-deltaX, e.getY()-deltaY );
oldX = e.getX();
oldY = e.getY();
public void mouseMoved(final MouseEvent e) {
Component c = getComponentAt(e.getPoint());
if (c instanceof SubPanel) {
int x = e.getX();
int y = e.getY();
int xC = c.getX();
int yC = c.getY();
int w = c.getWidth();
int h = c.getHeight();
if( y >= yC-TOL && y <= yC+TOL && x >= xC-TOL && x <= xC+TOL ){
c.setCursor(new Cursor(Cursor.NW_RESIZE_CURSOR));
}else if( y >= yC-TOL && y <= yC+TOL && x >= xC-TOL+w && x <= xC+TOL+w ){
c.setCursor(new Cursor(Cursor.NE_RESIZE_CURSOR));
}else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL && x <= xC+TOL ){
c.setCursor(new Cursor(Cursor.SW_RESIZE_CURSOR));
}else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL+w && x <= xC+TOL+w ){
c.setCursor(new Cursor(Cursor.SE_RESIZE_CURSOR));
}else if( x >= xC-TOL && x <= xC+TOL ){
c.setCursor(new Cursor(Cursor.W_RESIZE_CURSOR));
}else if( y >= yC-TOL && y <= yC+TOL ){
c.setCursor(new Cursor(Cursor.N_RESIZE_CURSOR));
}else if( x >= xC-TOL+w && x <= xC+TOL+w ){
c.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
}else if( y >= yC-TOL+h && y <= yC+TOL+h ){
c.setCursor(new Cursor(Cursor.S_RESIZE_CURSOR));
}else{
c.setCursor(new Cursor(Cursor.MOVE_CURSOR));
public void mouseReleased(final MouseEvent e) { hitPanel = null; }
public void mouseClicked(final MouseEvent e) {}
public void mouseEntered(final MouseEvent e) {}
public void mouseExited(final MouseEvent e) {}
public void setAdding(final String string) {
adding = string;
setCursor(new Cursor(Cursor.HAND_CURSOR));
public void setPalette(final JPanel panel) { palette = panel; }
class SubPanel extends JPanel {
public SubPanel(final String name) {
setPreferredSize(new Dimension(100, 100));
setBorder(new TitledBorder(new LineBorder(Color.BLACK), name));
}This application works with JFrame, but I want to display the JFrame in a webapplication (JSP Page).
I'm using Netbeans 6.0 (GlassFish) to create webapplication using Visual Web JavaServer Faces.
So in summary:
How can i display the drag and drop application into a JFrame (better in a JPanel) in a webapplication (index.jsp)??
Hope you can help...
Thanks in advance...
Greetings,
RajshSo have an applet that opens a JFrame... JSP or not has nothing to do with it, since it's nothing but HTML the client gets.
You can't have a JFrame embedded in an HTML page. And if you could have an applet but don't know how to get that copied code to fit inside (I mean, content pane is content pane), you might want to consider learning how to do that. -
JCo 3.0 connectivity issues between Java application on NWCE and ERP
Requirement: We have a Java application that would run on NWCE. This application will be invoked from ERP/SAPGUI via HTML Controller. With SSO enabled, the goal is to pass ERP credentials to CE application. This CE application in turn will use ERP credentials from Logon ticket to connect to ERP and invoke BAPI calls (JCo 3.0 destination)
System Information:
CE System: SAP NW CE 7.2 SPS 04
ERP: SAP ECC 6.04
Both systems are trusted using X.509 certificates
Current scnerio:
1) Destination (CE to ERP) - JCo 3.0 using Authetication method of u201CCurrent User (Logon Ticket)u201D
- Web application is unable to find the JCo 3.0 destination.
2) Destination (CE to ERP) - JCo 3.0 using Authetication method of u201CTechnical Useru201D
- Web application is able to find the JCo destination
Any assiatance in resolving the issues would be appreciated ....
Trace Log:
#2.0 #2011 01 19 14:44:38:756#+0100#Error#com.sap.security.core.server.destinations.provider.DestinationsProviderFrame#
com.sap.getDestinationProperties()#BC-JAS-SEC#tcsecdestinations~provider#001F2960BE89048C0000000100005BC1#16777250000000004#sap.com/TestJcoWebEar#com.sap.security.core.server.destinations.provider.DestinationsProviderFrame#10207625#182##4286395D23D211E08BA2000001000022#d981f18323b011e0b5eb000001000022#d981f18323b011e0b5eb000001000022#0#Thread[HTTP Worker [@2002275007],5,Dedicated_Application_Thread]#Plain##
ASJ.dest.pr0023#Hi Hemandra,
This is the Full error message i am getting
Message: ASJ.dest.pr0023
Severity: Error
Date: 2012-02-09
Time: 21:37:25:134
User: SUPPLIER
Category: /System/Security
Location: com.sap.security.core.server.destinations.provider.DestinationsProviderFrame
Application: XXXXXXXXXXXXXXXXXXXXXX
Thread: Thread[HTTP Worker [@254542764],5,Dedicated_Application_Thread]
Data Source: j2ee/cluster/server0/log/system/security.log
Arguments:
Passport User Activity ID: 1d2dfea9533811e1adf3000000dc2fc6
Message ID: com.sap.getDestinationProperties()
Session: 11
Transaction:
Time Zone: +0530
Customer Message Component: BC-JAS-SEC
Runtime Component: tcsecdestinations~provider
Correlation ID: 14430150000000004
Passport Session: 8703D330533611E19565000000DC2FC6
Passport Connection: 1d2dfea9533811e1adf3000000dc2fc6
Passport Connection Counter: 0
Host: XXXXX
System: XXX
Instance: J01
Node: server0
Log ID: C000AC10088100FF0000000000002BF1
Regards,
Srinivas -
I am using powerpivot v2 with excel 2010.
When I go to my excel file's powerpivot and I try to insert a formula in any column, I constantly get the following message:
"unhandled exception has occurred in a component in your application. If you click continue, the application will ignore this error and attempt to continue".
************** Exception Text **************
System.InvalidCastException: Return argument has an invalid type.
at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
Does anybody know how to fix this ?Mark,
I used the Fix It found here:
http://support.microsoft.com/kb/2739501
I would have to ask my IT support person for more specifics, but as I understand the scenario with my particular laptop: the laptop came preloaded with RTM build of 2013. We used Control Panel to uninstall Office 2013, in order to install Office
2010. I installed PowerPivot add-in and used it successfully with no issues for several months. After attempting to install another program and encountering issues with apparent traces left behind of Office 2013 uninstall, I found the link above
and used the Fix It to attempt to remove all remaining traces of Office 2013. While it did appear to find and clean-up quite a bit left behind from the Office 2013 install, I was surprised to find an error upon entering my existing installation
of PowerPivot for 2010 and attempting to type new formulas into the formula bar.
My experience to-date is that an error message stating ""Return Argument Has an Invalid Type" appears anytime I select or modify a formula in the formula bar that would cause the intellisense to appear. For example, when I first click into the formula
bar, I do not get an error...but as soon as I type the first letter, before the intellisense appears, I get the error message. Throughout the remainder of the formula as I type, just prior to any time when the intellisense drop-down will appear
again, I get the same error message again (see details below).
At one time, although I can't reproduce it now, the error message did state ".Net Framework" in the menu bar of the error pop-up window. I can't get that to appear again, as it now only says "PowerPivot for Excel". Based on this, I had attempted
to see if I could repair my .NET framework install using the following tool:
http://www.microsoft.com/en-us/download/details.aspx?id=30135
I learned, however, that since I am running Windows 8 which comes with .NET 4.5 built-in to the OS, this tool does not yet cover that version for repair.
While the overall end-result of my PowerPivot models appear to be just the same, having to click through "Continue" on the error message multiple times each time I enter a new formula is a huge drain on productivity.
Let me know if you have any additional questions.
David
System.InvalidCastException: Return argument has an invalid type.
at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
David Duncan Consultant I.B.I.S., Inc. -
When deploying the webdynpro java application , showing error message
Hi Masters,
when deploying the webdynpro java application , showing error message. Please reply why this problem showing and what is the solution
But Iogin to sdm tool ( remote gui .sh) with same password, which password i am using for deploy the webdynpro java application.here in sdm tool i am able to login. and i restart the sdm , and again trying to deploy the same problem it showing.
URL to deploy : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
Result
=> deployment aborted : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
Aborted: development component 'sales'/'rupa.com'/'LOKAL'/'0.2010.02.13.14.32.39':Caught exception during application deployment from SAP J2EE Engine's deploy API:com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [devsap] with user name: [J2EE_ADMIN] Check your login information. Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: No login module succeeded.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
Deployment exception : The deployment of at least one item aborted
Edited by: sujana mullapudi on Feb 13, 2010 2:52 PMHi Sujana,
For deploying Web Dynpro for Java application, J2EE_admin correct password must be stored in the scured area of config tool.
Your error show that J2EE_admin information is not correct.
So, Please ask your basis team to update new J2EE_ADMIN password or you can do it in scured area of config tool.
Hope this will helps you.
Thanks
Arun Jaiswal -
Deploying problem of web dynpro java application
Hi,
I have a web dynpro java application with no problem about deploying.
I copied this application with another name.
I tryed new application to deploy but sdm aborted with error.
Error
19.Tem.2011 10:22:25 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Settings
SDM host : vserver0202
SDM port : 52018
URL to deploy : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
Result
=> deployment aborted : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
Aborted: development component 'HF_PERS_RAPOR_BUTCE'/'local'/'LOKAL'/'0.2011.07.19.10.22.15'/'0':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application local/HF_PERS_RAPOR_BUTCE.. Reason: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is: com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Deployment exception : The deployment of at least one item abortedHi,
Since the exception says "Are all referenced components deployed and available on the engine?"
Check wether any DC is used as a used DC in the webdynpro component which you are deploying.
If any used DC is available try to deploy that DC in the server and then deploy ur webdynpro application.
If all reference DC's are avialable in server, still if you get this error try to rename the component and reload+rebuild the project and deploy it.
Hope this helps you...
Regards,
Saleem Mohammad. -
Event Date: October 1, 2002 at 11:00 AM Pacific (US), 02:00 PM Eastern (US)
To register: http://regsvc.placeware.com/?wily-bea1001
Title: Achieving Availability, Performance and Control of Java Applications
in Financial Services
Abstract:
In today's competitive environment, financial institutions must focus on
three key business goals:
a.. Creating a customer-centric enterprise to maximize value to customers
and increase share of wallet
b.. Improving transactional efficiency for rapid delivery of the right
products, services and information to customers and to employees
c.. Accelerating the decision making process to mitigate risk and improve
returns.
BEA and Wily Technology have helped a number of financial services firms
meet these objectives by delivering high-performance business solutions that
meet rigorous demands for performance, reliability and scalability.
On October 1, 2002, Wily Technology and BEA will present a joint Web seminar
titled "Achieving Availability, Performance and Control of Java Applications
in Financial Services" with Eric Gudgion, Principal System Architect,
Technical Solutions Group at BEA and Chris Farrell, Director of Technical
Marketing at Wily. This Webinar will showcase the many advantages that the
WebLogic® Enterprise PlatformT and Wily's Introscope® offer financial
services firms.
Attendees will learn how WebLogic Server, BEA's unified, simplified and
extensible solution, provides a robust platform for the development and
deployment of enterprise Java applications. Some examples of what financial
institutions can achieve with BEA include Multi-channel Services Delivery,
Straight-Through Processing, Wealth Management and Cash Management.
Wily Technology will highlight Introscope's ability to manage financial
services Java applications by pinpointing component-level performance issues
in real-time, whether in the application, application server or
Java-connected back-end systems. Wily's suite of Java application management
solutions offers a comprehensive platform for achieving 24x7 application
availability, enhanced performance and better control of IT resources.First of all you should check out which products are supported on 64bit :- http://www.oracle.com/technology/products/bi/hyperion-supported-platforms.html
If you are planning on using windows 64bit EAS then you will have to manually deploy the web application, it cannot be automatically deployed.
Cheers
John
http://john-goodwin.blogspot.com/ -
Consume Enterprise Services in Java Application
Hey guys,
I'm very new in this field, maybe you can help me how to start....
I want to call Enterprise Services (asynchronous, provided by SAP) from an external java application. Therefore I want to configure a integration scenario between two business systems: java application (consumer) and sap application system (service provider). Maybe you can help me to answer the following questions.
1) What kind of adapter I have to use in communication channels?
2) Have I to define outbound/inbound interfaces for Communication Component "sender" (business system: java application)?
2) How does the communication between the java application and IS work? What kind of API I have to use - some kind of advanced adapter engine ... JCO, JCA ???
Is there any demo scenario from sap? Please help me to start
Kind regards,
ChristianHello,
problem is you are using wsimport on web-service which uses RPC/encoding. Wsimport use JAX-WS so it is not able read it.
You should wscompile.bat instead it.
Here is example :
wscompile.bat -gen:client -d build/classes -s src -keep config.xml
(-gen:client -says to generate classes for client
-d - directory where to store classes
-s - directory where to store sources
-keep - to keep source file
xml file
Where config.xml looks like
<?xml version="1.0" encoding="UTF-8"?>
<configuration
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl location=
"http://something/yourws?wsdl"
packageName="org.your.package.client"/>
</configuration>
I hope it will help.
best regards -
Running ssh command in a java application
Hi there!
I am trying to run a ssh command from a java application cause I need to store the result.
Actually I can run this command in the cygwin shell so I need to open the shell and run the command, all trough java.
so, what my process needs to do is:
1) open the cmd
2) run C:\cygwin\cygwin.bat
3) execute the ssh command
ssh -l fip-user ipdb fip 42704) print the result of the ssh command.
Note that the cygwin opens in the same command line window and so will print it's result to the same process inputstream
Message was edited by:
RBerviniUse "Runtime.getRuntime().exec()" to execute the SSH program,
and you can then get the output of the SSH program
via the getInputStream() method on the returned Process object.
Note: there are many pitfalls with this. In particular, most people don't know
they should create separate threads to drain the input/output pipes.
See this excellent classic article http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
on how to do it right.
Maybe you are looking for
-
Ipod touch Christmas present won't work
I got my daughter an ipod touch 4th gen. 32 gb. having serious trouble getting it to work. Upon connecting it to my pc for the first time I was prompted to have to restore it...didnt understand why a brand new ipod would need to be restored but i t
-
Process order creation problem
I am creating a process order . while creating the process order system is throwing error as Auto batch numbering not set up for material type XXXX in plant xxxx . System is not allowing to create process order. How to resolve the issue.
-
Activate photoshop elements 12 on multiple computers
Hello Im trying to rollout photoshop elements 12 to 30 pc's Tried the slient install method by putting the serial number and ul in the command line and creating the application.xml.override file which works On launching the programme it s asking for
-
Copy and Paste doesn't work inside compound clips
If I have two compound clips, when I try to copy some clips from inside one, then open the other compound clip and paste, nothing happens. However, if I try the same on a project timeline paste works. This is really annoying as I cannot move a clip f
-
HT1535 Problem with manual management - I need help?
When I click on the "Manually Manage Music and Videos" box, I am informed that my iPhone is synced with another library - and it wants to delete everything on this phone an replace it - I don't want that!