Hello!
I'm reading through David Palmann's book Programming Indigo and also trying
all
samples that are written in this book. I made successfully "hello1" sample
in Chapter 3, but sample "hello2" makes me problems. I went successfully
through
seven steps, creating the service, bulding the service, creating .svc file,
configuration file,
virtual directory and testing service with browser.
When I test service with browser i get following:
INPUT:
http://localhost/hello2/service.svc
OUTPUT:
<%@Service language=c# Debug="true" class="ProgrammingIndigo.HelloService"
%>
<%@Assembly Name="service" %>
I also wrote the code for client. I can't continue with eight step, where
proxy code for the client
is generated. When i use svcutil i get following:
INPUT:
svcutil http://localhost/hello2/service.svc
OUTPUT:
----------------------------------------------------------------------------------------------------
Error: Unable to obtain Metadata from the Uri provided
Error: WS-MetadataExchange Failed on
URI:http://localhost/hello2/service.svc
The remote server returned an unexpected response: (405) Method not
allowed.
Error: HTTP Get failed on URI:http://localhost/hello2/service.svc
The document at the url http://localhost/hello2/service.svc was not
recogniz
ed as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'system.web.services.discovery.discoverydocumentreference' is
'Nam
e cannot begin with the '%' character, hexadecimal value 0x25. Line 1,
position
2.'.
- Report from 'system.web.services.discovery.contractreference' is 'There is
an
error in the XML document.'.
- Name cannot begin with the '%' character, hexadecimal value 0x25. Line
1, po
sition 2.
- Report from 'system.web.services.discovery.schemareference' is 'Name
cannot be
gin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'.
If you would like more help, please type "svcutil /?"
----------------------------------------------------------------------------------------------------
Any help will be appreciated.
Thank you.
Saso
|