1 Replies - 269 Views - Last Post: 11 May 2019 - 05:59 PM Rate Topic: -----

#1 huzi8t9   User is offline

  • D.I.C Regular
  • member icon

Reputation: 25
  • View blog
  • Posts: 374
  • Joined: 11-July 07

Web Service nulling object

Posted 11 May 2019 - 03:11 PM

Hi,

I have created a web service and, I have a DTO in a common library (accessed by the application and web service).

When I call my Web Service (LoginResponse login = client.Login(LoginRequest)) - the first level of objects are present but, my user object isn't... in pictures.

The Web Service returning:
Attached Image

Once the web service returns, the response looks like this:
Attached Image

Edit
Turned on tracing, looks like the reply is complete.
Attached Image

My user has all the necessary serialization tags so, I'm at a loss as to why the USer object is being dropped.

Any pointers welcome!

Cheers

This post has been edited by huzi8t9: 11 May 2019 - 03:40 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Web Service nulling object

#2 Skydiver   User is online

  • Code herder
  • member icon

Reputation: 6968
  • View blog
  • Posts: 23,684
  • Joined: 05-May 12

Re: Web Service nulling object

Posted 11 May 2019 - 05:59 PM

I would suggest building both the server and client clean to make sure that the server types and the client proxy types are perfectly in sync.

(It is this complexity that SOAP web services that I feel has pushed people towards using REST web services instead of using SOAP and WCF.)
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1