473,748 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to generate WSDL form a .asmx WebService?

I created a simple webservice .asmx on Visual Studio 2005. As I plan to
deploy it to Sharepoint Portal 2003, I copied asmx to \web server
extensions\60\I SAPI directory of the server, where all other general
webservices reside. Everything is just fine - i can access the service with
the browser, method list is displayed as well as help texts for them.

my question is - how do I generate .wsdl and .disco files for the service?

I read through lot of help materials but no hint! Should this be generated
by hand? Or is it kind of additional feature of Visual Studio Team edition?
Apr 17 '07 #1
5 70505
"kris" <kr**@discussio ns.microsoft.co mwrote in message
news:F0******** *************** ***********@mic rosoft.com...
>I created a simple webservice .asmx on Visual Studio 2005. As I plan to
deploy it to Sharepoint Portal 2003, I copied asmx to \web server
extensions\60\I SAPI directory of the server, where all other general
webservices reside. Everything is just fine - i can access the service
with
the browser, method list is displayed as well as help texts for them.

my question is - how do I generate .wsdl and .disco files for the service?

I read through lot of help materials but no hint! Should this be generated
by hand? Or is it kind of additional feature of Visual Studio Team
edition?
If you enter
http://sharepointsite.company.com/We...vice.asmx?WSDL, do you
receive a WSDL back?

Sorry, I've never deployed a web service to Sharepoint.
--

John Saunders [MVP]
Apr 17 '07 #2

"John Saunders [MVP]" wrote:
If you enter
http://sharepointsite.company.com/We...vice.asmx?WSDL, do you
receive a WSDL back?
no I don't. and that is because I don't have any WSDL document.

I get an "File Not Found" error page generated by sharepoint and I
understand why - in Sharepoint each webservice have at least three files:
1. blah.asmx - webservice itself
2. blahwsdl.aspx - which contains the wsdl document
3. blahdisco.aspx - which is the .disco file

I only have the asmx. .disco is quite simple to generate, but wsdl is kind
of complicated thing, and would take quite a lot of time to develop by hand.
that is why i am asking how to generate it.

I have Visual Studio 2005 bought it comes with lot of documentation, guides
references all that. But after couple of days searching I could find NO HINT
about how should the WSDL document be generated. Should it be generated
automatically after all? This should not been that difficult question to
anyone more familiar with VS or for any Microsoft support staff...

Apr 19 '07 #3

update to initial message. found this:
http://msdn.microsoft.com/newsgroups...ee5&sloc=en-us

tried all this as described in message as well as in original msdn
walkthrough:
1. copied service.asmx to SP server ISAPI folder (tried layouts aswell)
2. ran disco utility towards the service in both cases (also tried different
..net versions, a 1.1 and 2.0)

all I get is bunch of errors:

ERROR: http://devintra:8080/_layouts/HansaListings.asmx
- The document at the url http://devintra:8080/_layouts/HansaListings.asmx
was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'http://devintra:8080/_layouts/HansaListings.a smx' is 'The
document format is not recognized (the content type is 'text/html; charset
=utf-8').'.
- Report from 'DISCO Document' is 'Discovery document at the URL
http://devintra:8080/_layouts/1033/e...ErrorText=File Not Found. could
not be found.'.
- The document format is not recognized.
- Report from 'WSDL Document' is 'The document format is not recognized (the
content type is 'text/html; charset=utf-8').'.
- Report from 'XML Schema' is 'The document format is not recognized (the
content type is 'text/html; charset=utf-8').'.
If you would like more help, please type "disco /?".

if I make copy another SP services' *disco.aspx, the operation succeeds. so
I really dont understand here how the .NET should generate those files on the
server because the errors indicate that the disco.exe gets the same "Not
found" error page as myself when accessing the service?wsdl with browser.

Apr 19 '07 #4
"kris" <kr**@discussio ns.microsoft.co mwrote in message
news:0C******** *************** ***********@mic rosoft.com...
>
"John Saunders [MVP]" wrote:
>If you enter
http://sharepointsite.company.com/We...vice.asmx?WSDL, do
you
receive a WSDL back?

no I don't. and that is because I don't have any WSDL document.

I get an "File Not Found" error page generated by sharepoint and I
understand why - in Sharepoint each webservice have at least three files:
1. blah.asmx - webservice itself
2. blahwsdl.aspx - which contains the wsdl document
3. blahdisco.aspx - which is the .disco file

I only have the asmx. .disco is quite simple to generate, but wsdl is kind
of complicated thing, and would take quite a lot of time to develop by
hand.
that is why i am asking how to generate it.
I'm not familiar with Sharepoint web services. In normal .NET web services,
typing the "?WSDL" url causes .NET to generate the WSDL by using reflection
against the .asmx. If this doesn't work, then you may want to try posting in
a Sharepoint newsgroup. It would seem this is less of a .asmx problem and
more of a Sharepoint .asmx problem.
--

John Saunders [MVP]
Apr 19 '07 #5
I'm not familiar with Sharepoint web services. In normal .NET web services,
typing the "?WSDL" url causes .NET to generate the WSDL by using reflection
against the .asmx. If this doesn't work, then you may want to try posting in
a Sharepoint newsgroup. It would seem this is less of a .asmx problem and
more of a Sharepoint .asmx problem.
--
thanks mate, that answered my question. since we are not developing plain
..net applications but only in sharepoint context, i did not know that.

now i created separate virtual server on our dev environment, copied the
..asmx and everything looks like it should. thanks again.

Apr 20 '07 #6

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

Similar topics

2
1252
by: Shahid | last post by:
Hi, I have an xml document, example below. I would like to create an HTML form dynamically so all I would do is change the XML form in case a different version comes. I am relatively new to ASP.NET and any help would be greatly appreciated.
1
1683
by: CtRiX | last post by:
Hello... I have googled everywhere but still can't find a way to include a file in a webservice. What I want to do is spliting the main asmx into multiple files and include them in the main source. That would help a lot to have my code clear.
4
2707
by: Bamse | last post by:
Hi all, The problem is as follows: I need to authorize a user: through a WS; if a setting is on, the webservice will look in the local "database", if the setting is off it will connect to the server ip that is set in the configuration and call the same WS to check the user in the remote "database". So far I don't know if I can call a webservice method from a webservice method...
1
2303
by: Maxwell2006 | last post by:
Hi, How can I disable HttpGet and HttpPost access to my asmx webservice? Thank you,
1
1149
by: zoneal | last post by:
Making this as simple sounding as I can. I already have a form that generates an xml file. I could go 2 ways with it: cycle through the variables and move them as an array through the web service or move the whole entire xml file as a stream through the web service. So now to the part I need help at, I am stuck at actually generating the web service and the code on the form to move the data to the web service via button click. I am just...
3
3237
by: Haxan | last post by:
Hi, I need to consume a web service, but have only been given the http address e.g. "http://placea/xyz.COM:8080/myprog1". I would like to generate a wsdl and use it to reference this web service in ".Net" (C#) or any other way that will allow me consume the web service in ".Net". Thanks for the help.
1
1756
by: firenet | last post by:
21 function js_reply_msg(node,g_id,u_id,par_id) 22 { 23 node.innerHTML="<FORM><TEXTAREA name=\"msg_con\"><\/TEXTAREA><br><INPUT type=\"submit\" value=\"reply\"><\/FORM>" 24 node.nextSibling.nextSibling.innerHTML="" 25 } My thought is that when i clicked a link,the js function generate the Form,then get the input and deal with it.
2
430
by: pintu | last post by:
Hi Friends, I am creating one application in asp.net 2.0,c# and requirement is to open a winform while starting window and call the webservice to update some information entered in the form.Now my requirement is to use windows service to open the form..(Though i can use windows application and put the exe in start-up folder to fullfil my requirement)..And the form will take input from user. So is it possible to open any form from...
0
1382
by: mmaslar | last post by:
Can Visual Studio ('05 or '08) generate a WSDL file with an external Schema file? eg. Instead of placing the schema within the WSDL file, generate it in a separate XSD file? In other words... When I browse to the WSDL (http://localhost:4444/WebService1.asmx?wsdl) the schema is inline. I'd like it to be external. Any way of doing that? Yes I know the net result is the same, but this WSDL will become the "contract" for other systems -- and an...
0
8984
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...
1
9312
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9238
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...
1
6793
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
6073
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
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
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
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
2206
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.