如何使用WCF测试客户端测试WCF端点
当我运行WCF测试客户端时,我在一个系统中只看到两个“端点”-如何使用WCF测试客户端测试WCF端点,wcf,wcftestclient,Wcf,Wcftestclient,当我运行WCF测试客户端时,我在一个系统中只看到两个“端点”-BasichtpBinding\u MyService和WSHttpBinding\u MyService 现在,系统接受多种不同类型的请求,这些请求以请求数组(request[])的形式传递到端点(据我所知) 这似乎很好,但我如何使用WCF测试客户机来构造这些请求对象(或者实际上是数组)之一以发送到服务端点并不明显。双击clientRequest(包含子请求的超级请求)的Requests参数的值,启用文本输入。我猜条目的格式可能类似
BasichtpBinding\u MyService
和WSHttpBinding\u MyService
现在,系统接受多种不同类型的请求,这些请求以请求数组(request[]
)的形式传递到端点(据我所知)
这似乎很好,但我如何使用WCF测试客户机来构造这些请求对象(或者实际上是数组)之一以发送到服务端点并不明显。双击clientRequest
(包含子请求的超级请求)的Request
s参数的值,启用文本输入。我猜条目的格式可能类似于JSON,但我不知道
有没有人可以在这里分享相关经验?我总是通过将URL作为参数传递给我的服务来启动WcfTestClient,然后在所有内容初始化后,选择操作,填写任何参数并单击“调用”。参数的格式由其函数签名决定。因此,如果您需要一个int,请输入一个有效的int。这里不需要JSON 当我测试/调试WCF服务时,我发现这个小宝石非常方便 从WcfTestService启动面板:
To add a service:
. Select “Add Service” from the File menu or the context menu of the "My Service Projects"
. Enter the service metadata address in the input area, and click "OK"
To test a service operation:
. Double click the operation you want to test from the tree on the left pane
. A new tab page will appear on the right pane
. Enter the value of parameters in the Request Area of the right pane
. Click "Invoke" button
我希望这能有所帮助。我总是通过将URL作为参数传递给我的服务来启动WcfTestClient,然后在所有内容初始化后,选择操作,填写任何参数并单击“调用”。参数的格式由其函数签名决定。因此,如果您需要一个int,请输入一个有效的int。这里不需要JSON 当我测试/调试WCF服务时,我发现这个小宝石非常方便 从WcfTestService启动面板:
To add a service:
. Select “Add Service” from the File menu or the context menu of the "My Service Projects"
. Enter the service metadata address in the input area, and click "OK"
To test a service operation:
. Double click the operation you want to test from the tree on the left pane
. A new tab page will appear on the right pane
. Enter the value of parameters in the Request Area of the right pane
. Click "Invoke" button
我希望这能有所帮助。看起来SoapUI很有帮助。看起来SoapUI很有用。