首页 \ 问答 \ 使用元数据的WCF服务发现(WCF service discovery with metadata)

使用元数据的WCF服务发现(WCF service discovery with metadata)

嗨,我正在寻找一个WCF示例,其中包括服务发现和发现/检测绑定类型的方法,我认为可以使用元数据交换完成。


Hi I'm looking for a WCF example which include service discovery and a way to discover/detect the binding type, I think it could be done using metadata exchange .


原文:https://stackoverflow.com/questions/5931891
更新时间:2023-04-14 07:04

最满意答案

我认为你可以坚持你的第一个解决方案。 只需要更改代理命令并确保跳转主机已安装nc

我使用像这样的代理命令

proxy = paramiko.ProxyCommand("ssh -o StrictHostKeyChecking=no jumphostIP nc targethostIP 22")

我发现这个WiKi非常有用http://en.wikibooks.org/wiki/OpenSSH/Cookbook/Proxies_and_Jump_Hosts正如我所做的那样,只使用实际值代替%h和%p。


So instead of using ProxyCommand I used port forwarding to solve my issue.

def getForwardedSSHPort(self, tunnnelHostName):
    forwarderClient = self.getSSHConnection(tunnnelHostName, None)
    transport = forwarderClient.get_transport()
    dest_addr = ('169.254.1.2', 22)
    local_addr = ('127.0.0.1', 10022)
    channel = transport.open_channel('direct-tcpip', dest_addr, local_addr)

    remoteClient = self.getSSHConnection( tunnnelHostName, channel)

相关问答

更多
  • ssh://user_git_server@git_server.dom/path/to/bare/repository/repo.git ^^^^^^^^^^^^^^ 您的存储库使用了错误的URL。 由于您的ssh配置文件具有git_server的主机条目, git_server您需要在存储库URL中使用该主机名,否则SSH将不会使用ProxyCommand。 正确的URL应该是 ssh://user_git_server@git_server/path/to ...
  • 此功能仅在Unix上启用unix功能时可用。 以及如何激活功能 在您的情况下,只需将此添加到您的货物清单: [dependencies.socket2] version = "0.3.7" features = ["unix"] This function is only available on Unix when the unix feature is activated. And How to activate a feature In your case just add this to your ...
  • 事实证明我的发射写得不正确。 io.to(clients[idA]).emit('sign_in', idA + ' has connected'); 应该 clients[idA].emit('sign_in', idA + ' has connected'); 也一定要分配 clients[idA] = socket; Turns out that my emit was written incorrectly. io.to(clients[idA]).emit('sign_in', idA + ...
  • 您需要使用通道编号(或代码中的端口号),而不是将UUID用于L2CAP套接字。 要连接到wiimote,您需要单独打开套接字以进行控制(从应用程序到wiimote的命令)和数据(从wiimote到应用程序的输入)通道。 private static final int CONTROL_CHANNEL = 0x11; private static final int DATA_CHANNEL = 0x13; private BluetoothSocket controlSocket; private Blu ...
  • 套接字的创建很少失败,除非无效的参数或极低的资源条件(但在这些情况下通常没有任何工作,因此尝试恢复是不可能的任务)。 在运行时会失败的是例如一个listen调用,因为另一个进程已经在同一个端口上监听。 在Windows套接字创建通常失败,因为winsock初始化调用尚未执行。 这是国际海事组织在API中的一个可怕的设计错误(太糟糕了,这让我认为这是一个故意的尝试,以防止可移植性,没有真正的原因)。 Socket creation rarely fails except for invalid paramet ...
  • 我一直在编写代码几天,最后让它工作。 无视我的代码中的所有其他小缺陷,如不正确使用.isconnected()和Toast消息,事实证明问题与我的蜂窝数据有关。 原来我的蜂窝数据不知何故干扰了WiFi网络。 只要我关闭数据,它就开始工作。 I've been working on the code for a few days and finally have it working. Disregarding all the other minor flaws in my code, such as the ...
  • 我认为你可以坚持你的第一个解决方案。 只需要更改代理命令并确保跳转主机已安装nc 我使用像这样的代理命令 proxy = paramiko.ProxyCommand("ssh -o StrictHostKeyChecking=no jumphostIP nc targethostIP 22") 我发现这个WiKi非常有用http://en.wikibooks.org/wiki/OpenSSH/Cookbook/Proxies_and_Jump_Hosts正如我所做的那样,只使用实际值代替%h和%p。 So ...
  • 如果您要搜索要绑定的地址,例如,通过getaddrinfo,您通常需要绑定到您找到的所有地址。 否则,在具有多个适配器的计算机上,您的服务将仅在随机选择的单个适配器上可用; 即使只有一个适配器,您也可能绑定到错误的协议(如本例所示)。 我认为通常的方法是绑定到IPv4中的“任意”地址0.0.0.0,如bind文档中所述: 如果应用程序不关心分配了哪个本地地址,请为IPv4本地地址指定常量值INADDR_ANY,或者在name参数的sa_data成员中为IPv6本地地址指定常量值in6addr_any。 If ...
  • 不要使用netcat。 代理服务器上可能不允许这样做。 使用-W开关: ssh -o ProxyCommand='ssh -W %h:%p eran@proxy_server' eran@inner_server Do not use netcat. It is probably not allowed on the proxy server. Use -W switch: ssh -o ProxyCommand='ssh -W %h:%p eran@proxy_server' eran@inner_se ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)