启动WCF服务
使用soapUI测试WCF服务
可以使用soapUI来对WCF服务进行测试。soapUI是一款用于测试Web Service的工具软件。有关soapUI的更多信息,请参考http://www.soapui.org。
1: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
2: <soapenv:Header/>
3: <soapenv:Body>
4: <tem:CreateBook>
5: <!--Optional:-->
6: <tem:title>Essential .NET, Volume 1: The Common Language Runtime</tem:title>
7: <!--Optional:-->
8: <tem:publisher>Addison Wesley</tem:publisher>
9: <!--Optional:-->
10: <tem:pubDate>2002-11-01</tem:pubDate>
11: <!--Optional:-->
12: <tem:isbn>0-201-73411-7</tem:isbn>
13: <!--Optional:-->
14: <tem:pages>432</tem:pages>
15: </tem:CreateBook>
16: </soapenv:Body>
17: </soapenv:Envelope>
1: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
2: <s:Body>
3: <CreateBookResponse xmlns="http://tempuri.org/">
4: <CreateBookResult>161891709900001</CreateBookResult>
5: </CreateBookResponse>
6: </s:Body>
7: </s:Envelope>
1: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
2: <soapenv:Header/>
3: <soapenv:Body>
4: <tem:GetAllBooks/>
5: </soapenv:Body>
6: </soapenv:Envelope>
1: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
2: <s:Body>
3: <GetAllBooksResponse xmlns="http://tempuri.org/">
4: <GetAllBooksResult xmlns:a="http://schemas.datacontract.org/2004/07/TinyLibrary.QueryObjects"
5: xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
6: <a:BookObject>
7: <a:AggregateRootId>161891709900001</a:AggregateRootId>
8: <a:ISBN>0-201-73411-7</a:ISBN>
9: <a:Id>1</a:Id>
10: <a:LendTo/>
11: <a:Lent>false</a:Lent>
12: <a:Pages>432</a:Pages>
13: <a:PubDate>2002-11-01T00:00:00</a:PubDate>
14: <a:Publisher>Addison Wesley</a:Publisher>
15: <a:Title>Essential .NET, Volume 1: The Common Language Runtime</a:Title>
16: </a:BookObject>
17: </GetAllBooksResult>
18: </GetAllBooksResponse>
19: </s:Body>
20: </s:Envelope>
运行应用程序
使用Apworks开发基于CQRS架构的应用程序【运行应用程序】
原文:http://blog.csdn.net/zhixiang2010/article/details/18838307