views:

1062

answers:

2

I want to invoke a wcf service for testing on the http layer. I do not want to add a service reference and create a proxy and invoke. I want to create a new web test(VSTS) which sends a http request to the service and posts(Http post) the request in http body as an xml.

I have service metadata, with which I can see the datacontracts, but the wsdl:operation has only the operation name, wsdl:input is just blank.

On the Contary, an asmx service will have the soap request in the metadata which can be copied as the http request body, with the parameters replaced.

How to build a wcf service xml body from scratch just by looking at the service metadata (no access to the service logs as well), have got just the end point.

It is something like element1 element2

But, how to find out this, root has to be some thing like

(tested for a local service and worked)

Now, without having access to service logs(svctraceviewer logs), not able to add a service reference, not able to use svcutil.exe(certificate based service), just only with metadata - wsdl, is there a way to find out the request that is to be sent to service?

+1  A: 

Well, you will have to create proxy - either statically by adding a service reference or running svcutil on your service metadata, or you can construct it dynamically totally in code, if you wish.

In that case, you'd have to have your service contract (ISomethingService) at hand, and check out the ChannelFactory < ISomethingService > () concept - that should get you started.

Marc

marc_s
A: 

Or you can also use WCFStorm. It's a client for testing WCF services. It can inspect the WSDL and let you dynamically invoke the methods.