* ServiceHostBase.cs : retrieve MessageVersion and raise an error
if there is none. (Check this earlier than building a listener.)
* ChannelDispatcher.cs : MessageVersion check is moved to
ServiceHostBase.
* ServiceMetadataExtension.cs : overwrite MessageVersion to use None.
(The only special case I found for ChannelDispatcher.MessageVersion.)
* CustomBindingTest.cs : add tests for MessageVersion check on Open().
* MetadataExchangeBindingsTest.cs : make sure that special casing of
MessageVersion does not happen at this layer.
svn path=/trunk/mcs/; revision=159061
* OperationDescription.cs : add contract origin flags to identify
which operation should be used for client operations (and dispatch
too in the future).
* MessageDescription.cs : add IsRequest flag to indicate if it is
for request or not.
* ServiceContractGenerator.cs, ContractDescriptionGenerator.cs :
make use of above changes.
* ContractDescription.cs : don't create extraneous ClientOperations
in irrelevant message direction.
* EndpointDispatcher.cs, BaseMessagesFormatter.cs:
Now MessageDescription.Direction is differentiated from "IsRequest"
property, to precisely identify request/reply in callbacks. Also
now we don't have to create extraneous ContractDescription for
callbacks.
* DuplexClientRuntimeChannel.cs : do not create and use extraneous
ContractDescription for callback contract. Non-callback ones now
works fine.
This fixes service part of bug #567672, IsOneWay = true case.
svn path=/trunk/mcs/; revision=158454
* ContractDescriptionGenerator.cs : Now callback contract methods are
also reflected into OperationDescription as well as those from non-
callback contract. Callback methods have reverse MessageDirection,
so adjust them.
* ContractDescription.cs, ServiceEndpoint.cs, TypedMessageConverter.cs :
A bit of renaming / reflect method call changes.
* EndpointDispatcher.cs, DispatchRuntime.cs, ClientRuntime.cs :
now Callback[Dispatch|Client]Runtime properties are always filled
so that users can configure the callback runtimes (not sure such
configured runtimes work fine yet, but it is a required step).
* InputOrReplyRequestProcessor.cs : instead of HasCallbackRuntime
hack, use CallbackClientRuntime.CallbackContractType for checking
callback existence.
* ClientProxyGenerator.cs : CreateProxyType now carefully considers
requested proxy type, contract type and callback contract type.
i.e. now the resulting proxy has implemented methods for callbacks
that are also filled at ContractDescription.
* ClientRuntimeChannel.cs : reflect some method call changes.
svn path=/trunk/mcs/; revision=158412
* ContractDescription.cs : fill ClientOperation.Formatter here.
(It is hacky, see additional comment.)
* ClientRuntimeChannel.cs : replace GetFormatter() with Formatter.
* ClientOperation.cs : do the same for client side too.
svn path=/trunk/mcs/; revision=158083
* HttpListenerManager.cs : fixed the issue that mex_info is never
retrieved from the latest channel listener (which could be other
listener than the one which was set mex info).
* ServiceMetadataExtension.cs : raise an error if it failed to set
mex info. (Make it safer.)
svn path=/trunk/mcs/; revision=155991
* ServiceHostBase.cs : add host-to-http-listener mapping so that
they can be managed per host.
* HttpTransportBindingElement.cs,
HttpChannelListener.cs,
HttpListenerManager.cs : add host-to-http-listener mapping so that
they can be managed per host.
* ServiceMetadataExtension.cs : reflect DispatcherBuilder change.
svn path=/trunk/mcs/; revision=155974
* ContractDescriptionGenerator.cs : fill FaultDescription action,
name and namespace as expected.
* FaultDescriptionTest.cs : add new test.
* FaultContractAttributeTest.cs : new test.
* System.ServiceModel_test.dll.sources : add some new fault tests.
svn path=/trunk/mcs/; revision=154698
* FaultDescription.cs : fill Action.
* ContractDescriptionGenerator.cs : do not fill Faults from service
impl. method. Do this from contract method instead.
* OperationDescription.cs : remove extra TODOs.
svn path=/trunk/mcs/; revision=154691
* WsdlExporter.cs : allow identical contract while exporting a set
of endpoints, while reject identical ones when calling
ExportEndpoint() individually.
svn path=/trunk/mcs/; revision=153763
* MetadataExchangeBindings.cs : use WSHttpBinding (it works if other
parts gets fixed).
* MetadataExchangeBindingsTest.cs : new test.
* System.ServiceModel_test.dll.sources :
add MetadataExchangeBindingsTest.cs.
svn path=/trunk/mcs/; revision=153762
* ServiceEndpointCollection.cs : those overrides are rather to check
null arguments, not to skip contract duplicates.
svn path=/trunk/mcs/; revision=153589
* BaseMessagesFormatter.cs : add internal OperationFormatter type
for moonlight/silverlight-sdk compatibility. It mostly wraps
the existing the return value by BaseMessagesFormatter.Create().
* DispatchOperation.cs, ClientOperation.cs, EndpointDispatcher.cs:
use above new type.
svn path=/trunk/mcs/; revision=153493
* DataContractSerializerMessageContractImporter.cs :
Pick correct elements to import. Not wrapper elements but each
parameter and return value elements.
svn path=/trunk/mcs/; revision=152078
* ServiceContractGenerator.cs, MessagePartDescription.cs,
DataContractSerializerMessageContractImporter.cs :
add alternative implementation to use XsdDataContractImporter
instead of XmlSchemaImporter hack.
It requires -d:USE_DATA_CONTRACT_IMPORTER and not enabled yet, as
it breaks some WSDL imports (such as memorabilia.hardrock.com).
svn path=/trunk/mcs/; revision=152048
* DataContractSerializerMessageContractImporter.cs : handle duration
and guid which s.w.svc does not handle. Fix part of bug #579011.
svn path=/trunk/mcs/; revision=151593
* DataContractSerializerMessageContractImporter.cs,
ServiceContractGenerator.cs: ArrayOfXxx does not exist in the type
definition code. Use Xxx[] directly instead.
* WsdlImporterTest.cs : added test for processing ArrayOfXxx types.
* service1.wsdl, schema1.xsd, schema2.xsd : new test files (small
repro for bug #577139).
svn path=/trunk/mcs/; revision=151087
* Dummy.cs, net_2_1_raw_System.ServiceModel.dll.sources : add some
classes out of dummy, for monotouch (hidden in 2.1 profile).
* ClientCredentials.cs, ContractDescription.cs,
IEndpointBehavior.cs, IOperationBehavior.cs : add monotouch support
for client behavior.
svn path=/trunk/mcs/; revision=150863
* ServiceContractGenerator.cs : when Options.AsynchronousMethods is
specified, generate async methods *as well as* sync methods (i.e.
not exclusively).
In moonlight proxy generator (svcutil -moonlight) mode, sync
methods will be removed at svcutil itself.
This fix brings sync proxy methods back to monotouch.
* ServiceContractGeneratorTest.cs : add test for async method
generation option to generate sync methods as well.
svn path=/trunk/mcs/; revision=150363
* ServiceAuthorizationBehavior.cs : implement (it does almost
nothing though).
* ServiceAuthorizationBehaviorTest.cs : it's updated and enabled.
Added some more tests.
svn path=/trunk/mcs/; revision=149785
* ContractDescriptionGenerator.cs : fix GetCallbackContract() to
correctly retrieve ServiceContractAttribute from the service type,
not the callback type. This ended up to get the bug #567672 sample
working (but it will break at some stage as it involves some
non-implemented classes).
* EndpointDispatcher.cs, InputOrReplyRequestProcessor.cs :
Pass service type to correctly retrieve ServiceContractAttribute
from the service type, not callback type.
* ServiceProxyGenerator.cs, ServiceRuntimeChannel.cs :
Pass service type to correctly retrieve ServiceContractAttribute
from the service type, not callback type.
* CallbackBehaviorAttributeTest.cs : added callback example from
bug #567672.
svn path=/trunk/mcs/; revision=149226
* ServiceContractGenerator.cs :
EventArgs are not nested classes.
Result property of EventArgs is not IAsyncResult. It should be
pulled from EndXxx() method, not from BeginXxx().
svn path=/trunk/mcs/; revision=148761
* net_2_1_raw_System.ServiceModel.dll.sources, Dummy_2_1.cs:
reflected a couple of SL3 updates.
* EndpointAddress10.cs : added it to the 2.1 build for SL3 API.
* MessageHeaders.cs
SecurityBindingElement.cs
LocalClientSecuritySettings.cs
TransportSecurityBindingElement.cs
FaultConverter.cs : They are now part of SL3 API.
* ClientCredentials.cs : it is part of SL3 API, so adjusted for it.
svn path=/trunk/mcs/; revision=146952
* ServiceMetadataExtension.cs : channelDispatchers is keyed by URL,
so it might have been skipped when the URLs are the same for wsdl
and help. So, differentiate flags for mex and help, not to be
exclusive. This fixes random-ish EndpointNotFound for WSDLs.
* HttpListenerManager.cs : dependent fix to ServiceMetadataExtension
changes.
svn path=/trunk/mcs/; revision=144625
* ServiceMetadataExtension.cs : A few fixes for no-wsdl case: fix
wrong html template, and do not throw NRE for the lack of WsdlUrl.
svn path=/trunk/mcs/; revision=144596
* HttpReplyChannel.cs, HttpChannelListener.cs, HttpListenerManager.cs:
Refactoring on listener manager to correctly handle wsdl and help
requests for such case that they conflict in addressing. Now it
can correctly distinguish service calls, WSDL requests and help
requests when all of them point to "http://localhost/foo.svc"
(which is very common case that the user does not change Http*Url).
* ServiceMetadataExtension.cs : restructure internal channel property
so that http channels can cope with it.
svn path=/trunk/mcs/; revision=144419
* ServiceMetadataExtension.cs : when serviceDebug and serviceMetadata
shares the same URL, both of them must be set, not being skipped.
svn path=/trunk/mcs/; revision=144225
* ServiceDebugBehavior.cs, ServiceMetadataBehavior.cs,
ServiceMetadataExtension.cs : Now HelpPage is differentiated from
wsdl page. The help page now outputs correct URL (for WSDL).
svn path=/trunk/mcs/; revision=144224