How to handle object returned by WSDL

  • Thread starter Thread starter arnam
  • Start date Start date
A

arnam

Hi,

I have WSDL request which returns object of some type. How to get
attributes values of this object?

I know the names of these attributes.

Regards
arnam
 
Hi,

I have WSDL request which returns object of some type. How to get
attributes values of this object?

I know the names of these attributes.

Regards
arnam

WSDL is how your code can connect to a web service to make a call and
receive an object (defined in the WSDL) back. If you made a call to the
service, you have an object which was transported as XML, not WSDL.

To get the property values you call the property on the returned object
as any normal code would do.

MyServiceResponse output = SomeService.SomeMethod();
Console.WriteLine(output.SomeProperty);
 
WSDL is how your code can connect to a web service to make a call and
receive an object (defined in the WSDL) back.  If you made a call to the
service, you have an object which was transported as XML, not WSDL.

To get the property values you call the property on the returned object
as any normal code would do.

   MyServiceResponse output = SomeService.SomeMethod();
   Console.WriteLine(output.SomeProperty);

Hi,

Thank you, now it works fine.

Regards
arnam
 
Back
Top