Results 1 to 8 of 8

Thread: InterOp'ing with Java...

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    InterOp'ing with Java...

    Anyone ever done it? How? Did you write your own conversion stuff, or use an existing product?

    Any info you have would be great. Except if it's useless. If it is, I will eat your face.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    I hope this is what you mean:

    I just derived a class using Form as its base, compiled that into a J++ class library. Then I started a new VB.net app and added a reference to the DLL i just made, then instantiated the class.

    Worked fine.

    I havent gone into detail here in case its not what you want. If it is then let me know.

    I've never done any J++ before

    It sucks.
    I don't live here any more.

  3. #3

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    No, I mean real Java, not the MS bastardized version of it (J++).

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I've done a lot of work with java ( written in notepad, compiled with javac.exe ) ).
    How exactly you want to interoperate?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Well, suppose I have .NET objects that represent/provide access to data on a server somewhere.

    And I want a Java application (be it a servlet, exe, whatever) to be able to access the data through the .NET objects.

    I assume I would have to have Java objects that mirror the .NET objects, but then what? I doubt I can just connect a Java XMLStream to a .NET XMLStream, and just pass a serialized call back and forth. Or can I?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    I'm no expert in JAVA, but I imagine there are really only two ways to do it (although they could be considered just the only way)

    1) Webservice using soap (rdl format since JAVA doesn't understand the .Net default format) which basically means plain xml and parsing on either side using get/post on 80.

    2) A stream of bytes through a socket connection... and encoding to utf-8 and parsing the XML on either side.

  7. #7
    New Member
    Join Date
    Feb 2005
    Posts
    2

    Re: InterOp'ing with Java...

    Maybe this is an old thread but I want to share it. I am in process of doing some similar stuff here at my office, a Java app using a .NET web service and this is what I found so far.

    Look at this site:
    http://www.xml-rpc.net/

    Here are some examples on how to use XML-RPC with different platforms:
    http://xmlrpc.scripting.com/director...mplementations

    Ragards

    Larz*
    Last edited by labrego; Feb 2nd, 2005 at 06:09 PM.

  8. #8
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: InterOp'ing with Java...

    That first link is really all anyone would need to interop with Java...

    Its been a while since I looked at the SOAP formats .NET provides.. but I remember the rdc format wasn't the default format... and I could never figure out how to tell .Net to use it. But with a client library such as listed on the first link... its not an issue anymore.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width