473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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\ISAPI 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 70426
"kris" <kr**@discussions.microsoft.comwrote in message
news:F0**********************************@microsof t.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\ISAPI 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.asmx' 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**@discussions.microsoft.comwrote in message
news:0C**********************************@microsof t.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
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...
1
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...
4
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...
1
by: Maxwell2006 | last post by:
Hi, How can I disable HttpGet and HttpPost access to my asmx webservice? Thank you,
1
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...
3
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...
1
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 ...
2
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...
0
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......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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
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...

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.