uksp
uksp

Reputation: 25

Wcf web service

I have a WCF web servive which I have hosted on same network PC(not where client application run). When I try to add service reference to client application the following error is raised...

Note: I can access the web service through web browser where client application runs

Microsoft Visual Studio

There was an error downloading 'ipaddress/uploads/TransferService.svc/_vti_bin/ListData.svc/$metadata'.

The request failed with HTTP status 400: Bad Request.

Metadata contains a reference that cannot be resolved: [/ipaddress/uploads/TransferService.svc].

Content Type application/soap+xml; charset=utf-8 was not supported by service ipaddress/uploads/TransferService.svc. The client and service bindings may be mismatched.

The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not supported by service ipaddress/uploads/TransferService.svc. The client and service bindings may be mismatched. The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'.. If the service is defined in the current solution, try building the solution and adding the service reference again.

Anyone please help in this??

Upvotes: 0

Views: 927

Answers (1)

Sergey Kolodiy
Sergey Kolodiy

Reputation: 5899

If your target framework is 4.5 or higher, you can try to download service as a single WSDL — just append ?singleWSDL to the URI when requesting metadata from the service.

Upvotes: 1

Related Questions