标签: endpoint

找不到默认端点元素

我已经为web服务添加了代理到VS2008/.NET 3.5解决方案.构建客户端.NET时抛出此错误:

无法在ServiceModel客户端配置部分中找到引用合同"IMySOAPWebService"的默认端点元素.这可能是因为没有为您的应用程序找到配置文件,或者因为在客户端元素中找不到与此合同匹配的端点元素.

搜索此错误告诉我在合同中使用完整的命名空间.这是我的带有完整命名空间的app.config:

<client>
  <endpoint address="http://192.168.100.87:7001/soap/IMySOAPWebService"
            binding="basicHttpBinding" bindingConfiguration="IMySOAPWebServicebinding"
            contract="Fusion.DataExchange.Workflows.IMySOAPWebService" name="IMySOAPWebServicePort" />
</client>
Run Code Online (Sandbox Code Playgroud)

我正在运行XP本地(我之所以提到这是因为一些谷歌点击提到win2k3)app.config被复制到app.exe.config,所以这也不是问题.

有线索吗?

wcf wcf-binding endpoint .net-3.5

361
推荐指数
14
解决办法
34万
查看次数

什么是Web服务端点?

假设我的Web服务位于,http://localhost:8080/foo/mywebservice我的WSDL位于http://localhost:8080/foo/mywebservice?wsdl.

http://localhost:8080/foo/mywebservice一个端点,即它是否与我的Web服务的URI相同,或者SOAP消息收到和解组的位置是什么?

你能否向我解释它是什么以及它的目的是什么?

web-services terminology definition endpoint

311
推荐指数
6
解决办法
41万
查看次数

什么是端点?

我一直在阅读OAuth,它一直在讨论端点.什么是端点?

authentication api oauth endpoint

152
推荐指数
9
解决办法
15万
查看次数

资源和端点有什么区别?

我听过"资源"和"端点"都指的是同一件事.资源似乎是一个较新的术语.

他们之间有什么区别?"资源"是否意味着RESTful设计?

api rest uri endpoint restful-architecture

127
推荐指数
3
解决办法
12万
查看次数

内容类型text/xml; 服务不支持charset = utf-8

我有一个WCF服务的问题.我有一个控制台应用程序,我需要在不使用app.config的情况下使用该服务,因此我必须通过代码设置端点等.我有svc的服务引用,但我不能使用app.config.这是我的代码:

BasicHttpBinding binding = new BasicHttpBinding();

EndpointAddress address = new EndpointAddress("http://localhost:8731/WcfServicio/MiServicio");

MiServicioClient svc = new MiServicioClient(binding, address);
object ob = svc.PaisesObtener();
Run Code Online (Sandbox Code Playgroud)

在我的最后一行,svc.PaisesObtener()我得到错误:

Content Type text/xml; charset=utf-8 was not supported by service
http://localhost:8731/WcfServicio/MiServicio.  The client and service bindings may be mismatched.
Run Code Online (Sandbox Code Playgroud)

wcf endpoint

72
推荐指数
3
解决办法
13万
查看次数

Apache Camel:"直接:开始"端点 - 这是什么意思?

我是Apache Camel的新手.有人可以解释一下"直接:开始"在骆驼中的含义.请参阅

http://camel.apache.org/http

from("direct:start")
.to("http://myhost/mypath");
Run Code Online (Sandbox Code Playgroud)

谢谢.

apache apache-camel endpoint

47
推荐指数
3
解决办法
3万
查看次数

Spring问题:出现意外错误(type = Not Found,status = 404)

我正在阅读这本关于Spring的宁静网络服务的书.我决定放弃他们正在做的事情并使用java配置文件.出于某种原因,在切换到Java配置之后,服务将(在控制台窗口中)正确运行,但是当我实际上在localhost上运行端点时,我得到:

白标错误页面

此应用程序没有/ error的显式映射,因此您将此视为回退.

2016年4月23日星期六20:48:25 PDT 2016出现意外错误(type = Not Found,status = 404).没有可用的消息

这是GET请求的响应:

{
    "timestamp": 1461470029110,
    "status": 404,
    "error": "Not Found",
    "message": "No message available",
    "path": "/greeting"
}
Run Code Online (Sandbox Code Playgroud)

这个故事的下一章开始于我访问Spring网站上的入门页面http://spring.io/guides/gs/rest-service/我决定开始一个小项目重新创建他们的基本教程.我将发布下面编写的代码供您查看.问题是,我遇到了完全相同的问题.该服务运行但我无法点击端点.我不确定发生了什么,我看到其他人遇到类似的问题,但答案没有应用/帮助我的.我确信这是明显的,我做错了,任何帮助将不胜感激.最后一条信息,如果完全相关,我使用IntelliJ IDEA 15 CE作为我的IDE.

被点击的端点:

HTTP://本地主机:8080 /问候

我的控制器

 @RestController
    public class GreetingController
    {
        private static final String template = "Hello, %s!";
        private final AtomicLong counter = new AtomicLong();

        @RequestMapping("/greeting")
        public Greeting greeting(@RequestParam(value = "name", defaultValue = "World")String name)
        {
            return new Greeting(counter.incrementAndGet(), String.format(template, name));
        }
    }
Run Code Online (Sandbox Code Playgroud)

我的资源表示类

 public class Greeting …
Run Code Online (Sandbox Code Playgroud)

java spring spring-mvc endpoint maven

31
推荐指数
2
解决办法
6万
查看次数

WCF服务端点与主机基址

所以我对服务端点和主机基地址的含义感到困惑.在到目前为止我已经走过的所有示例中,他们讨论了使用所需绑定设置端点,并且您通常可以导航到这些端点

当我使用以下配置来设置和托管我的服务时,它似乎只暴露了主机的基地址.

    <configuration>
      <system.web>
        <compilation debug="true" />
      </system.web>
      <!-- When deploying the service library project, the content of the config file must be added to the host's
      app.config file. System.Configuration does not support config files for libraries. -->
      <system.serviceModel>
        <services>
          <service name="HostService.EvalService">
            <endpoint address="http://localhost:8080/basic"
              binding="basicHttpBinding" contract="HostService.IEvalService" />
            <endpoint address="http://localhost:8080/ws"
              binding="wsHttpBinding" contract="HostService.IEvalService" />
            <endpoint address="mex" binding="mexHttpBinding"
              name="mex" contract="IMetadataExchange" />
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:8080/EvalsService" />
              </baseAddresses>
            </host>
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
        </behaviors> …
Run Code Online (Sandbox Code Playgroud)

iis wcf config endpoint

27
推荐指数
3
解决办法
7万
查看次数

根据其数据类型"clientcontracttype",该值无效

我收到一条错误消息:

合同属性无效.根据其数据类型'clientcontracttype',该值无效

以下是此WCF应用程序的web.config中的端点配置.我正在使用.NET Framework 4.5和Visual Studio 2012.我已经验证合同OnlineReporting.Core.Contracts.IReportingInternalWcfPortal已经存在.

<endpoint address="http://localhost:63817/ReportingInternalWcfPortal.svc" 
          binding="basicHttpBinding" 
          bindingConfiguration="BasicHttpBinding" 
          contract="OnlineReporting.Core.Contracts.IReportingInternalWcfPortal" 
          name="ReportingInternalPortal" />
Run Code Online (Sandbox Code Playgroud)

wcf contract endpoint

25
推荐指数
3
解决办法
5万
查看次数

什么是Kubernetes的"终点"?

我是Kubernetes的新手并开始阅读文档.通常使用术语"端点",但文档缺乏明确的定义.

什么是Kubernetes的"终点"?它在哪里?

我可以想象'端点'是某个'节点'的某种接入点,但这只是猜测.

endpoint kubernetes

25
推荐指数
5
解决办法
9382
查看次数