Commit Graph
31 Commits
Author SHA1 Message Date
Lluis Sanchez 2adc0863aa 2010-03-03 Lluis Sanchez Gual <[email protected]>
* ServiceDescriptionCollection.cs: When looking for bindings and other
	items, look in the list instead of the namespace table, since the
	collection may have several description documents with the same
	namespace.
	* ProtocolImporter.cs: Same as above. A schemas collection can have
	more than one schema with the same name, so we can use the namespace
	indexer to find schemas.
	* BasicProfileChecker.cs: Added null check.


svn path=/trunk/mcs/; revision=152948
2010-03-03 16:22:56 +00:00
Atsushi Eno 1dab419f95 2008-07-02 Atsushi Enomoto <[email protected]>
* ProtocolImporter.cs : make event stuff public.


svn path=/trunk/mcs/; revision=107040
2008-07-02 05:38:34 +00:00
Atsushi Eno 492ee760e1 2008-07-01 Atsushi Enomoto <[email protected]>
* ProtocolImporter.cs, HttpSimpleProtocolImporter.cs,
	  SoapProtocolImporter.cs : make classes partial in 2.0 profile.


svn path=/trunk/mcs/; revision=106980
2008-07-01 13:56:49 +00:00
Lluis Sanchez 363ca995f8 * ProtocolImporter.cs: Use the binding name as class name for the
proxy.
* SoapProtocolImporter.cs: Use the element name as field name for soap
  headers. In 2.0, generate a property for accessing the field.

svn path=/trunk/mcs/; revision=99514
2008-04-01 14:22:17 +00:00
Atsushi Eno 6a9479d40f 2007-05-11 Atsushi Enomoto <[email protected]>
* ProtocolImporter.cs, ServiceDescriptionImporter.cs : when there
	  is no binding item for a supported protocol in a WSDL, skip such
	  protocol and try next protocol, so that it can match HTTPGET-only
	  WSDLs. Part of fix for #81457.

	* ServiceDescriptionImporterTest.cs : added ignored test for #81457.


svn path=/trunk/mcs/; revision=77240
2007-05-11 13:15:28 +00:00
Atsushi Eno faec2789db 2006-12-15 Atsushi Enomoto <[email protected]>
* SoapExtensionReflector.cs, SoapProtocolReflector.cs :
	  Now SOAP bindings are reflected through extension reflectors.
	  Added implementations for SOAP 1.1 and SOAP 1.2 (2.0 only).
	  The common SoapBindingExtensionReflector implements reflector
	  methods which used to be in SoapProtocolReflector. Also
	  subclassed SoapProtocolReflector to switch SOAP 1.1 and 1.2.
	* ServiceDescriptionReflector.cs : under 2.0, use
	  Soap12ProtocolReflector and export soap12 bindings as well.
	* ProtocolImporter.cs : under 2.0 profile, handle SOAP 1.2 encoding
	  namespace (http://www.w3.org/2003/05/soap-encoding) as well.
	* ProtocolReflector.cs : call ReflectDescription(). Added FIXME.

	* ServerType.cs : added SOAP 1.2 protocol as a different one from
	  SOAP 1.1.
	* Methods.cs : added Soap12TypeStubInfo.


svn path=/branches/atsushi/mcs/; revision=69528
2006-12-15 08:16:42 +00:00
Atsushi Eno 80760f6111 2006-12-14 Atsushi Enomoto <[email protected]>
* SoapProtocolImporter.cs : if the importer is SOAP12, initialize
	  SoapVersion in generated code.
	* ServiceDescriptionImporter.cs,
	  ProtocolImporter.cs : reduce extra argument.
	* ServiceDescriptionSerializerBase2.cs : fix warnings.


svn path=/branches/atsushi/mcs/; revision=69492
2006-12-14 17:13:12 +00:00
Atsushi Eno 2a689d12f6 2006-12-12 Atsushi Enomoto <[email protected]>
* ProtocolImporter.cs : (ImportsEncodedNamespace) XmlSchemaExternal
	  could be of other types than XmlSchemaImport.


svn path=/branches/atsushi/mcs/; revision=69294
2006-12-11 05:55:02 +00:00
Atsushi Eno b3cbbff9ce 2006-07-24 Atsushi Enomoto <[email protected]>
In class/System.XML:
	* System.Xml.dll.sources : added XmlMappingAccess.

	* XmlMappingAccess.cs : new type in 2.0 RTM.
	* XmlCodeExporter.cs, SoapCodeExporter.cs,
	  MapCodeGenerator.cs,
	  XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
	  SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
	  XmlMemberMapping.cs, XmlSerializationReader.cs :
	  several 2.0 API fixes from betas to RTM.

	In class/System.Web.Services:
	* ProtocolImporter.cs, ServiceDescriptionImporter.cs :
	  some 2.0 API fixes from betas to RTM.

	In tools/wsdl:
	* MonoWSDL2.cs : 2.0 API fixes from beta2 to RTM.


svn path=/trunk/mcs/; revision=62910
2006-07-24 10:50:58 +00:00
Lluis Sanchez 9c55ed023c 2005-12-07 Lluis Sanchez Gual <[email protected]>
* ProtocolImporter.cs: nullify message fields before processing a
	new method.
	* SoapProtocolImporter.cs: Only use the wrapped format if both the
	input and output messages specify that format. If one of them is not,
	then use bare format. This partially fixes bug #75019.


svn path=/trunk/mcs/; revision=54041
2005-12-07 14:52:57 +00:00
Lluis Sanchez 1826bbddfb * ProtocolImporter.cs, HttpSimpleProtocolImporter.cs,
SoapProtocolImporter.cs: When appsettingurlkey is provided, generate
	  code that reads the url from the config file, instead of doing it at
	  the moment of generation. This fixes bug #68795.

svn path=/trunk/mcs/; revision=35333
2004-10-26 15:29:38 +00:00
Lluis Sanchez de4373d0c1 * ProtocolImporter.cs: Fixing the fix. The generated class must always
be added.

svn path=/trunk/mcs/; revision=33278
2004-09-03 13:43:56 +00:00
Lluis Sanchez 4856cb6a97 * BasicProfileChecker.cs: Some small fixes.
* FaultBinding.cs: Removed useless code.
	* HttpSimpleProtocolImporter.cs, SoapProtocolImporter.cs: Take into account
	  that now we may be generating code for a binding which is not referenced
	  by any port. In this case Port is null.
	* MessageBinding.cs: Properly set the parent operation binding.
	* OperationBinding.cs: When adding messages, set its parent property.
	* ProtocolImporter.cs: Support generation of proxies for wsdl documents
	  that do not have any Service entry. In this case, it now generates
	  a proxy for every binding.

svn path=/trunk/mcs/; revision=33157
2004-09-01 14:09:56 +00:00
Lluis Sanchez 7e9f3e17a2 * HttpSimpleProtocolImporter.cs: Implemented internal method to support
the new asyc model.
	* ProtocolImporter.cs: Generate code for the new async model.
	  Added support for generating server skeletons in addition to client
	  proxies.
	* ServiceDescriptionImporter.cs: Removed unneded check.
	* SoapProtocolImporter.cs: Added support for generating server skeletons in
	  addition to client proxies.

svn path=/trunk/mcs/; revision=31479
2004-07-26 18:18:02 +00:00
Lluis Sanchez 3a8023de4a * ProtocolImporter.cs: Added some internal properties needed for 2.0
features.
	* ServiceDescriptionImporter.cs: Implemented some 2.0 methods.
	* SoapProtocolImporter.cs: Create xml importers using the correct
	  ImportContext and generation options.
	* WebReference.cs: It is now internal for 1.1 profile. Implemented some
	  properties.
	* CodeGenerationOptions.cs: Made internal in 1.1 profile.
	* ImportContext.cs: Implemented.
	* XmlSchemaImporter.cs: Implemented some 2.0 constructors.

svn path=/trunk/mcs/; revision=31379
2004-07-22 17:48:00 +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 a11fa40df5 * HttpSimpleProtocolImporter.cs: Fixed case of generated methods to match
MS behavior. Always use import input parameters as System.String.
	* ProtocolImporter.cs: Remove _x0020_ from type names.
	* SoapProtocolImporter.cs: Fixed case of generated methods to match
	  MS behavior.

svn path=/trunk/mcs/; revision=28694
2004-06-02 13:43:45 +00:00
Lluis Sanchez 7bcc59e7ff * ProtocolImporter.cs: issue a warning if no services have been found.
svn path=/trunk/mcs/; revision=27957
2004-05-24 10:42:05 +00:00
Lluis Sanchez b9d19fff54 * ProtocolImporter.cs: Little fix in schema classification.
svn path=/trunk/mcs/; revision=23617
2004-03-02 15:03:40 +00:00
Lluis Sanchez 4b3cb1844e * ExtensionManager.cs: Create all serializers for soap extensions at once.
* HttpSimpleProtocolImporter.cs: Assign the correct set of schemas to the
	  schema importers (do not mix literal schemas with encoded schemas).
	* ProtocolImporter.cs: Added LiteralSchemas and EncodedSchemas properties.
	  Separation between literal and encoded schemas is needed to avoid importing
	  for example a literal schema as encoded. Also implemented ClasifySchemas,
	  which separates literal from encoded schemas. I really don't like doing it
	  in this way, but I haven't found another way.
	* SoapProtocolImporter.cs: Add type include attributes to the generated
	  proxy classes.

svn path=/trunk/mcs/; revision=23541
2004-02-27 17:31:19 +00:00
Lluis Sanchez e67e12a9bf * HttpSimpleProtocolImporter.cs: pass the web service class list to the xml
importers to make sure that no data classes are created with the same
	  name as the web service.
	* ProtocolImporter.cs: Use port name as class name only if there is more
	  than one port using the same protocol. This fixes big #52742.

svn path=/trunk/mcs/; revision=22341
2004-01-21 16:27:19 +00:00
Lluis Sanchez d3c367849c * HttpSimpleProtocolReflector.cs, SoapProtocolReflector.cs:
Use GetWebServiceLiteralNamespace instead of WebServiceLiteralNamespace.
	* ProtocolReflector.cs: Port names must be unique in a service description.
	  This fixes bug #53019.
	* ProtocolImporter.cs: Little fix.

svn path=/trunk/mcs/; revision=22272
2004-01-19 20:20:25 +00:00
Lluis Sanchez d9ad57f75d * ProtocolImporter.cs, SoapProtocolImporter.cs: Added support for OneWay
operations (those don't	have output message).
	* SoapProtocolReflector.cs: Set the correct element name and
	namespace for headers (those are not managed like other data classes).

svn path=/trunk/mcs/; revision=22066
2004-01-14 17:32:31 +00:00
Lluis Sanchez fb550b3f54 * HttpSimpleProtocolImporter.cs: In ImportOutMembersMapping(), support part
without element name (use anyType in this case).
	  In GetOutMimeFormatter(), support MimeContentBinding.
	* ProtocolImporter.cs, SoapProtocolImporter.cs: Improved error and warning
	  handling. Minor fixes.
	* DiscoveryReference.cs: In FilenameFromUrl(), improved name generation
	  for some common cases.

svn path=/trunk/mcs/; revision=21073
2003-12-12 17:12:40 +00:00
Lluis Sanchez 379ef3694b * MessageBinding.cs: Name property should be null by default.
* ProtocolImporter.cs: Take into account the previous change.

svn path=/trunk/mcs/; revision=19086
2003-10-15 18:47:12 +00:00
Lluis Sanchez f91d32a388 * HttpSimpleProtocolReflector.cs, ProtocolReflector.cs:
Fixed naming of messages.
	* ProtocolImporter.cs: It now iterates through all bindings. It creates
	  a namespace for all bindings.
	* ServiceDescriptionImporter.cs: Some code moved to ProtocolImporter.
	* SoapProtocolImporter.cs: Improved support for RPC format. It now is working.

svn path=/trunk/mcs/; revision=19067
2003-10-15 08:16:44 +00:00
Lluis Sanchez 1dad30fa74 * ProtocolImporter.cs: Moved some code to ServiceDescriptionImporter.
WebServiceBindingAttribute addition moved to SoapProtocolImporter.
	  Moved GetServiceUrl here (from SoapProtocolImporter).
	* ServiceDescriptionImporter.cs: Added support for HttpGet and HttpPost
	  importers.
	* SoapProtocolImporter.cs: Minor fixes.
	* HttpSimpleProtocolImporter.cs, HttpGetProtocolImporter.cs,
	  HttpPostProtocolImporter.cs: new files that implement HttpGet and HttpPost
	  importers.

svn path=/trunk/mcs/; revision=18691
2003-10-06 21:52:08 +00:00
Lluis Sanchez e74705fd42 * ExtensionManager.cs: Read extension types from the configuration file.
Added methods for getting extension importers and reflectors.
	* ProtocolImporter.cs: Implemented.
	* ProtocolReflector.cs: Implemented.
	* ServiceDescriptionCollection.cs: Fixed some methods for finding wsdl
	  elements.
	* ServiceDescriptionImporter.cs: moved most of the code to ProtocolImporter.
	* ServiceDescriptionReflector.cs: moved most of the code to
	  ProtocolReflector and SoapProtocolReflector.
	* SoapProtocolImporter.cs: Implemented.
	* SoapProtocolReflector.cs: Implemented.
	* SoapTransportImporter.cs: Implemented.
	* SoapHttpTransportImporter.cs: Implemented.
	* wsdl.genxs: Added.

svn path=/trunk/mcs/; revision=18345
2003-09-28 11:51:17 +00:00
Tim Coleman 79eac60b9a 2002-07-24 Tim Coleman <[email protected]>
* ProtocolImporter.cs:
        * ProtocolReflector.cs:
                Some implementation of these classes.  MonoTODO's begone!
        * SoapProtocolImporter.cs:
                Changed description to literal string "Soap"
        * SoapProtocolReflector.cs:
                Added a new class based on guesswork and conjecture.

svn path=/trunk/mcs/; revision=6145
2002-07-24 17:09:38 +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