Ask a questionAsk a question
 

AnswerConnecting To Java Web Service

  • Thursday, October 29, 2009 6:58 PMKaruna Kumar Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Yampersand,

    I have a similar problem.  
    I have a java webservice. I am writing C# client.

    When I invoke the webservice expecting a primary data-type like string or bool, I receive the correct anwser. but when i invoke webservice expecting complex object or array of complex object, i recieve empty array of objects.

    what could be the problem.




    Please help me. your help is heighly appriciated.

    Thanks,
    Karuna.

Answers

  • Monday, November 02, 2009 10:16 AMNarayanan Dayalan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Even i have tried this kind of scenario between .NET itself, just throwing a ArrayList from webservice.  But .NET throws Error as it dosent allow a Array List to be directly thrown as output... Bu there is a other way which u can try by serilizing the objects to string and then back to Object.... this should work fine in all cases


    may be the below link can help u out in some way
    http://www.codeproject.com/KB/java/Invoke_Java_WS_In_CS.aspx
    Narayanan Dayalan - Zeetaa Business Solutions

All Replies

  • Monday, November 02, 2009 10:16 AMNarayanan Dayalan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Even i have tried this kind of scenario between .NET itself, just throwing a ArrayList from webservice.  But .NET throws Error as it dosent allow a Array List to be directly thrown as output... Bu there is a other way which u can try by serilizing the objects to string and then back to Object.... this should work fine in all cases


    may be the below link can help u out in some way
    http://www.codeproject.com/KB/java/Invoke_Java_WS_In_CS.aspx
    Narayanan Dayalan - Zeetaa Business Solutions