简体   繁体   English

从Java调用(soap.tcp)上公开的C#Web服务

[英]Calling C# web service exposed on (soap.tcp) from Java

I found it is quite easy to create a .Net client to invoke a service with soap.tcp protocol. 我发现创建.Net客户端以使用soap.tcp协议调用服务非常容易。

Uri destinationUri = new Uri("soap.tcp://SomeHostName/SomePath");
Uri destinationUri = new Uri("http://SomeHostName/SomePath");
EndpointReference destination = new EndpointReference(destinationUri);
SoapSender sender = new SoapSender(destination);

But I need to create a Java client instead of a .Net client to the same URI (soap.tcp://SomeHostName/SomePath). 但是我需要为相同的URI(soap.tcp:// SomeHostName / SomePath)创建Java客户端而不是.Net客户端。 Is it possible with Java with this protocol (soap.tcp) to invoke a web service. 使用此协议的Java(soap.tcp)是否可以调用Web服务。

Also I found the same question is asked http://bytes.com/topic/java/answers/879818-calling-c-web-service-soap-tcp-java 我也发现有人问了同样的问题http://bytes.com/topic/java/answers/879818-calling-c-web-service-soap-tcp-java

Basically you can do that by implementing the "soap.tcp"-protocol as described by MS: 基本上,您可以通过实现MS描述的“ soap.tcp”协议来做到这一点:

I don't know of anyone having done that... so it will be a major undertaking... "soap.tcp" is NOT made for interoperability... SOAP over HTTP is interoperable and should be used in cases like yours... 我不知道有人这样做过……所以这将是一项重大的任务……“ soap.tcp”不是为实现互操作性而设计的……基于HTTP的SOAP是可互操作的,应该在像您这样的情况下使用。 ..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM