Commit Graph
167 Commits
Author SHA1 Message Date
Atsushi Eno 4ef5d6daee Small refactoring on enumerating message schema element contents. 2010-10-22 17:58:16 +09:00
Atsushi Eno 76af53ecff OnEndXxx() methods should not try to let void return to a local variable. 2010-10-21 20:53:00 +09:00
Atsushi Eno dec04b58f3 Void event should not have Result of type void. 2010-10-21 19:44:20 +09:00
Atsushi Eno ea6de3e520 Make generated type names unique. 2010-10-21 19:06:56 +09:00
Atsushi Eno 184e1e67e5 Add #if NET_2_1 and SupportFaults member for Silverlight SlSvcUtil proxy. 2010-10-21 15:30:23 +09:00
Atsushi Eno 0e7a3971a3 Do not reject contract from the same method, could happen by a type with multiple service contracts within the typie hierarchy.
For details, see: http://lists.ximian.com/pipermail/mono-devel-list/2010-September/035940.html
2010-10-08 15:55:12 +09:00
Atsushi Eno 582a90e800 Add DataContractResolver stuff (dummy), and fix Id reference from inside the referenced object. 2010-09-30 20:56:00 +09:00
Atsushi Eno be6342ff02 Contract is settable in 4.0. 2010-09-16 17:56:57 +09:00
Atsushi Eno 5628b49a01 implemented large parts of WCF standard endpoints and configuration support. 2010-09-13 22:36:37 +09:00
Atsushi Eno 1902671e15 Remove USE_DATA_CONTRACT_IMPORTER conditional compilation flag. 2010-09-10 22:26:44 +09:00
Atsushi Eno 8b8025e1d8 It should not fail to generate client proxy generation for having two "IsRequest=false" messages (it is set only in ContractDescriptionGenerator). 2010-09-09 21:51:31 +09:00
Atsushi Eno 3905366d74 Add some argument check. RemoteAddress could be null for callback client runtime channel. 2010-09-03 15:14:32 +09:00
Atsushi Eno 3cd82bb935 Add IsSystemEndpoint property and treat system endpoints as non-service. 2010-08-27 16:34:53 +09:00
Atsushi Eno 2d69022c2b Avoid NRE when ServiceEndpoint neither have Binding nor Contract. 2010-08-25 17:28:23 +09:00
Atsushi Eno e8cd1bd1ae ChannelDispatcherBase could be non-ChannelDispatcher. In WCF Discovery such type actually seems to exist, so it's not theoretical anymore. 2010-08-13 16:07:42 +09:00
atsushieno 8724d770fc Remove invalid comments. 2010-07-28 17:58:38 +09:00
atsushieno 0c667b10bf Fill Description names, and remove extra code. 2010-07-28 17:56:30 +09:00
Sebastien Pouliot 00b07a5a18 2010-07-19 Sebastien Pouliot <[email protected]>
* ClientCredentials.cs: Fix NET_2_1 builds


svn path=/trunk/mcs/; revision=160590
2010-07-19 21:12:46 +00:00
Atsushi Eno d6e2b55290 batch commit from local git changes.
svn path=/trunk/mcs/; revision=160451
2010-07-15 17:09:35 +00:00
Atsushi Eno 4ed002957c 2010-06-23 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : Reduced not a few lines of code,
	  now that we know wsdl and help do not have to be differentiated,
	  this extension support can be a lot simpler.

	* HttpListenerManager.cs :
	  No need to get messed around MetadataPublishingInfo anymore.


svn path=/trunk/mcs/; revision=159411
2010-06-23 08:03:17 +00:00
Atsushi Eno 130915150a 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : simplify FilterHttpContext().

	* ServiceMetadataExtension.cs : add Instance field for simplification.


svn path=/trunk/mcs/; revision=159409
2010-06-23 07:42:16 +00:00
Atsushi Eno d24448c5b9 2010-06-21 Atsushi Enomoto <[email protected]>
* ServiceThrottle.cs : take ChannelDispatcher to validate setters.

	* ServiceThrottlingBehavior.cs : pass channel dispatcher for .ctor.

	* ServiceHostBase.cs : remove extra throttling field.


svn path=/trunk/mcs/; revision=159232
2010-06-21 07:44:07 +00:00
Atsushi Eno 880083beeb 2010-06-18 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : Do not build more than one ChannelDispatcher
	  for a Binding. Then check duplicate listen URIs, excluding mex ones.

	* ChannelDispatcher.cs : add simple bool field to mark for mex channel.

	* ServiceMetadataExtension.cs : use simple ChannelDispatcher.IsMex field.

	* ServiceHostTest.cs : improved endpoint tests and enabled them.

	* ChannelDispatcherTest.cs : had to disable a test that regressed from
	  validating duplicate listen URI. Possible remedy is described too.


svn path=/trunk/mcs/; revision=159140
2010-06-18 15:33:40 +00:00
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 2971508f62 forgot to add.
svn path=/trunk/mcs/; revision=153491
2010-03-12 07:22:53 +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