473,609 Members | 1,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any way to control generated webservice WSDL?

Hi all,
another question related to Schema and WSDL...

I'd like to have a bit more control over the WSDL that is generated for my
..asmx. In particular, I'd like to override the generated WSDL with a
handmade one that I want to provide.

The reasons for this are:
1) My handmade WSDL (which will be based on the machine generated WSDL) will
include alot more annotation elements - descriptions of the fields and types
and enums etc. basically richer information that can be viewd by developers
wishing to use my web methods.

2) I'd like to have the handmade WSDL use import elements to import my
handcrafted schema files: I am finding that the machine generated message
definitions are not strong enough in terms of constraints etc, and since my
server side objects are generated directly from the schema using XsdObjGen, I
see no reason why client proxies can't be generated directly from the
original schema as well - I want to allow the consumers of my webservice to
generate their own client proxies using the best tools availble for their
platform/language: I would rather they accessed the original schema than the
second hand automatic schema definition generated by my webservice.

3) The handmade WSDL will be a static file, and thus serving it up won't
consume server resources (I know, this is a minor thing...)

Anyway, if anyone has any ideas how I can go about this...

Pete
Nov 21 '05 #1
1 2289
Hmm, yes.
turn off dynamic WSDL generation.
Post your static WSDL file to the site

see also:
http://tinyurl.com/4gm4o

-Dino
"Peter McEvoy" <Pe*********@di scussions.micro soft.com> wrote in message
news:1A******** *************** ***********@mic rosoft.com...
Hi all,
another question related to Schema and WSDL...

I'd like to have a bit more control over the WSDL that is generated for my
.asmx. In particular, I'd like to override the generated WSDL with a
handmade one that I want to provide.

The reasons for this are:
1) My handmade WSDL (which will be based on the machine generated WSDL)
will
include alot more annotation elements - descriptions of the fields and
types
and enums etc. basically richer information that can be viewd by
developers
wishing to use my web methods.

2) I'd like to have the handmade WSDL use import elements to import my
handcrafted schema files: I am finding that the machine generated message
definitions are not strong enough in terms of constraints etc, and since
my
server side objects are generated directly from the schema using
XsdObjGen, I
see no reason why client proxies can't be generated directly from the
original schema as well - I want to allow the consumers of my webservice
to
generate their own client proxies using the best tools availble for their
platform/language: I would rather they accessed the original schema than
the
second hand automatic schema definition generated by my webservice.

3) The handmade WSDL will be a static file, and thus serving it up won't
consume server resources (I know, this is a minor thing...)

Anyway, if anyone has any ideas how I can go about this...

Pete

Nov 21 '05 #2

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

Similar topics

2
4585
by: Daniel Santana | last post by:
Hi again. Now I got a brand new problem using the java webservice. I'm trying to use the wsdl tool of the "Microsoft Visual Studio .Net 2003 Command Prompt"... but I got the same message when trying to add web reference in visual studio. Now, the message displayed is the following: "The HTML document does not contain Web service discovery information"
1
1423
by: alexttp | last post by:
Introduction: Assume having a MyApp.MyClass class bearing both data (say, DataSets) and functionality (proprietary methods). A WebService exposes this class via some GetMyClass WebMethod. A WSDL-generated proxy class (localhost.MyClass) on the client side, naturally, has only the data of the original class "mirrored" (well, that's reasonable, since the WebServices are there to provide data objects...). Now, to the question.
7
4974
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
0
1087
by: Andrew Baker | last post by:
All the examples show how to have a soapheader (such as authorisation) consumed by the webservice, but not how to construct one if it is not in the wsdl. The WebService I am trying to call requires a soap header, but I cant find how to write the header into the request using VB.Net. I can find out how to process it at the client, but not generate it. I created a new project with a web reference generated by VisualStudio pointed at the...
6
3488
by: | last post by:
Hi, can someone provide some advise on how to get around with using auto generated proxies? basically I already have the proxy classes, and they are used by other places. I'd like use these existing classes instead of having to generate another set of proxy classes, which are going to be very similar to my existing classes. any idea? thanks, -Jason
0
1707
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
0
1634
by: genc ymeri | last post by:
Hi over there, I'm building a webservice (C#/>Net 1.1) and I'm trying to add a web reference , a WSDL file from a location "c:\inetpub\WSDLfile.wsdl" . (This is the WSDL file of another webserver build in Java/Apache/linux .....which our project will integrate with) What happens is that the reference get added, I can read the XML in the wizard window, button Add Reference is enabled...... but once I add it, not wrapper code of the proxy...
4
1999
by: Fabio | last post by:
An ASP.NET 2.0 web site contains a web form and a web service. The web form consumes the web service. There is a Book class in the App_Code folder. The web service exposes a method that returns a Book object. The consumer includes a method that require a Book parameter. However the Book generated proxy class conflicts with the Book class in the App_Code folder. Please, consider the following code. I bet there is an easy way to solve this,...
1
2646
by: gihan | last post by:
Hi, I have a problem accessing remote webservice from my asp code. Instead of returning results, it returns list of web methods it has. Wonder where i'm doing wrong. Also note that, this is a ristricted webservice, which need username password to access and I can't use third party tools (llike xmlspy, webservice studio) to access it and debug. I only got is WSDL. Here is the WSDL <wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"...
0
8139
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
8091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8579
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
7024
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
4032
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
4098
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2540
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
1
1686
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1403
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.