Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi! I'm wondering whether somebody might be able to put me on

the right track.

 

The application I am designing needs to read some licencing information.

 

I have approached it this way:

 

The VB.NET app connects to a web service function, passing a GUID.

 

This GUID is located in the database and some data should be returned such as licencee name, expiration date etc etc.

 

As I see it, the most efficient way to handle returning multiple values from a web service should be to compile it as XML on the web service side, send it through the link to the VB.NET app, where it should decompile the information and place the values in their respective variables.

 

My problem is this: I really don't know how to go about doing so and was wondering whether any brainier people might be able to either point me in the right direction or write me a quick example to learn from.

 

Any help is appreciated.

 

Craig

  • Administrators
Posted
You could get the webservice to return either a class or structure that contains fields containing the information. The web service itself will convert the data to XML and the framework will convert it back to a class on the client.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

:)

 

Thanks PlausiblyDamp!

 

However, when I design the class/structure at the web service end, will I also have to define it at the client end?

 

By the way, do you have any examples of classes/structures through web services?

 

Craig.

You could get the webservice to return either a class or structure that contains fields containing the information. The web service itself will convert the data to XML and the framework will convert it back to a class on the client.
  • Administrators
Posted
The relevant information will be included in the web service's WSDL. When VS.Net creates the client side proxy wrappers to access the web service it will automatically create the class on the client side - no extra work on your part required.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...