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 634653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:19:08+00:00 2026-05-13T20:19:08+00:00

I have create a web service in glassfish v3. The method I am try

  • 0

I have create a web service in glassfish v3. The method I am try to call from .net using generated client in visual studio 2008 takes a single parameter which is basically a java bean – simple types (Double, String, Date) as fields with getters and setters (Actually it is an EJB entity class). I find that when I call the method from my c# client that the null values are received for the Double and Date parameters (but not for String ones) by the server. Interestingly, I was also having this problem within a java net beans generated client until I made the fields of the bean protected instead of private in the web service implementation, but in the java case all non primitive types including String came in as null.

Since the java client now works it seems the problem is with the way .net is marshalling the data. I am wondering if I can change the way the server generates the wsdl using annotations on the server side so that .net interprets it in the right way, or somehow control how .net generates the client – using parameters to a command line tool rather than generating the client using visual studio for example. I don’t really want to build a client by hand.

  • 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-05-13T20:19:09+00:00Added an answer on May 13, 2026 at 8:19 pm

    The classes that are generated on the .NET side may include “FooSpecified” field used to indicate if the “Foo” property/field is set. These are an unfortunate side-effect of those types (Double, DateTime) being nullable in SOAP/WebServices/Java, but not being nullable in .NET. Instead of Nullable for the field, instead there may be an additional boolean field used to indicate if those fields are specified or not. Try explicitly setting those fields to true before sending them to your web service.

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

Sidebar

Related Questions

We have to create a web service client using Apache CXF in Java. The
i am using script manager to call a web method on client side but
I have created a web service which has a couple of methods developed using
I have a web service generated by wsgen through maven. When I deploy the
I have to create a Web Service that can service around 100,000 clients. I
I have to create a web service for iPhone. So I would like to
I have created an web service I need to publish this service. I need
I have created a timeclock application in C# that connects to a web service
I have a web service that I created in C# and a test harness
I have several web services I need to create for them some testing mechanism

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.