Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7917733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:15:03+00:00 2026-06-03T15:15:03+00:00

I am developing a webservice, it is java in the server, and must be

  • 0

I am developing a webservice, it is java in the server, and must be c# in the client.
There is just one String as in parameter and as out parameter it will return an “object” with this structure:

  • String codError
  • String descError
  • Object2[] arrayData

being “Object2” like this:

  • String firstDataArray
  • Int secondDataArray

I created a java client and it works flawlessly, but the c# client does not work. It says that the “EndElement” of the object was not expected (meaning the end of the object, not object2), and that it was expected a “codError” element.

The method does NOT return an array of Objects, just one Object.

I used httpanalyzer, and as well from the java client as from the c# client, the server retuns a well formed xml, and its contain is what it is supposed to be (in both clients).

I am using eclipse and axis2 for java, and visual studio 2005 and 2008 for c#.

What could be wrong?

Thanks in advance!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:15:04+00:00Added an answer on June 3, 2026 at 3:15 pm

    The problem was that the auto-generated WSDL by axis and eclipse was wrong, and so, the XML sent from the server to the client was also wrong.
    I think it is a common problem when creating the webservices bottom-up. It is much better create them top-down.

    The XML that the server was sending to the client was something like (just the wrong part):

    <descError>OK</descError>
    <codError>0</codError>
    <object2>
        <object2>
            <firstDataArray>John</firstDataArray>
            <secondDataArray>35</secondDataArray>
        </object2>
        <object2>
            <firstDataArray>Andrew</firstDataArray>
            <secondDataArray>76</secondDataArray>
        </object2>
        <object2>
            <firstDataArray>Walter</firstDataArray>
            <secondDataArray>23</secondDataArray>
        </object2>
    </object2>
    

    There is a “object2” tag there, that should not be.
    It works creating a client for java using eclipse, but it does not in c#

    I just made the same web service using the top-down implementation and it works great now!!

    Thaks a lot to everyone!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are busy developing a Java web service for a client. There are two
I am developing a Java webservice application (with JAX-WS) that has to use two
I am developing web method for webservice in java. In this web method I
I am developing one app which is based on the webservice and fetch the
I'm developing a java web service, with client certificate security enabled. I don't want
I am currently developing a RESTful Webservice in Java using the Jersey library. For
I have been developing server side applications in java, and now I have been
I am developing a client-side Java application that has a bit of functionality that
I'm developing a RESTful webservice in Java. For Integrationtesting I use a separate project,
I'm a C++/Java guy trying to get started with developing a web service. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.