Commit Graph
90 Commits
Author SHA1 Message Date
Atsushi Eno 1f4684cd40 2010-06-17 Atsushi Enomoto <[email protected]>
* 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
2010-06-17 10:48:55 +00:00
Atsushi Eno eed5cddbae 2010-06-04 Atsushi Enomoto <[email protected]>
* 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
2010-06-04 08:40:36 +00:00
Atsushi Eno 3966750e29 2010-06-03 Atsushi Enomoto <[email protected]>
* 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
2010-06-03 16:33:31 +00:00
Atsushi Eno c0e0e3f66e 2010-05-28 Atsushi Enomoto <[email protected]>
* 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
2010-05-28 07:52:10 +00:00
Atsushi Eno bbf33e9aa2 2010-04-23 Atsushi Enomoto <[email protected]>
* 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
2010-04-23 10:28:49 +00:00
Atsushi Eno c9f0b1759e 2010-04-23 Atsushi Enomoto <[email protected]>
* 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
2010-04-23 05:26:17 +00:00
Atsushi Eno d51ce00eba 2010-04-02 Atsushi Enomoto <[email protected]>
* 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
2010-04-02 09:39:45 +00:00
Atsushi Eno 4b04dc5db5 2010-04-02 Atsushi Enomoto <[email protected]>
* ContractDescription.cs : fill FaultContractInfos in ClientOperation.


svn path=/trunk/mcs/; revision=154694
2010-04-02 09:02:06 +00:00
Atsushi Eno 3d1c16fc37 2010-04-02 Atsushi Enomoto <[email protected]>
* 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
2010-04-02 05:45:39 +00:00
Atsushi Eno c6b58253cb 2010-03-24 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : compare "wsdl" parameter in case-
	  insensitive manner.


svn path=/trunk/mcs/; revision=154109
2010-03-24 05:41:02 +00:00
Atsushi Eno 9dc62ece0c 2010-03-19 Atsushi Enomoto <[email protected]>
* HostedBindingBehavior.cs : remove unused class.

	* System.ServiceModel.dll.sources : remove unused class.
	* HTTP_listener_notes.txt : add some more comments.


svn path=/trunk/mcs/; revision=153882
2010-03-19 10:21:08 +00:00
Atsushi Eno dab1c43c48 2010-03-17 Atsushi Enomoto <[email protected]>
* 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
2010-03-17 13:52:42 +00:00
Atsushi Eno 22b6b52b03 2010-03-17 Atsushi Enomoto <[email protected]>
* 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
2010-03-17 13:26:23 +00:00
Atsushi Eno cb40d0e7c7 2010-03-17 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs, WsdlExporter.cs :
	  implement ExportEndpoints() and use it.


svn path=/trunk/mcs/; revision=153760
2010-03-17 13:19:09 +00:00
Jb Evain 69fc3eefe6 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153654
2010-03-16 10:55:58 +00:00
Atsushi Eno 994a5eda40 2010-03-15 Atsushi Enomoto <[email protected]>
* ServiceEndpointCollection.cs : those overrides are rather to check
	  null arguments, not to skip contract duplicates.


svn path=/trunk/mcs/; revision=153589
2010-03-15 15:13:07 +00:00
Atsushi Eno 48f6a75c24 2010-03-12 Atsushi Enomoto <[email protected]>
* MessageDescription.cs : implement MessageName.


svn path=/trunk/mcs/; revision=153498
2010-03-12 11:15:44 +00:00
Atsushi Eno 9f2af8d5a1 2010-03-11 Atsushi Enomoto <[email protected]>
* 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
2010-03-12 07:27:23 +00:00
Atsushi Eno 3478ddd4e4 2010-03-11 Atsushi Enomoto <[email protected]>
* OperationDescription.cs, MessagePartDescription.cs,
	  MessageDescription.cs : add internal moonlight compat stuff.


svn path=/trunk/mcs/; revision=153492
2010-03-12 07:24:58 +00:00
Atsushi Eno a64563940e 2010-03-11 Atsushi Enomoto <[email protected]>
* XmlName.cs : new internal type for moonlight/SL SDK compatibility.

	* System.ServiceModel.dll.sources,
	  net_2_1_raw_System.ServiceModel.dll.sources:
	  added XmlName.cs.


svn path=/trunk/mcs/; revision=153489
2010-03-12 05:19:23 +00:00
Atsushi Eno 731b3d21a0 2010-02-23 Atsushi Enomoto <[email protected]>
* MetadataResolver.cs : fix BeginResolve() overloads and use
	  arguments as expected in Resolve().


svn path=/trunk/mcs/; revision=152259
2010-02-23 10:31:31 +00:00
Atsushi Eno c7526adee9 2010-02-23 Atsushi Enomoto <[email protected]>
* MetadataExchangeClient.cs : add missing members and implement some.


svn path=/trunk/mcs/; revision=152257
2010-02-23 09:55:20 +00:00
Atsushi Eno 828daf152c 2010-02-23 Atsushi Enomoto <[email protected]>
* WsdlImporter.cs : handle soapAction in operation binding too.
	  Now it successfully generates proxy generation for Twitterlight:
	  http://twitterlight.claritycon.com/TwitterWebService.asmx?WSDL


svn path=/trunk/mcs/; revision=152245
2010-02-23 01:30:42 +00:00
Atsushi Eno 8c0da0eaf8 2010-02-23 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  consider schemas in wsdl documents.


svn path=/trunk/mcs/; revision=152228
2010-02-22 23:29:07 +00:00
Atsushi Eno 7f31faa8f4 2010-02-22 Atsushi Enomoto <[email protected]>
* MetadataExchangeClient.cs, MetadataExchangeBindings.cs:
	  support https.


svn path=/trunk/mcs/; revision=152167
2010-02-22 09:46:36 +00:00
Atsushi Eno f69b25e294 2010-02-22 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : fix duplicate output.


svn path=/trunk/mcs/; revision=152160
2010-02-22 08:03:58 +00:00
Atsushi Eno 31bf347901 2010-02-19 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  Pick correct elements to import. Not wrapper elements but each
	  parameter and return value elements.


svn path=/trunk/mcs/; revision=152078
2010-02-19 15:46:55 +00:00
Atsushi Eno 74ad321492 2010-02-19 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  remove extra parameter passing.


svn path=/trunk/mcs/; revision=152076
2010-02-19 15:34:43 +00:00
Atsushi Eno 488e48ee80 2010-02-19 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : add missing #ifs.


svn path=/trunk/mcs/; revision=152049
2010-02-19 07:27:18 +00:00
Atsushi Eno 8f8557ce15 2010-02-19 Atsushi Enomoto <[email protected]>
* 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
2010-02-19 04:50:07 +00:00
Atsushi Eno f3d0400ba1 2010-02-11 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs : handle duration
	  and guid which s.w.svc does not handle. Fix part of bug #579011.


svn path=/trunk/mcs/; revision=151593
2010-02-12 06:33:00 +00:00
Atsushi Eno dc6e14ed54 2010-02-09 Atsushi Enomoto <[email protected]>
* 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
2010-02-09 09:36:44 +00:00
Atsushi Eno f60b8b5b22 2010-02-08 Atsushi Enomoto <[email protected]>
* MetadataBundle.cs, MetadataSet.cs : rename former to latter.

	* System.ServiceModel.dll.sources:
	  renamed MetadataBundle.cs to MetadataSet.cs.


svn path=/trunk/mcs/; revision=151027
2010-02-08 15:25:17 +00:00
Atsushi Eno cf16c28305 2010-02-04 Astushi Enomoto <[email protected]>
* 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
2010-02-04 15:03:47 +00:00
Atsushi Eno f4fcfed91e 2010-01-28 Atsushi Enomoto <[email protected]>
* 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
2010-01-28 11:41:47 +00:00
Atsushi Eno c744d2d438 2010-01-19 Atsushi Enomoto <[email protected]>
* 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
2010-01-19 05:32:14 +00:00
Atsushi Eno 4a82278269 2010-01-13 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : fill Operation.Faults.

	* FaultContractInfo.cs : implement.
	* DispatchOperation.cs, ClientOperation.cs: fill Faults.

	* net_2_1_raw_System.ServiceModel.dll.sources :
	  add FaultContractInfo.cs.


svn path=/trunk/mcs/; revision=149445
2010-01-13 10:37:41 +00:00
Atsushi Eno 5c3aa1b73a 2010-01-08 Atsushi Enomoto <[email protected]>
* 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
2010-01-08 10:40:46 +00:00
Atsushi Eno 4c1f955fc7 2009-12-18 Atsushi Enomoto <[email protected]>
* 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
2009-12-18 15:42:32 +00:00
Atsushi Eno 9ae92db947 2009-12-18 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs :
	  add support for EventBasedAsynchronousMethods (3.5 SP1 / 2.1).


svn path=/trunk/mcs/; revision=148754
2009-12-18 13:46:42 +00:00
Atsushi Eno 6cdbcb9e87 2009-12-18 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : added a couple of FIXME comments.


svn path=/trunk/mcs/; revision=148752
2009-12-18 13:44:13 +00:00
Atsushi Eno 26dbfb8ecc 2009-12-01 Atsushi Enomoto <[email protected]>
* ClientCredentials.cs : more SL3 changes.

	* ClientBase.cs, ChannelFactory_1.cs, ChannelFactory.cs :
	  more SL3 changes.


svn path=/trunk/mcs/; revision=147179
2009-12-01 06:33:53 +00:00
Atsushi Eno 68982173b6 2009-11-25 Astushi Enomoto <[email protected]>
* 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
2009-11-25 22:56:54 +00:00
Atsushi Eno be0e5a8349 2009-10-22 Atsushi Enomoto <[email protected]>
* 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
2009-10-22 10:49:04 +00:00
Atsushi Eno 49c65b9fac 2009-10-22 Atsushi Enomoto <[email protected]>
* 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
2009-10-22 03:15:49 +00:00
Atsushi Eno 8576862d51 2009-10-20 Atsushi Enomoto <[email protected]>
* 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
2009-10-20 06:43:01 +00:00
Atsushi Eno 9a4191a74b 2009-10-16 Atsushi Enomoto <[email protected]>
* ChannelListenerBase.cs : add Properties property to add arbitrary
	  properties handy (only inside this assembly).

	* ServiceHostBase.cs : removed internal dispatcher builder method.

	* ServiceMetadataExtension.cs : Handle all predefined mex bindings.
	  Use DispatcherBuilder directly. Add mex listener property to
	  distinguish the listener from http channel listeners later.


svn path=/trunk/mcs/; revision=144262
2009-10-16 11:57:57 +00:00
Atsushi Eno 9257372ed5 2009-10-15 Atsushi Enomoto <[email protected]>
* 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
2009-10-15 19:30:22 +00:00
Atsushi Eno 583e1c1a01 2009-10-15 Atsushi Enomoto <[email protected]>
* 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
2009-10-15 19:20:28 +00:00
Atsushi Eno a6a38e04e5 2009-10-15 Atsushi Enomoto <[email protected]>
* ServiceDebugBehavior.cs, ServiceMetadataBehavior.cs,
	  ServiceMetadataExtension.cs : reduce extra args, static isn't
	  required here. Add FIXME comments.


svn path=/trunk/mcs/; revision=144217
2009-10-15 16:42:59 +00:00