I have gone around to find a DCE/RPC library in Linux for C/C++ that works in Centos and finally found that yours seems to be the best answer. However, I have no experience in java and also j-Interop. So pls bear with me if you see some stupid questions.
1- Why all the examples are written in visual studio? I mean shouldn't it be somehow a java program there?
2- My main problem is as follows:
There is a third party program running in Windows. The program has been built using MSRPC to create client/server architecture. Any client wants to get data from this server, uses the given dll to do so. The problem is that there is no Linux implementation and I need to have a client in Linux.
Following the contact with them, the third party has provided me the IDL file (which if I were in windows I could have used MIDL to compile it) and the C++ headers for their client dll.
So, I am very confused what to do to talk to this server and get the information from it. My question at the moment is:
- How can I introduce the IDL type to my java program in Linux? Is there an IDL compiler (like MIDL) for j-Interop?
Any other particular advice on how to approach this problem?
Thanks in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
. So pls bear with me if you see some stupid questions.
That's okay, in my experience there are no stupid questions ... only
stupid answers :D ...
1- Why all the examples are written in visual studio? I mean shouldn't it
be somehow a java program there?
The Java test/sample code is in the "test" package. Please browse through
the source for the same.
2- My main problem is as follows:
There is a third party program running in Windows. The program has been
built using MSRPC to create client/server architecture. Any client wants to
get data from this server, uses the given dll to do so. The problem is that
there is no Linux implementation and I need to have a client in Linux.
Following the contact with them, the third party has provided me the IDL
file (which if I were in windows I could have used MIDL to compile it) and
the C++ headers for their client dll.
So, I am very confused what to do to talk to this server and get the
information from it. My question at the moment is:
- How can I introduce the IDL type to my java program in Linux? Is there
an IDL compiler (like MIDL) for j-Interop?
We do not have an IDL compiler. But once you see the samples I am sure you
will be able to use the information in the IDL to create Java mappings for
that.
best regards,
Vikram
Sent from sourceforge.net because you indicated interest in
--
The Mind is a place of its own. It can make a heaven out of hell or a hell
out of heaven. Attitude is everything. No matter how adverse conditions
maybe, one has the capacity to turn things around by one's Determination,
Perseverance and Hardwork.
John Milton
(Paradise Lost)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry it took a bit time to reply back; I downloaded the source code and have been going through the examples. Unfortunately, I still don't know how to use the j-Interop fro my problem.
As mentioned before, this program that I need to connect to uses MSRPC (and TCP/IP connection) for implementing client/server architecture. The server resides on Windows and provides new data every couple of seconds. For my MSc project, I need to connect to this server from Linux and get the data in Linux to be fed to another system that we have.
So the company who has developed the program has sent me the attached files (I cut them down). The IDL file ("TheIDL.idl") is the one compiled by MIDL in windows environment. the header file is the "IDLheaderTest.h" and the functions for implementations are in "Implement.cpp". Two functions are not defined inside the implement and I need to get more info from the company.
Quite honestly, I don't know where to start with this; opening a session and then what. None of the examples have sth like this.
Can you please have a look and put me in the right direction? Also I don't know what to do with the MSRPC native function NdrClientCall2 that is inside implement.cpp and also the handle_t for the IDL_handle.
I truly appreciate your help. Have been struggling with this over a month!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am afraid you might not be able to use j-interop with this. This is a
layer below DCOM. Microsoft added interfaces to their MSRPC protocol and
christened that DCOM. j-Interop implements that protocol, which essentially
means it implements MSRPC as well however it is not exposed to the user in
a programmable way. If you have serious time to commit, then the ideal way
would be to study our code and see how to separate out this. Alternatively,
you can try using Jarapac library directly. It is not a complete
implementation but works really well.
Sorry it took a bit time to reply back; I downloaded the source code and
have been going through the examples. Unfortunately, I still don't know how
to use the j-Interop fro my problem.
As mentioned before, this program that I need to connect to uses MSRPC
(and TCP/IP connection) for implementing client/server architecture. The
server resides on Windows and provides new data every couple of seconds.
For my MSc project, I need to connect to this server from Linux and get the
data in Linux to be fed to another system that we have.
So the company who has developed the program has sent me the attached
files (I cut them down). The IDL file ("TheIDL.idl") is the one compiled by
MIDL in windows environment. the header file is the "IDLheaderTest.h" and
the functions for implementations are in "Implement.cpp". Two functions are
not defined inside the implement and I need to get more info from the
company.
Quite honestly, I don't know where to start with this; opening a session
and then what. None of the examples have sth like this.
Can you please have a look and put me in the right direction? Also I don't
know what to do with the MSRPC native function NdrClientCall2 that is
inside implement.cpp and also the handle_t for the IDL_handle.
I truly appreciate your help. Have been struggling with this over a month!
--
The Mind is a place of its own. It can make a heaven out of hell or a hell
out of heaven. Attitude is everything. No matter how adverse conditions
maybe, one has the capacity to turn things around by one's Determination,
Perseverance and Hardwork.
Hi Vikram,
I have gone around to find a DCE/RPC library in Linux for C/C++ that works in Centos and finally found that yours seems to be the best answer. However, I have no experience in java and also j-Interop. So pls bear with me if you see some stupid questions.
1- Why all the examples are written in visual studio? I mean shouldn't it be somehow a java program there?
2- My main problem is as follows:
There is a third party program running in Windows. The program has been built using MSRPC to create client/server architecture. Any client wants to get data from this server, uses the given dll to do so. The problem is that there is no Linux implementation and I need to have a client in Linux.
Following the contact with them, the third party has provided me the IDL file (which if I were in windows I could have used MIDL to compile it) and the C++ headers for their client dll.
So, I am very confused what to do to talk to this server and get the information from it. My question at the moment is:
- How can I introduce the IDL type to my java program in Linux? Is there an IDL compiler (like MIDL) for j-Interop?
Any other particular advice on how to approach this problem?
Thanks in advance!
Hi,
best regards,
Vikram
Sent from sourceforge.net because you indicated interest in
--
The Mind is a place of its own. It can make a heaven out of hell or a hell
out of heaven. Attitude is everything. No matter how adverse conditions
maybe, one has the capacity to turn things around by one's Determination,
Perseverance and Hardwork.
John Milton
(Paradise Lost)
Thanks Vikram,
Sorry it took a bit time to reply back; I downloaded the source code and have been going through the examples. Unfortunately, I still don't know how to use the j-Interop fro my problem.
As mentioned before, this program that I need to connect to uses MSRPC (and TCP/IP connection) for implementing client/server architecture. The server resides on Windows and provides new data every couple of seconds. For my MSc project, I need to connect to this server from Linux and get the data in Linux to be fed to another system that we have.
So the company who has developed the program has sent me the attached files (I cut them down). The IDL file ("TheIDL.idl") is the one compiled by MIDL in windows environment. the header file is the "IDLheaderTest.h" and the functions for implementations are in "Implement.cpp". Two functions are not defined inside the implement and I need to get more info from the company.
Quite honestly, I don't know where to start with this; opening a session and then what. None of the examples have sth like this.
Can you please have a look and put me in the right direction? Also I don't know what to do with the MSRPC native function NdrClientCall2 that is inside implement.cpp and also the handle_t for the IDL_handle.
I truly appreciate your help. Have been struggling with this over a month!
Hi,
I am afraid you might not be able to use j-interop with this. This is a
layer below DCOM. Microsoft added interfaces to their MSRPC protocol and
christened that DCOM. j-Interop implements that protocol, which essentially
means it implements MSRPC as well however it is not exposed to the user in
a programmable way. If you have serious time to commit, then the ideal way
would be to study our code and see how to separate out this. Alternatively,
you can try using Jarapac library directly. It is not a complete
implementation but works really well.
best regards,
Vikram
On Mon, Dec 15, 2014 at 10:12 PM, Nasha naratech@users.sf.net wrote:
--
The Mind is a place of its own. It can make a heaven out of hell or a hell
out of heaven. Attitude is everything. No matter how adverse conditions
maybe, one has the capacity to turn things around by one's Determination,
Perseverance and Hardwork.
John Milton
(Paradise Lost)
Thanks Vikram,
I will look at jarapac.
Cheers,