Results 1 to 4 of 4

Thread: Transfer complex objects with JAX-RPC (.NET)

  1. #1
    Join Date
    Aug 2004
    Location
    Southern Germany
    Posts
    30

    Default Transfer complex objects with JAX-RPC (.NET)

    I just checked out the jPetStore Axis example and I'm impressed how easy the Axis integration works.

    But somewhere in the client source Jürgen mentions that you can't transfer complex objects via SOAP (like the Order/Item beans).

    But how can I integrate .NET and Java? What's the best strategy to transfer objects like Order/Items between the two worlds?

    I'm a newbie to WebServices and I bought "Apache Axis Live" from Sourcebeat. This book seems pretty useless at the moment, not one single line about heterogenous data exchange (which should be one of the key features of Web Services).
    Regards,
    Lars Fischer
    http://j2ux.blogspot.com

  2. #2
    Join Date
    Jan 2005
    Location
    MD
    Posts
    31

    Default

    It is possible to transfer complex objects. Check out http://www.springframework.org/docs/....html#d0e10452. It explains how to add the type mappings required by the client. You will also need the mappings in the server-config.wsdd file for the web service.

  3. #3
    Join Date
    Aug 2004
    Location
    Tampa, FL
    Posts
    39

    Default

    You can integrate .Net and Java with relatively complex objects (beans, arrays of beans, beans containing arrays of beans, beans containing arrays of bean which contain arrays of beans, etc). But there will be a few issues to consider The main one is null values. I recommend two things:

    • - Use doc/literal web services (called "wrapped/literal" in Axis). Axis 1.2 support for this is much better than 1.1.
      - Use NullableTypes (http://nullabletypes.sourceforge.net/) or something similar on the .Net side.


    jPetStore was using rpc/encoded if I remember correctly, and its Axis server-config.wsdd doesn't translate well to doc/literal. Here is a better example for doc/literal: http://dinoch.dyndns.org:7070/axis/s...le=deploy.wsdd

    I've written two blogs on the subject of .Net / Java introp:
    http://www.nileshk.com/?q=node/33
    http://www.nileshk.com/?q=node/35

    Be sure to check out:
    http://wiki.apache.org/ws/FrontPage/Axis/DotNetInterop

    I have not bean able to get SoapFaults (serialized exceptions) to work from Java to .Net yet and would be interested if anyone has.
    Nilesh Kapadia
    http://www.nileshk.com

  4. #4
    Join Date
    Aug 2004
    Location
    Southern Germany
    Posts
    30

    Default

    Nilesh, thanks a lot for your reply!

    I'll check out the links you mentioned. The main problem in our case is that we're not using 'pure .NET'. The whole thing has to work with BizTalk 2004 which has several issues (which of course maybe fixed in a future release).
    Regards,
    Lars Fischer
    http://j2ux.blogspot.com

Similar Threads

  1. Replies: 1
    Last Post: Jun 24th, 2007, 10:58 AM
  2. HttpInvoker with complex objects as parameters fails
    By iloveopensource in forum Remoting
    Replies: 5
    Last Post: Feb 5th, 2006, 12:10 PM
  3. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  4. Replies: 1
    Last Post: Feb 18th, 2005, 04:48 AM
  5. Replies: 1
    Last Post: Feb 6th, 2005, 02:06 AM

Posting Permissions

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