473,771 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Have idl and sdl - need wsdl....

I'm making one of my first web services (with C#) and need help
getting started.
I have received an idl file and a sdl file that describes the
interface I need to implement... but how do I generate anything from
these files? It seems like I have to convert one of the files to a
wsdl file and then use wsdl.exe??

Thanks for your help!

(I wont be back to reed your answer until monday...so no hurry! :-)
Nov 12 '05 #1
1 2198

You could take a detour and somehow build a COM DLL or a type library
from the IDL.

With the type library you could either generate a COM DLL using the
Implement Interface option from the Class View in unmanaged C++. Then
compile the project and extract the WSDL using the WSDL Generator from
the SOAP Toolkit, which you should find for download on the Microsoft
web site. You find documentation on how to use the tool in the SOAP
Toolkit documentation.

You could also try to compile the IDL into a type library using
midl.exe, then create a .NET interop assembly with tlbimp.exe. Then
create a new ASP.NET Web service in Web service, reference the interop
assembly, implement the interfaces from the interop assembly in the web
service class. Visual Studio should generate the methods on the
interface for you. Then mark the generated methods with the [WebMethod]
attribute, compile your project and now you can get the WSDL by querying
the service URL with the ?wsdl URL, but at that point you already have
services.

Finally, the Christian Weyer's contract first tool [0] does a better job
than wsdl.exe at generating code for web services from WSDL.

HTH and I'd be curious to hear how you solved your problem.
Christoph Schittko
MS MVP XML
http://weblogs.asp.net/cschittko
-----Original Message-----
From: Camilla [mailto:vi****@h otmail.com]
Posted At: Friday, November 26, 2004 9:15 AM
Posted To: microsoft.publi c.dotnet.xml
Conversation: Have idl and sdl - need wsdl....
Subject: Have idl and sdl - need wsdl....

I'm making one of my first web services (with C#) and need help
getting started.
I have received an idl file and a sdl file that describes the
interface I need to implement... but how do I generate anything from
these files? It seems like I have to convert one of the files to a
wsdl file and then use wsdl.exe??

Thanks for your help!

(I wont be back to reed your answer until monday...so no hurry! :-)


Nov 12 '05 #2

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

Similar topics

5
4735
by: relaxedrob | last post by:
Hi All! I ran the following w3c example through my WSDL parser (SOA Editor from Cape Clear): http://www.w3.org/TR/wsdl#_rpcexample It told me that there were a bunch of erros about no timeInstant or float defined in the xsd namespace: "http://www.w3.org/2000/10/XMLSchema".
0
1569
by: Sonna Nach | last post by:
Hi All, I am writing a doc/lit web services, in which the elements under SOAPBody is unknown. That is, these two message are acceptable. 1. <SOAP-ENV:Body><Tag1>It is ok</Tag1></SOAP-ENV:Body> 2. <SOAP-ENV:Body><Tag2><Tag3>It is also ok</Tag3></Tag2></SOAP-ENV:Body> The question is, if I write the wsdl as below, it defines the
0
1953
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
1983
by: Suresh Pasala | last post by:
Hello All, Iam using the ServiceDescription class and writing a wsdl file. Currently the way wsdl is generated is as follows. <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.xignite.com/services/"
2
7733
by: Danny Gagne | last post by:
I'm currently working an .net application (I can use 1.1 or 2.0 if needed) that needs to read a wsdl file and generate another piece of code that can use it. I'm encountering a problem where I cannot extract all of the type information from the wsdl using any standard tools. I'm using HttpGet style webservices if that makes any difference, but I want to be able to use any type. 1. I've tried the ServiceDescription.Types and I cannot...
5
4915
by: CindyRob | last post by:
Using .NET framework 1.1 SP1, .NET framework SDK 1.1 SP1, Visual Studio .NET 2003, hotfixes 892202 and 823639. I create a proxy class using wsdl.exe, and in the serialized XML request, I see that any elements that are nested elements in the schema (not global elements) have their namespaces set to the null namespace. I can see that the proxy classes have serialization attributes specifying these nested elements as unqualified: ///...
3
9436
by: Siva | last post by:
Hi all, I want to Convert a WSDL to a SOAP message. Is there any way to do this. I am using .NET 2.0 Thanks in Advance Siva
1
2757
by: v4u2chat | last post by:
Do I need to extend any of classes from AXIS to return multiple values? I'm exposing the following method as web service through AXIS to return multiple values. public ContactAddress testService() { ContactAddress cAddr = new ContactAddress(); cAddr.setAddresses1("AAAAAAAAAAAAA"); cAddr.setAddresses2("BBBBBBBBBBBBB"); cAddr.setAddresses3("CCCCCCCCCCCCC");
0
2714
by: Geoffrey Summerhayes | last post by:
I'm writing on a wsdl parser in javascript and the relevant portions of the file I'm trying to parse is <?xml version="1.0" encoding="utf-8" ?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://localhost/Test/"...
0
9619
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
10261
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
10103
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
9911
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
8934
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...
0
5354
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...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.