473,498 Members | 1,671 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 2274
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*********@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.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
4577
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...
1
1402
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...
7
4957
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...
0
1078
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...
6
3478
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...
0
1699
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...
0
1619
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...
4
1992
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...
1
2636
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...
0
7210
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...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7381
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...
0
5465
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,...
1
4916
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...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
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...
0
1424
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 ...
0
293
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...

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.