SPRNET-1324 - Add namespace parser for WCF integration
This commit is contained in:
@@ -224,26 +224,21 @@
|
||||
<title>Creating client side proxies declaratively</title>
|
||||
|
||||
<para>To create a client side proxy based on the use of
|
||||
ChannelFactory<T>, you can use this rather ugly 'boiler plate' XML
|
||||
snippit that takes uses Spring's support for calling factory methods on
|
||||
object instances.</para>
|
||||
ChannelFactory<T>, you can use Spring's WCF schema to create an
|
||||
instance of the interface that will communicate over a WCF channel. See
|
||||
section on the <link linkend="xsd-config-body-schemas-wcf">Spring WCF
|
||||
Schema</link> for more information.</para>
|
||||
|
||||
<programlisting language="myxml"> <!-- returns ChannelFactory<ICalculator>("calculatorEndpoint").CreateChannel() -->
|
||||
<programlisting language="myxml"><objects xmlns="http://www.springframework.net"
|
||||
xmlns:wcf="http://www.springframework.net/wcf">
|
||||
|
||||
<object id="serverAppCalculator" type="Spring.WcfQuickStart.ICalculator, Spring.WcfQuickStart.ClientApp"
|
||||
factory-object="serverAppCalculatorChannelFactory"
|
||||
factory-method="CreateChannel" />
|
||||
<!-- returns ChannelFactory<ICalculator>("calculatorEndpoint").CreateChannel() -->
|
||||
|
||||
<object id="serverAppCalculatorChannelFactory"
|
||||
type="System.ServiceModel.ChannelFactory&lt;Spring.WcfQuickStart.ICalculator>, System.ServiceModel">
|
||||
|
||||
<constructor-arg name="endpointConfigurationName" value="serverAppCalculatorEndpoint" />
|
||||
|
||||
</object></programlisting>
|
||||
|
||||
<note>
|
||||
<para>This will be shortened using a custom namespce in a future release</para>
|
||||
</note>
|
||||
<wcf:channelFactory id="serverAppCalculator"
|
||||
channelType="Spring.WcfQuickStart.ICalculator, Spring.WcfQuickStart.Contracts"
|
||||
endpointConfigurationName="serverAppCalculatorEndpoint" />
|
||||
|
||||
</objects></programlisting>
|
||||
|
||||
<para>The value 'serverAppCalculatorEndpoint' refers to the name of an
|
||||
enpoints in the <client> section of the standard WCF configuration
|
||||
|
||||
Reference in New Issue
Block a user