Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SharePoint Web Service Error

$
0
0

Hi,

I've connected to a web service and when I run my timer job I'm getting the following error:

Could not find endpoint element with name 'Port' and contract 'PortType' 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.

My app.config settings are:

<configuration>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="SOAPBinding" 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="None">
                        <transport clientCredentialType="None" proxyCredentialType="None"
                            realm="" />
                        <message clientCredentialType="UserName" algorithmSuite="Default" />
                    </security>
                </binding>                              
            </basicHttpBinding>
            <customBinding>               
            </customBinding>
        </bindings>
        <client>
            <endpoint address="http://webserviceURL.wsdl"
                binding="basicHttpBinding" bindingConfiguration="SOAPBinding"
                contract="ServiceReference1.PortType" name="SOAPPort" />          
        </client>
    </system.serviceModel>
</configuration>

I did copy over the contents of app.config file into the web.config file, did an IISRESET and still getting the same error above.

Can any one please help.

Thanks.

KP


KP


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>