none
cannot find WCF endpoint with name RRS feed

  • Question

  • I have RESTFUL WCF with web.config looks like

    	<system.serviceModel>
    		<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    		<bindings>
    			<basicHttpBinding>
    				<binding name="ServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
    					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    					<security mode="Transport">
    						<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
    						<message clientCredentialType="UserName" algorithmSuite="Default" />
    					</security>
    				</binding>
    				<binding name="basicHttpBindingConfig" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
    					<security mode="None" />
    					<readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    				</binding>
    				<binding name="basicHttpBindingConfig2" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
    					<security mode="None" />
    					<readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    				</binding>
    				<binding name="secureBasicHttpBindingConfig" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
    					<security mode="Transport" />
    					<readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    				</binding>
    			</basicHttpBinding>
    		</bindings>
    		<behaviors>
    			<serviceBehaviors>
    				<behavior name ="servicebehavior">
    					<serviceMetadata httpGetEnabled="true"/>
    					<serviceDebug includeExceptionDetailInFaults="false"/>
    				</behavior>
    			</serviceBehaviors>
    			<endpointBehaviors>
    				<behavior name="restbehavior">
    					<webHttp/>
    				</behavior>
    			</endpointBehaviors>
    		</behaviors>
    		<services>
    			<service name="Schools.WebService.SchoolsWebService" behaviorConfiguration ="servicebehavior">
    		
    			<endpoint name="SOAPEndPoint" binding="basicHttpBinding"  contract="Schools.WebService.ISchoolsWebService" address ="soap"/>
    			<endpoint name="RESTEndPoint" binding="webHttpBinding"  contract="Schools.WebService.ISchoolsWebService" address ="rest" behaviorConfiguration ="restbehavior"/>
    			<endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
    
    			</service>
    		</services>
    
    	</system.serviceModel>
    

    but when create webrefrence  to use (SOAP) by

    _tempClient = new ArabicEWorldWebServiceClient("SOAPEndPoint");

    I got error

    Could not find endpoint element with name 'SOAPEndPoint' and contract 'SchoolsWebServiceClientInstance.ISchoolsWebService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.

    Friday, June 6, 2014 10:17 PM

Answers

  • Hi,

    It will be better if you can try to post your client config file here.

    Then please try to put the service address in IE to see if it works.

    Also it seems that in your client config file you do not use the endpoint name with 'SOAPEndPoint', then your client config file should be something like the following:

     <client>
        <endpoint address="http://.........../soap"
                  binding="basicHttpBinding" 
    contract="ServiceReference1.ISchoolsWebService"
    name="SOAPEndPoint" />
    ................................... </client>

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Monday, June 9, 2014 7:17 AM
    Moderator