ServiceMonikerSample
Questo esempio mostra un client che può essere usato con l'esempio TCP MetadataExchange. Usa il moniker del servizio WCF.
PurchaseOrderClient.vbs
set obj = GetObject("service:mexAddress='net.tcp://localhost/example/mex', address='net.tcp://localhost/example', contract='IPurchaseOrder', contractNamespace='http://example.org', binding=PurchaseOrderBinding, bindingNamespace='http://example.org'")
for i = 1 to 100
orderId = obj.Order(i,"Pencil", date)
Wscript.Echo orderId, date
Next