Commit Graph
35 Commits
Author SHA1 Message Date
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
Gert Driesen d6eb48a3c0 * ServiceDescription.cs: Do not require write access to file.
* DiscoveryRequestHandler.cs: Do not require write access to file.

svn path=/trunk/mcs/; revision=85136
2007-08-31 15:23:26 +00:00
Atsushi Eno 90e8fa3f1c 2006-12-14 Atsushi Enomoto <[email protected]>
* ServiceDescription.cs : added soap12 namespace mapping in output.
	* ServiceDescriptionCollection.cs,
	  ServiceDescriptionImporter.cs : fixed an issue that two ImportInfos
	  are processed. Make Importer.AddServiceDescription() independent
	  of ServiceDescriptionCollection.


svn path=/branches/atsushi/mcs/; revision=69490
2006-12-14 15:53:06 +00:00
Atsushi Eno ac37997c74 merged from trunk.
svn path=/branches/atsushi/mcs/; revision=68566
2006-11-28 08:36:14 +00:00
Atsushi Eno ce238d30c3 2006-11-14 Atsushi Enomoto <[email protected]>
* ServiceDescription.cs : add [XmlIgnore] to ValidationWarnings.
	  (yes, it is a collection, thus we need explicit attribute.)


svn path=/trunk/mcs/; revision=67832
2006-11-14 10:32:22 +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
Konstantin Triger dc8197691c * ServiceDescriptionReflector.cs: remove CONFIGURATION_2_0 #if since NET_2_0
implies it.
* ServiceDescription.cs: Added TARGET_JVM to workaround lack of TARGET_JVM
		support for 'new T()' in generics.

svn path=/trunk/mcs/; revision=64227
2006-08-23 07:57:52 +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
Vladimir Krasnov 289ec16d51 ServiceDescription.cs: removed TARGET_JVM directive from serializer member
svn path=/trunk/mcs/; revision=57861
2006-03-12 11:13:05 +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
Konstantin Triger c84831d044 moving static fields to AppDomain in Java builds
svn path=/trunk/mcs/; revision=45431
2005-06-05 07:38:47 +00:00
Lluis Sanchez d2c8e83da7 * Binding.cs, Message.cs, MessageBinding.cs, MessagePart.cs, Operation.cs,
OperationBinding.cs, OperationMessage.cs, Port.cs, PortType.cs,
	  Service.cs, ServiceDescription.cs,
	  Name property moved to NamedItem in 2.0.
	* DocumentableItem.cs, ServiceDescriptionFormatExtension.cs,
	  ServiceDescriptionImportWarnings.cs, ServiceDescriptionImporter.cs,
	  SoapFaultBinding.cs: Added 2.0 api.
	* BasicProfileViolation.cs, BasicProfileViolationCollection.cs,
	  NamedItem.cs, Soap12AddressBinding.cs, Soap12Binding.cs,
	  Soap12BodyBinding.cs, Soap12FaultBinding.cs, Soap12HeaderBinding.cs,
	  Soap12OperationBinding.cs, WebReference.cs, WebReferenceCollection.cs,
	  WebServicesInteroperability.cs: Mostly implemented new 2.0 classes.

svn path=/trunk/mcs/; revision=31068
2004-07-13 10:15:33 +00:00
Duncan Mak 58a0067567 Add MIT license to System.Web.Services.DLL
svn path=/trunk/mcs/; revision=30058
2004-06-21 18:30:28 +00:00
Lluis Sanchez efddffca82 * ExtensionManager.cs: Support more than one XmlFormatExtensionPrefixAttribute
un one soap extension.
	* HttpSimpleProtocolImporter.cs: Made class internal.
	* HttpSimpleProtocolReflector.cs.cs: ReflectMethodBinding(): GET and POST
	  do not use method bindings. Return null.
	* ProtocolReflector.cs: Several fixes: do not generate binding if it doesn't
	  have any operation, avoid port and binding name colisions, and other minor
	  fixes.
	* ServiceDescription.cs: Collect the namespaces to be added to the root
	  element of a serializaed wsdl document from the soap extensions.
	* ServiceDescriptionSerializerBase.cs: Made classes internal.
	* SoapAddressBinding.cs, SoapFaultBinding.cs, SoapOperationBinding.cs,
	  SoapProtocolImporter.cs: Class should not be sealed.
	* SoapBodyBinding.cs: Set the correct class attributes.
	* SoapHeaderBinding.cs: Class should not be sealed. Added missing method.
	* SoapHeaderFaultBinding.cs: Fixed class attributes.

svn path=/trunk/mcs/; revision=22454
2004-01-24 01:44:39 +00:00
Lluis Sanchez ad921233a9 * ServiceDescription.cs, SoapBinding.cs, SoapHeaderBinding.cs,
SoapHeaderFaultBinding.cs: Removed some TODOs and FIXMEs.

svn path=/trunk/mcs/; revision=19808
2003-11-11 01:15:16 +00:00
Lluis Sanchez 17dc653a68 * ServiceDescription.cs: Fixed implementation of CanRead.
svn path=/trunk/mcs/; revision=19245
2003-10-21 00:16:52 +00:00
Lluis Sanchez 3a5e1ca53f * HttpSimpleProtocolReflector.cs, SoapProtocolReflector.cs:
Get the namespace for literal types from LogicalTypeInfo, since it may not
	  be the same as the service namespace.
	* ProtocolReflector.cs: Access LogicalTypeInfo to get WS info common to
	  all protocols.
	* ServiceDescription.cs: Added soap/encoded namespace.
	* SoapProtocolImporter.cs: Added some bits of RPC format support.

svn path=/trunk/mcs/; revision=19011
2003-10-14 00:48:53 +00:00
Lluis Sanchez 98ddc29f0b * ServiceDescription.cs: minor fixes.
* ServiceDescriptionImporter.cs: initial implementation.
	* ServiceDescriptionReflector.cs: Added support for bare parameter style.
	  Added support for encoded format.

svn path=/trunk/mcs/; revision=17855
2003-09-04 02:26:25 +00:00
Lluis Sanchez d7f7471efa * ExtensionManager.cs: Added
* ServiceDescriptionSerializerBase.cs. Added
	* ServiceDescription.cs: Reenabled suspport for serialization.
	* ServiceDescriptionReflector.cs: Import type and method documentation.

svn path=/trunk/mcs/; revision=17794
2003-09-01 14:29:20 +00:00
Lluis Sanchez 614f65d798 * ServiceDescription.cs: Disabled suspport for serialization, until I found
an easy way of generate serialization readers and writers.

svn path=/trunk/mcs/; revision=17722
2003-08-29 12:31:35 +00:00
Lluis Sanchez 2a90eb61b0 * MessageBinding.cs: Added default value attribute for Name property.
* OperationMessage.cs: Added default value attribute for Name property.
	* ServiceDescription.cs: Changed order of some properties, so they are
	  serialized in the right order.
	  Added GetNamespaceList(), which returns the namespaces to add when serializing
	  the document.
	  Implemented classes ServiceDescriptionSerializer and ServiceDescriptionWriter,
	  that extends the XmlSerializer by adding suport for XmlFormatExtensions.
	* ServiceDescriptionReflector.cs: Basic implementation (no support for
	  extensions yet).
	* SoapBinding.cs: Fixed namespace name.
	* SoapBodyBinding.cs: Added null check in PartsString property.
	* SoapOperationBinding.cs: Fixed namespace name.

svn path=/trunk/mcs/; revision=17693
2003-08-28 12:34:56 +00:00
Lluis Sanchez fe757a8636 * Binding.cs, Import.cs, Message.cs, MessageBinding.cs, MessagePart.cs,
Operation.cs, OperationBinding.cs, OperationMessage.cs, Port.cs,
	  PortType.cs, Service.cs: Added XmlIgnore attributes to properties
	  referencing parent objects.
	* OperationMessageCollection.cs: Fixed wrong OnInsert method
	* ServiceDescription.cs: Removed unneeded methods in
	  ServiceDescriptionSerializer.

svn path=/trunk/mcs/; revision=16521
2003-07-22 09:55:23 +00:00
Tim Coleman e7c88b9637 2002-08-20 Tim Coleman <[email protected]>
* ServiceDescription.cs:
                Add ServiceDescription.ServiceDescriptionSerializer
                class.

svn path=/trunk/mcs/; revision=6796
2002-08-20 05:37:05 +00:00
Tim Coleman caff4ab4f8 2002-08-06 Tim Coleman <[email protected]>
* ServiceDescription.cs:
                Add namespace definitions when serializing.
        * HttpBinding.cs:
                Change namespace definition (wsdl was spelt wsld)

svn path=/trunk/mcs/; revision=6488
2002-08-07 02:24:20 +00:00
Tim Coleman 7bce180acd 2002-08-06 Tim Coleman <[email protected]>
* ServiceDescription.cs:
                Change the XmlElement name from "type" to "types" for
                the Types object

svn path=/trunk/mcs/; revision=6482
2002-08-06 21:23:42 +00:00
Miguel de Icaza 89b84291ca System.Web.Services/System.Web.Services.Description/ServiceDescription.cs
svn path=/trunk/mcs/; revision=6204
2002-07-26 22:04:55 +00:00
Tim Coleman 22893481b7 2002-07-26 Tim Coleman <[email protected]>
* ServiceDescription.cs:
                Changed the creation of the XmlSerializer after
                consulting the System.Xml.Serialization namespace
                and trying to serialize a document.  Now works somewhat!

svn path=/trunk/mcs/; revision=6200
2002-07-26 17:31:50 +00:00
Tim Coleman a98373c44a 2002-07-24 Tim Coleman <[email protected]>
* ServiceDescription.cs:
                Implement Read/Write methods for serialization/
                deserialization.

svn path=/trunk/mcs/; revision=6143
2002-07-24 16:20:46 +00:00
Tim Coleman 1d7cfe4792 2002-07-23 Tim Coleman <[email protected]>
* ServiceDescription.cs:
                Add XmlIgnore attribute to ServiceDescriptions property
        * OperationFlow.cs:
        * ServiceDescriptionImportWarnings.cs:
                Explicitly set values in enumeration to match
                .NET.

svn path=/trunk/mcs/; revision=6083
2002-07-23 16:49:47 +00:00
Tim Coleman 6810cc9ca8 2002-07-22 Tim Coleman <[email protected]>
* Binding.cs:
	* BindingCollection.cs:
	* DocumentableItem.cs:
	* FaultBinding.cs:
	* FaultBindingCollection.cs:
	* HttpAddressBinding.cs:
	* HttpBinding.cs:
	* HttpOperationBinding.cs:
	* HttpUrlEncodedBinding.cs:
	* HttpUrlReplacementBinding.cs:
	* Import.cs:
	* ImportCollection.cs:
	* InputBinding.cs:
	* Message.cs:
	* MessageBinding.cs:
	* MessageCollection.cs:
	* MessagePart.cs:
	* MessagePartCollection.cs:
	* MimeContentBinding.cs:
	* MimeMultipartRelatedBinding.cs:
	* MimePart.cs:
	* MimePartCollection.cs:
	* MimeTextBinding.cs:
	* MimeTextMatch.cs:
	* MimeTextMatchCollection.cs:
	* MimeXmlBinding.cs:
	* Operation.cs:
	* OperationBinding.cs:
	* OperationBindingCollection.cs:
	* OperationCollection.cs:
	* OperationFaultCollection.cs:
	* OperationFlow.cs:
	* OperationMessage.cs:
	* OperationMessageCollection.cs:
	* OutputBinding.cs:
	* Port.cs:
	* PortCollection.cs:
	* PortType.cs:
	* PortTypeCollection.cs:
	* ProtocolImporter.cs:
	* Service.cs:
	* ServiceCollection.cs:
	* ServiceDescription.cs:
	* ServiceDescriptionBaseCollection.cs:
	* ServiceDescriptionCollection.cs:
	* ServiceDescriptionFormatExtension.cs:
	* ServiceDescriptionFormatExtensionCollection.cs:
	* ServiceDescriptionImportWarnings.cs:
	* SoapAddressBinding.cs:
	* SoapBinding.cs:
	* SoapBindingStyle.cs:
	* SoapBindingUse.cs:
	* SoapBodyBinding.cs:
	* SoapExtensionImporter.cs:
	* SoapExtensionReflector.cs:
	* SoapFaultBinding.cs:
	* SoapHeaderBinding.cs:
	* SoapHeaderFaultBinding.cs:
	* SoapOperationBinding.cs:
	* SoapTransportImporter.cs:
	* Types.cs:
		1. Add missing attributes as determined by reflection
		2. Fix protection levels where appropriate
		3. Add missing items where appropriate
		Basically, this was a change to remove all the X's from
		the project status page for this namespace :)

svn path=/trunk/mcs/; revision=6024
2002-07-22 17:42:26 +00:00
Tim Coleman d20843d5e5 2002-07-19 Tim Coleman <[email protected]>
* Binding.cs:
	* BindingCollection.cs:
	* ChangeLog:
	* DocumentableItem.cs:
	* FaultBinding.cs:
	* FaultBindingCollection.cs:
	* HttpAddressBinding.cs:
	* HttpBinding.cs:
	* HttpOperationBinding.cs:
	* HttpUrlEncodedBinding.cs:
	* HttpUrlReplacementBinding.cs:
	* Import.cs:
	* ImportCollection.cs:
	* InputBinding.cs:
	* Message.cs:
	* MessageBinding.cs:
	* MessageCollection.cs:
	* MessagePart.cs:
	* MessagePartCollection.cs:
	* MimeContentBinding.cs:
	* MimeMultipartRelatedBinding.cs:
	* MimePart.cs:
	* MimePartCollection.cs:
	* MimeTextBinding.cs:
	* MimeTextMatch.cs:
	* MimeTextMatchCollection.cs:
	* MimeXmlBinding.cs:
	* Operation.cs:
	* OperationBinding.cs:
	* OperationBindingCollection.cs:
	* OperationCollection.cs:
	* OperationFault.cs:
	* OperationFaultCollection.cs:
	* OperationFlow.cs:
	* OperationInput.cs:
	* OperationMessage.cs:
	* OperationMessageCollection.cs:
	* OperationOutput.cs:
	* OutputBinding.cs:
	* Port.cs:
	* PortCollection.cs:
	* PortType.cs:
	* PortTypeCollection.cs:
	* ProtocolImporter.cs:
	* ProtocolReflector.cs:
	* Service.cs:
	* ServiceCollection.cs:
	* ServiceDescription.cs:
	* ServiceDescriptionBaseCollection.cs:
	* ServiceDescriptionCollection.cs:
	* ServiceDescriptionFormatExtension.cs:
	* ServiceDescriptionFormatExtensionCollection.cs:
	* ServiceDescriptionImportStyle.cs:
	* ServiceDescriptionImportWarnings.cs:
	* ServiceDescriptionImporter.cs:
	* ServiceDescriptionReflector.cs:
	* SoapAddressBinding.cs:
	* SoapBinding.cs:
	* SoapBindingStyle.cs:
	* SoapBindingUse.cs:
	* SoapBodyBinding.cs:
	* SoapExtensionImporter.cs:
	* SoapExtensionReflector.cs:
	* SoapFaultBinding.cs:
	* SoapHeaderBinding.cs:
	* SoapHeaderFaultBinding.cs:
	* SoapOperationBinding.cs:
	* SoapProtocolImporter.cs:
	* SoapTransportImporter.cs:
	* Types.cs:
		Initial implementation

svn path=/trunk/mcs/; revision=5928
2002-07-19 16:55:53 +00:00