I have a small program that exposes an interface via soap as follows:
HttpChannel ipc = new HttpChannel( nPort );
ChannelServices .RegisterChanne l( ipc, false );
RemotingConfigu ration.Register WellKnownServic eType(
typeof(WsdlClie nt.CJLResponse) , "JLSoapResponse .rem",
WellKnownObject Mode.Singleton );
This works fine. Note that the port the program is listening on varies. This
allows for multiple instances of the program to run concurrently.
I want to convert this to its WCF equivalent.
I am current using the following configuration which works for a single
instance but not for multiple.
<system.service Model>
<services>
<service name="WsdlClien t.CJLResponse"
behaviorConfigu ration="SoapRsp Service">
<host>
<baseAddresse s>
<add baseAddress="ht tp://xx.xx.xx.xx:530 0/JLSoapResponse. wcf"/>
</baseAddresses>
</host>
<endpoint address=""
binding="basicH ttpBinding" bindingConfigur ation="SoapRspB indingBasicHttp "
contract="JLSoa pCommon.IJLSoap Response" />
</service>
</services>
<bindings>
<basicHttpBindi ng>
<binding name="SoapRspBi ndingBasicHttp"
maxReceivedMess ageSize="65536" >
<readerQuotas maxStringConten tLength="65536"/>
<security mode="None">
<transport clientCredentia lType="None" />
</security>
</binding>
</basicHttpBindin g>
</bindings>
<behaviors>
<serviceBehavio rs>
<behavior name="SoapRspSe rvice">
<serviceMetadat a httpGetEnabled= "true" httpsGetEnabled ="false" />
<serviceDebug includeExceptio nDetailInFaults ="true" />
</behavior>
</serviceBehavior s>
</behaviors>
<diagnostics>
<messageLoggi ng logEntireMessag e="true"
logMalformedMes sages="true"
logMessagesAtSe rviceLevel="tru e"
logMessagesAtTr ansportLevel="t rue"
maxMessagesToLo g="100">
</messageLogging>
</diagnostics>
</system.serviceM odel>
--
Scott
HttpChannel ipc = new HttpChannel( nPort );
ChannelServices .RegisterChanne l( ipc, false );
RemotingConfigu ration.Register WellKnownServic eType(
typeof(WsdlClie nt.CJLResponse) , "JLSoapResponse .rem",
WellKnownObject Mode.Singleton );
This works fine. Note that the port the program is listening on varies. This
allows for multiple instances of the program to run concurrently.
I want to convert this to its WCF equivalent.
I am current using the following configuration which works for a single
instance but not for multiple.
<system.service Model>
<services>
<service name="WsdlClien t.CJLResponse"
behaviorConfigu ration="SoapRsp Service">
<host>
<baseAddresse s>
<add baseAddress="ht tp://xx.xx.xx.xx:530 0/JLSoapResponse. wcf"/>
</baseAddresses>
</host>
<endpoint address=""
binding="basicH ttpBinding" bindingConfigur ation="SoapRspB indingBasicHttp "
contract="JLSoa pCommon.IJLSoap Response" />
</service>
</services>
<bindings>
<basicHttpBindi ng>
<binding name="SoapRspBi ndingBasicHttp"
maxReceivedMess ageSize="65536" >
<readerQuotas maxStringConten tLength="65536"/>
<security mode="None">
<transport clientCredentia lType="None" />
</security>
</binding>
</basicHttpBindin g>
</bindings>
<behaviors>
<serviceBehavio rs>
<behavior name="SoapRspSe rvice">
<serviceMetadat a httpGetEnabled= "true" httpsGetEnabled ="false" />
<serviceDebug includeExceptio nDetailInFaults ="true" />
</behavior>
</serviceBehavior s>
</behaviors>
<diagnostics>
<messageLoggi ng logEntireMessag e="true"
logMalformedMes sages="true"
logMessagesAtSe rviceLevel="tru e"
logMessagesAtTr ansportLevel="t rue"
maxMessagesToLo g="100">
</messageLogging>
</diagnostics>
</system.serviceM odel>
--
Scott
Comment