How to handle object returned by WSDL

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
 
F

Family Tree Mike

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);
 
A

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);

Hi,

Thank you, now it works fine.

Regards
arnam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top