How to start with web service and xml schema

B

Beginner

Hi all,

I am a new web service developer. I want to know about how to write web
service with xml schema. I have searched a lot of xml schema topic but I
don't know how to use it.

if i have a simple web service(Calculator)

[WebMethod]
public int Cals(int x,int y) {
int sum = 0;
sum = x + y;
return sum;
}

if i want to use xml schema for this web service
what xml schema should be ?????
and how to use in web service ????

Thank you for all suggestion
 
J

Jorgebg

Hi,
the WSDL file, asociated to that webservice has a schema defined.
But with .NET and Visual Studio you shouldn't worry about that.

In order to consume it, from the project you want to use it, add a Web
Reference (Right click in project > Add Web Reference...).

Best Regards,
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top