Forum Discussion

DavidR's avatar
DavidR
New Member
10 years ago

Sending configuration files

In order that data can be read back from the many, many methods avialable in our API, a config file needs to be sent which includes a licence key.

 

An example of this file is below.

 

What I could do with knowing is where I can insert this on a Soap project to do the right job. Any help greatfully received!

 

Thanks

David

 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.serviceModel>
        <behaviors>
            <endpointBehaviors>
                <behavior name="NewBehavior">
                    <dataContractSerializer maxItemsInObjectGraph="65536000" />
                </behavior>
            </endpointBehaviors>
        </behaviors>
        <bindings>
            <wsHttpBinding>
                <binding name="WSHttpBinding_IProgressoMis" closeTimeout="00:11:00"
                    openTimeout="00:11:00" receiveTimeout="00:10:00" sendTimeout="00:11:00"
                    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                    maxBufferPoolSize="524288000" maxReceivedMessageSize="524288000"
                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="524288000" maxArrayLength="524288000"
                        maxBytesPerRead="524288000" maxNameTableCharCount="524288000" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
                        enabled="false" />
                    <security mode="Transport">
                        <transport clientCredentialType="None" proxyCredentialType="None"
                            realm="" />
                        <message clientCredentialType="Windows" negotiateServiceCredential="true"
                            establishSecurityContext="true" />
                    </security>
                </binding>
            </wsHttpBinding>
        </bindings>
        <client>
            <endpoint address="https://api.progresso.net/Services/PerCall/contacts.svc"
                behaviorConfiguration="NewBehavior" binding="wsHttpBinding"
                bindingConfiguration="WSHttpBinding_IProgressoMis" contract="IProgressoMis"
                name="WSHttpBinding_IProgressoMis">
                <headers>
                    <Partner xmlns="Progresso">ilc1ieD32i04Xce2CaRPVQdOSselrX80TFfD+ff68OJlxFqdYvSTsc0RpwZOgObwpIcia8odLKtLMJS9UKPMbPlfsMb3/g+iZe2IEqpjzcMWPh9Yf8SCNd+LiFsk7/M8TgKpKk7Q9CGScDnntaEgh7sVf08RTiI0vhIp8jo1eZY=</Partner>
                    <SchoolId xmlns="Progresso">25441</SchoolId>
                </headers>
            </endpoint>
        </client>
    </system.serviceModel>
</configuration>

 

  • nmrao's avatar
    nmrao
    Champion Level 3

    David,

     

    Can you provide more information which you were talking about?

    What xml file was that?

    Was that from free version of soapui?