Commit Graph
9 Commits
Author SHA1 Message Date
Sebastien Pouliot 71d027fb55 Open test files in read-only mode (so it will work on devices where permissions won't allow read/write) 2013-03-22 17:20:41 -04:00
Ankit Jain 736d225d76 [webservices] Extensions can be unknown XmlElements also, fix.
* class/System.Web.Services/System.Web.Services.Description/BasicProfileChecker.cs:
Extensions can be XmlElement or ServiceDescriptionFormatExtension.
* class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs:
(AddExtensionNamespaces): Likewise. Also, ignore namespaces from
XmlElement, as we retain and write them out as-is.
(WriteExtension): Emit the XmlElement as-is.
* class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs:
Update to write out the wsdl also.
2011-02-04 01:02:09 +05:30
Atsushi Eno 186f4869c4 2008-07-01 Atsushi Enomoto <[email protected]>
* ServiceDescription.cs : fill RetrievalUrl by string.Empty
	  by default.

	* ServiceDescriptionTest.cs : check RetrievalUrl before/after Read().
	  Sadly it does not provide the actual URL...


svn path=/trunk/mcs/; revision=107004
2008-07-01 20:09:33 +00:00
Atsushi Eno 327dbbefde 2006-11-14 Atsushi Enomoto <[email protected]>
* wsdl-1.1.xsd : imported from the spec site (schemas.xmlsoap.org)
	  to be used for ServiceDescription.Schema.
	* ServiceDescription.cs : added Schema property and validating Read() 
	  overloads.

	* ServiceDescriptionTest.cs : added test for invalid Read() inputs.

	* Makefile : added *.wsdl to the build.
	  Added wsdl and genxs to EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=67815
2006-11-14 07:33:56 +00:00
Ankit Jain 907ce066d1 In class/System.Web.Services/Test/System.Web.Services.Description:
* ServiceDescriptionTest.cs (Ctor): New.

In class/System.Web.Services/System.Web.Services.Description:

	* ServiceDescriptionTest.cs (Ctor): New.


svn path=/trunk/mcs/; revision=65040
2006-09-07 08:52:33 +00:00
Ankit Jain 9df1ff50f2 In class/System.Web.Services/Test/System.Web.Services.Description:
* ServiceDescriptionTest.cs (Namespaces): New.

In class/System.Web.Services/System.Web.Services.Description:

	* wsdl.genxs: Remove readerhooks for "unknownAttribute" and
	"attributes".
	* ServiceDescription.cs (ServiceDescription.AddUnknownAttribute):
	(ServiceDescription.SetExtensibleAttributes): Remove.
	* ServiceDescriptionSerializerBase.cs: Regenerated with genxs (for
	!NET_2_0 profile)
	* ServiceDescriptionSerializerBase2.cs: Generated with genxs2 (for
	NET_2_0 profile)

In class/System.Web.Services:

	* System.Web.Services.dll.sources: Add
	ServiceDescriptionSerializerBase2.cs


svn path=/trunk/mcs/; revision=64937
2006-09-05 13:41:57 +00:00
Ankit Jain 9a50adef15 In class/System.Web.Services/Test/System.Web.Services.Description:
* ServiceDescriptionTest.cs (Extensions) New test.
	(CheckExtensions):
	(CheckXmlElement): New. Helper methods.
	* test.wsdl: Test wsdl.

In class/System.Web.Services/System.Web.Services.Description:

	* wsdl.genxs: Call ReadExtension for all unknown elements.
	* ServiceDescription.cs (ServiceDescription.ReadExtension): Add
	XmlDocument param. For NET_2_0, add any elements with no corresponding
	extensions to the DocumentableItem.Extensions property.
	(ServiceDescriptionSerializer.Serialize): Use
	WriteRoot_ServiceDescription instead of WriteTree.
	(ServiceDescriptionSerializer.Deserialize): Use
	ReadRoot_ServiceDescription instead of ReadTree.
	* ServiceDescriptionSerializerBase.cs: Regenerate.

svn path=/trunk/mcs/; revision=60216
2006-05-03 11:04:36 +00:00
Ankit Jain 8e24a975c8 In class/System.Web.Services/Test/System.Web.Services.Description:
* ServiceDescriptionTest.cs (ExtensibleAttributes): New test.

In class/System.Web.Services/System.Web.Services.Description:

	* DocumentableItem.cs (ExtensibleAttributes):
	(Extensions): Add missing NET_2_0 properties.
	* Port.cs:
	* OperationBinding.cs:
	* MessagePart.cs
	* Binding.cs:
	* Types.cs:
	* Service.cs:
	* OperationMessage.cs:
	* Message.cs: 
	* Import.cs: 
	* Operation.cs:
	* PortType.cs: Override and implement Extensions property. Add
	XmlFormatExtensionPoint attribute.

	* MessageBinding.cs: Abstract Extensions property is not present in
	NET_2_0.

	* wsdl.genxs: Update to process unknown attributes as ExtensibleAttributes in NET_2_0.
	* ServiceDescriptionSerializerBase.cs: Regenerated from wsdl.genxs

	* ServiceDescription.cs (ServiceDescription.AddUnknownAttribute): New. Add attribute to
	attributes collection.
	(ServiceDescription.SetExtensibleAttributes): Set DocumentableItem.ExtensibleAttributes
	property.

	* ServiceDescriptionFormatExtensionCollection.cs
	(ServiceDescriptionFormatExtensionCollection.SetParent): Set only if
	value is a ServiceDescriptionFormatExtension type object.


svn path=/trunk/mcs/; revision=59981
2006-04-27 14:26:06 +00:00
Atsushi Eno d1e3ef0cf8 2005-10-05 Atsushi Enomoto <[email protected]>
* wsdl.genxs, ServiceDescriptionSerializerBase.cs : dependent fix on
	  XmlSchema.Read(). Fixed bug #76311.
	* ServiceDescription.cs : name is null by default otherwise it fails
	  to be written.

	* ServiceDescriptionTest.cs : new file (for part of bug #76311).

	* System.Web.Services_test.dll.sources : added ServiceDescriptionTest.cs


svn path=/trunk/mcs/; revision=51260
2005-10-05 11:49:57 +00:00