473,799 Members | 3,185 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

creating a Web Service from a WSDL file

Hi,
I've got a WSDL file that I need to use to create a Web Service from, I have
managed to create the client side of the app using the generated .cs file
that WSDL.exe creates.
Does anyone know how I can create this Web Service from the the WSDL file?

Any help or info is appreciated.
Thanks

Aug 6 '07 #1
2 4636
Hello BillB,
Hi,
I've got a WSDL file that I need to use to create a Web Service from,
I have
managed to create the client side of the app using the generated .cs
file
that WSDL.exe creates.
Does anyone know how I can create this Web Service from the the WSDL
file?
Any help or info is appreciated.
Thanks
using the same tool (wsdl.exe) you can create a service interface (/serverInterface ).
If you then create a new webservice project and import the generated cs file
into that project you can set the inheritace of the webservice class to:

public class MyServiceName : WebService, IMyGeneratedSer viceInterface
{

}

if you're working in VS2005, you can then hit ctrl-. with your cursor on
the IMyGeneratedSer viceInterface and visual studio will present you an option
to generate empty methods for the interface.

Jesse
Aug 6 '07 #2
BillB wrote:
Hi,
I've got a WSDL file that I need to use to create a Web Service from, I
have
managed to create the client side of the app using the generated .cs file
that WSDL.exe creates.
Does anyone know how I can create this Web Service from the the WSDL file?

Any help or info is appreciated.
Thanks
Use the wsdl.exe command line tool with the /serverInterface option to
generate the server code from WSDL. For more info see
http://msdn2.microsoft.com/en-us/lib...b6(VS.80).aspx.

You might also be interested in the WSCF tool from thinktecture,
available at
http://www.thinktecture.com/resource...-software/wscf.
Basically does the same thing as command line wsdl.exe, but with a GUI.
--
Tom Porterfield
Aug 6 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1954
by: Dave | last post by:
Hi, If anyone could help with this, I would greatly appreciate it! I've created my own WSDL file and referenced an XSD file too. I've generated a service side interface using wsdl /server, and created an ASMX file from this. I've then set the Binding for the class and methods and set the Location to my WSDL file. If I put the wsdl:service element in the WSDL file that points to my endpoint, I can go to Add Web Reference and my methods...
0
1477
by: suresh | last post by:
Hello All, Iam writing a wsdl file using the Servicedescription class.The document I get is a well formed xml document.But some how when I try to add this wsdl file as a webrefernce to another project in VisualStudio.NET it gives me the following error " c:\inetpub\wwwroot\WebApplication3\Web References\WebReference\Reference.map(1): Custom tool error: Unable to import WebService/Schema. Cannot find
3
2066
by: Dee | last post by:
I dont have much experience with wsdl's, but I am currently producing asmx web services, for c# dot net projects. All the project files are stored in souresafe, including the wsdl files. Each time I update a project I must build and run the particular web service then manually open and save the wsdl. This must be done before the wsdl can be checked into ss.
2
2051
by: pronto | last post by:
Hi all. I created simple web service with C# and run it on Win2000 XP sp2. Service has two simple . I test it with my C# client and IE. Now I want to create VC++ 6 application and talk to web service with SOAP SDK lib. It's good so far, but SOAP SDK samples are using link to the WSDL file for the tested WebService. I have search whole computer with WebService running
2
6727
by: Greg Decos | last post by:
I was given a DISCO and WSDL file and a url in order to call a web service (not written in dot net) I am not sure what to do this information. I could code the request by building a sope xml message and using http post but Is there some other way to do this without writting all this code? In this case there is no http location to add the web reference Thanks Greg
0
1716
by: Andreas | last post by:
Hi, Im trying to consume a webservice described by the WSDL below, however When i try to add the WSDL it does not work, tried to run it through WSDL.EXE It validates in XMLSpy, but WSDL.exe pukes on it, as does when i try to use it in a Vs.Net project... Any ideas how to go forward with this? Output from WSDL.EXE; Error: Unable to import binding
13
8469
by: Edje.Rommel | last post by:
Hello, I've have a problem with a webservice. I just want to validate a VAT number by country code and VAT numer. The return value should be like "it's valid" and/or the name where it's registered to. To do this i can access the webservice on the following location: http://ec.europa.eu/taxation_customs/vies/api/checkVatPort A WSDL file is also available:
2
2038
by: SteveChamp | last post by:
I have been experimenting with .Net web services for a while and have a few questions about the schema in the automatically generated WSDL file, and whether its content can be manipulated programatically. First of all, I created several very simple test methods in my web service: <WebMethod()_ Public Function TestString(ByVal test As String) As String Return "The value passed was " + test End Function
0
1123
by: Salem | last post by:
hi, i need to programmatically get the wsdl file of a certain web service to create the corresponding proxy on the fly. knowing the service i want to use, how can i get its wsdl file and create the proxy programmatically. anybody??? thanks
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.