Community discussion forum

Difficulties Consuming Java Web Services in .NET

  • 4 years ago

    I am consuming Java Web Services in .NET. The Java Web Services have been coded using Apache Axis.


    The binding style in the WSDL is 'Document' and type is 'Literal'.


    I have added these Java Web Services both as Web Reference and Reference (ie dll generated using wsdl.exe) in the Project in order to access them. I am able to get the output for web methods that return just a string. However when it comes to complex data like an object / array , it returns me an object with empty attribute values.


    I have tried posting the XML Content to the Web Services using XML Spy and it seems to work fine suggesting that there does not seem to be any problem with the Web Service.


    What could be the problem? Do we need to modify the .NET proxy that Visual Studio.NET IDE generates when output is an object or whatever is generated by default should work?


    I have tried the same consuming a .NEt service and it works fine.


    Hoping to hear from you soon.

  • 4 years ago
    "Web services programming tips and tricks: Improve interoperability between
    J2EE technology and .NET, Part 1 "

    http://www-128.ibm.com/developerworks/library/ws-tip-j2eenet1/?ca=dgr-jw22J2EE.Net

    might be worth a look
  • 4 years ago
    I have the same problem but with axis c++ and .net client.
    If you have solve the problem or anybody did please let me know.
    Thanks,
    Pablo.
  • 4 years ago
    hi there,

    would you happen to have an example of a .net web service that is consumable by java and how to consume a java web service in .net?

    I am a new bie and trying to figure out how to do this.

    Thanks

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback