473,699 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Geting meta data from Web Service

Hello,
I was trying to do a WCF tutorial (http://wcf.netfx3.com/content/
BuildingHelloWo rld.aspx). I need to get the meta data from my service
usin svcutil.exe why is not working? Please see below:
E:\Program Files\Microsoft SDKs\Windows\v6 .0\Bin>svcutil http://localhost/hello?wsdl
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version
3.0.4506.30]
Copyright (c) Microsoft Corporation. All rights reserved.

Attempting to download metadata from 'http://localhost/hello?wsdl'
using WS-Metadata Exchange or
DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version
3.0.4506.30]
Copyright (c) Microsoft Corporation. All rights reserved.

Error: Cannot obtain Metadata from http://localhost/hello?wsdl

If this is a Windows (R) Communication Foundation service to which you
have access, please check
that you have enabled metadata publishing at the specified address.
For help enabling metadata
publishing, please refer to the MSDN documentation at
http://go.microsoft.com/fwlink/?LinkId=65
455.
WS-Metadata Exchange Error
URI: http://localhost/hello?wsdl

Metadata contains a reference that cannot be resolved: 'http://
localhost/hello?wsdl'.

Content Type application/soap+xml; charset=utf-8 was not supported
by service http://localho
st/hello?wsdl. The client and service bindings may be mismatched.

The remote server returned an error: (415) Cannot process the
message because the content ty
pe 'application/soap+xml; charset=utf-8' was not the expected type
'text/xml; charset=utf-8'..
HTTP GET Error
URI: http://localhost/hello?wsdl

The HTML document does not contain Web service discovery
information.

If you would like more help, type "svcutil /?"

E:\Program Files\Microsoft SDKs\Windows\v6 .0\Bin>

Apr 26 '07 #1
4 37228
Dylan,

If you go to http://localhost/hello?wsdl in your browser, do you get
anything?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Dylan" <dy********@gma il.comwrote in message
news:11******** ************@b4 0g2000prd.googl egroups.com...
Hello,
I was trying to do a WCF tutorial (http://wcf.netfx3.com/content/
BuildingHelloWo rld.aspx). I need to get the meta data from my service
usin svcutil.exe why is not working? Please see below:
E:\Program Files\Microsoft SDKs\Windows\v6 .0\Bin>svcutil
http://localhost/hello?wsdl
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version
3.0.4506.30]
Copyright (c) Microsoft Corporation. All rights reserved.

Attempting to download metadata from 'http://localhost/hello?wsdl'
using WS-Metadata Exchange or
DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version
3.0.4506.30]
Copyright (c) Microsoft Corporation. All rights reserved.

Error: Cannot obtain Metadata from http://localhost/hello?wsdl

If this is a Windows (R) Communication Foundation service to which you
have access, please check
that you have enabled metadata publishing at the specified address.
For help enabling metadata
publishing, please refer to the MSDN documentation at
http://go.microsoft.com/fwlink/?LinkId=65
455.
WS-Metadata Exchange Error
URI: http://localhost/hello?wsdl

Metadata contains a reference that cannot be resolved: 'http://
localhost/hello?wsdl'.

Content Type application/soap+xml; charset=utf-8 was not supported
by service http://localho
st/hello?wsdl. The client and service bindings may be mismatched.

The remote server returned an error: (415) Cannot process the
message because the content ty
pe 'application/soap+xml; charset=utf-8' was not the expected type
'text/xml; charset=utf-8'..
HTTP GET Error
URI: http://localhost/hello?wsdl

The HTML document does not contain Web service discovery
information.

If you would like more help, type "svcutil /?"

E:\Program Files\Microsoft SDKs\Windows\v6 .0\Bin>

Apr 26 '07 #2
If you use a "hello world" svc file hosted in IIS (which you can get
by installing the WCF/WPF CTP onto VS2005), then simply browsing to
the svs tells you exactly how to enable mex. To quote (and note the
link at the bottom):

=============== =

Service
This is a Windows© Communication Foundation service.

Metadata publishing for this service is currently disabled.

If you have access to the service, you can enable metadata publishing
by completing the following steps to modify your web or application
configuration file:

1. Create the following service behavior configuration, or add the
<serviceMetadat aelement to an existing service behavior
configuration:

<behaviors>
<serviceBehavio rs>
<behavior name="MyService TypeBehaviors" >
<serviceMetadat a httpGetEnabled= "true" />
</behavior>
</serviceBehavior s>
</behaviors>

2. Add the behavior configuration to the service:

<service name="MyNamespa ce.MyServiceTyp e"
behaviorConfigu ration="MyServi ceTypeBehaviors " >

Note: the service name must match the configuration name for the
service implementation.

3. Add the following endpoint to your service configuration:

<endpoint contract="IMeta dataExchange" binding="mexHtt pBinding"
address="mex" />

Note: your service must have an http base address to add this
endpoint.

The following is an example service configuration file with metadata
publishing enabled:

<configuratio n>
<system.service Model>

<services>
<!-- Note: the service name must match the configuration
name for the service implementation. -->
<service name="MyNamespa ce.MyServiceTyp e"
behaviorConfigu ration="MyServi ceTypeBehaviors " >
<!-- Add the following endpoint. -->
<!-- Note: your service must have an http base address
to add this endpoint. -->
<endpoint contract="IMeta dataExchange"
binding="mexHtt pBinding" address="mex" />
</service>
</services>

<behaviors>
<serviceBehavio rs>
<behavior name="MyService TypeBehaviors" >
<!-- Add the following element to your service
behavior configuration. -->
<serviceMetadat a httpGetEnabled= "true" />
</behavior>
</serviceBehavior s>
</behaviors>

</system.serviceM odel>
</configuration>

For more information on publishing metadata please see the following
documentation: http://go.microsoft.com/fwlink/?LinkId=65455.

Apr 26 '07 #3
On Apr 26, 1:41 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
Dylan,

If you go tohttp://localhost/hello?wsdlin your browser, do you get
anything?

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om

"Dylan" <dylanjh...@gma il.comwrote in message

news:11******** ************@b4 0g2000prd.googl egroups.com...
Hello,
I was trying to do a WCF tutorial (http://wcf.netfx3.com/content/
BuildingHelloWo rld.aspx). I need to get the meta data from my service
usin svcutil.exe why is not working? Please see below:
E:\Program Files\Microsoft SDKs\Windows\v6 .0\Bin>svcutil
http://localhost/hello?wsdl
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version
3.0.4506.30]
Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from 'http://localhost/hello?wsdl'
using WS-Metadata Exchange or
DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version
3.0.4506.30]
Copyright (c) Microsoft Corporation. All rights reserved.
Error: Cannot obtain Metadata fromhttp://localhost/hello?wsdl
If this is a Windows (R) Communication Foundation service to which you
have access, please check
that you have enabled metadata publishing at the specified address.
For help enabling metadata
publishing, please refer to the MSDN documentation at
http://go.microsoft.com/fwlink/?LinkId=65
455.
WS-Metadata Exchange Error
URI:http://localhost/hello?wsdl
Metadata contains a reference that cannot be resolved: 'http://
localhost/hello?wsdl'.
Content Type application/soap+xml; charset=utf-8 was not supported
by servicehttp://localho
st/hello?wsdl. The client and service bindings may be mismatched.
The remote server returned an error: (415) Cannot process the
message because the content ty
pe 'application/soap+xml; charset=utf-8' was not the expected type
'text/xml; charset=utf-8'..
HTTP GET Error
URI:http://localhost/hello?wsdl
The HTML document does not contain Web service discovery
information.
If you would like more help, type "svcutil /?"
E:\Program Files\Microsoft SDKs\Windows\v6 .0\Bin>- Hide quoted text -

- Show quoted text -
Hi,

When I put http://localhost/hello?wsdlin in the browser,

I get the Service page and this message at the top: "Metadata
publishing for this service is currently disabled"
I guess I have not hosted my the service properly and have not enabled
metadata publishing.

Dylan

Apr 27 '07 #4
I guess I have not hosted my the service properly and have not enabled
metadata publishing.
The two aren't related. The fact you see something other thant a
yellow-screen-of-death tells me it is hosted fine. Metadata publishing
isn't enabled by default, but just follow the steps it cites.

Marc

Apr 27 '07 #5

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

Similar topics

2
1379
by: Rob Meade | last post by:
Hi all, I have a page where a user can edit the meta tags for the page which are then written dynamically at the time of the page being redendered. I was wondering today whether this actually works or not? ie, if a search engine (google or whatever) is trawling a site, does it only read html pages? What happens when it encounters an .asp? Surely it wouldn't execute it and therefore be able to read the meta data correctly?
1
3120
by: JohnLH | last post by:
Hi, I am trying to get the meta data of a sequence that I created out from the system catalogs, so that I can reconstruct the SQL Statement. I need this for pre and post PG 7.3 ... or either. I have read through the documentation and the past postings and can't seem to find any reference to the topic. I currently can execute this statement to create the Sequence ...
0
1120
by: Hans Oesterholt-Dijkema | last post by:
Hi, I'm looking for a way to represent meta data using an XML Schema. However, I'm running into a small problem: 1. I want to have meaningfull XML tags 2. I want my meta data to be able to extend "runtime".
0
1565
by: Shakil Khan | last post by:
Hi there ... My question is about Meta Data which is automatically saved with some files. For example,when an MS Office Documents is saved, it automaticaly save some extra information with the file such as Author, Title, Description. Whenever we see the list of files in normal windows explorer, it will show you the meta data as well without even opening that file. Similarly when you Right-Click on a zip file to check its file properties...
0
1039
by: Sunil Sabir | last post by:
Dear All Actually I a bit confused about this Meta Data attribute meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5 What I think it means that the default Web browser we are targeting is Internet explorer 5 . But I still can' understand the URL " http://schemas.microsoft.com/intellisense/ie5". Can any 1 plz tell me what this UR actually means Any help much appreciated
5
1823
by: BerndWill | last post by:
Hello everybody, please help me with this topic: Working at a big company (+100.000 employees worldwide), we have an amount of data centers and shared services where our webservers, backend server etc. are located. Now it happens from time to time, that certificates are expired and instead of our data centers organizing new certificates in time, we often are faced
2
2512
by: boarderstu | last post by:
Hi All, I'm looking for some tuts or advice on reading Meta data from files - preferably Exif data, any body got any advice on this? ta
4
23192
by: amphibian1 | last post by:
I'm trying to write a C# application that iterates through a collection of Microsoft Office documents and standardizes the meta data of those documents (e.g. the author and company name). Unfortunately, I can't seem to figure out what libraries/classes I should use to do this, if they exist at all. I have looked at the Microsoft.Office.Core namespace, but it seems that namespace only gives you a bunch of interfaces and no actual classes. ...
5
2885
by: greek_bill | last post by:
Hi, I'm trying to develop a system where I can register some data/ information about a class. For example // ClassInfo.h template <class T> struct ClassInfo { static const std::string tagName;
0
8685
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
8613
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
9172
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
9032
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...
1
8908
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,...
1
6532
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...
1
3054
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
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
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.