Commit Graph
177 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
APS e4620ee888 [FIX] Bug 267: wsdl fails with "Argument is out of range."
This fix bug 267
https://bugzilla.xamarin.com/show_bug.cgi?id=267

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2013-09-20 14:24:59 +02:00
Martin Baulig e5fd73b545 [#6041][WebServices]: Don't crash if an operation doesn't have <wsdl:output>. 2012-09-20 06:33:34 +02:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -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
Jb Evain b2b1e43507 Fix the monodroid and monotouch profile builds 2010-09-08 18:48:36 +02:00
Jb Evain 41f67f6409 Enable the System.Web.Services build for monodroid 2010-09-08 18:48:30 +02:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
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
Jb Evain 3008f09da1 fix build
svn path=/trunk/mcs/; revision=150641
2010-02-01 14:34:53 +00:00
Jb Evain ccb97a9136 2010-02-01 Jb Evain <[email protected]>
* SoapProtocolImporter.cs: properly generate the SoapHeader
	attribute on NET_2_0.

svn path=/trunk/mcs/; revision=150632
2010-02-01 13:15:02 +00:00
Miguel de Icaza 9175bdd20a 2009-09-30 Miguel de Icaza <[email protected]>
* ExtensionManager.cs: Initialize the NET_2_0 pieces with
	MonoTouch, but do not register any of the System.Configuration
	depending extensions.

	BuildExtensionImporters, BuildExtensionReflectors: empty methods
	for MOnoTouch.

	* ServiceDescriptionImporter.cs, WebReference.cs: Remove
	codegeneration features for MonoTouch

2009-09-30  Miguel de Icaza  <[email protected]>

	* Methods.cs: Empty extensions for MonoTouch for now.

	* ServerType.cs: On MonoTouch, we do not support HttpGet or
	HttpPost variations yet.

	* SoapExtension.cs: Avoid System.Configuration features.

svn path=/trunk/mcs/; revision=142956
2009-09-30 04:11:38 +00:00
Atsushi Eno 752b91ca2e 2008-12-18 Atsushi Enomoto <[email protected]>
* BasicProfileChecker.cs : /definitions/message/part could omit
	  name attribute and it should not cause null key error.


svn path=/trunk/mcs/; revision=121828
2008-12-19 03:57:03 +00:00
Atsushi Eno a9c2b070ba 2008-12-09 Atsushi Enomoto <[email protected]>
* BasicProfileChecker.cs : reimplemented R2305 that turned out to
	  be wrong on fixing bug #443095 (fixed).

	* 443095.wsdl, WebServicesInteroperabilityTest.cs : added
	  new test for R2305 checker.


svn path=/trunk/mcs/; revision=121095
2008-12-09 13:47:07 +00:00
Atsushi Eno dc51e346bf 2008-10-28 Atsushi Enomoto <[email protected]>
* BasicProfileChecker.cs : use indexer instead of Add() for
	  collected MessagePart table. Fixed bug #434892.


svn path=/trunk/mcs/; revision=117243
2008-10-28 09:32:46 +00:00
Atsushi Eno f0da894969 2008-07-07 Atsushi Enomoto <[email protected]>
* ServiceDescriptionSerializerBase2.cs,
	  ServiceDescriptionSerializerBase.cs : regenerated with the latest
	  sys.xml(.serialization).


svn path=/trunk/mcs/; revision=107373
2008-07-07 11:54: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 29a6d49636 2008-07-01 Atsushi Enomoto <[email protected]>
* BasicProfileChecker.cs : it does not really resolve relative URI in
	  <import> element. It caused error, which should be reported, but
	  .net ignores it. It must be LAMESPEC. Anyways added comments.

	* WebServicesInteroperabilityTest.cs : new test. wsdl with <import>
	  should not result in an error.
	* check-import.wsdl, check-import2.wsdl : test helper files.

	* System.Web.Services_test.dll.sources :
	  added WebServicesInteroperabilityTest.cs.
	* Makefile: updated EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=107006
2008-07-01 20:17:46 +00:00
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 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
Vladimir Krasnov 241ad24e2e * ProtocolReflector.cs: fixed ImportBinding method, ports with the same name declaration when non-default binding used, #345449
svn path=/trunk/mcs/; revision=105410
2008-06-10 11:50:43 +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 c721ee4746 2008-02-22 Atsushi Enomoto <[email protected]>
* ProtocolReflector.cs : reverted previous change, which caused
	  several regressions.

	* TypeStubManager.cs : reverted 2007-12-11 change as it caused
	  several regressions.

	* ServiceDescriptionReflectorTest.cs : mark Bug345448() NotWorking.


svn path=/trunk/mcs/; revision=96408
2008-02-22 03:54:18 +00:00
Vladimir Krasnov 3a71efc83c * ProtocolReflector.cs: fixed ImportBinding method, ports with the same name declaration when non-default binding used, #345449
* TypeStubManager.cs: fixed TypeStubInfo ctor, default binding name is wrong, when declared in WebServiceBindingAttribute, but not used. fixes #345448 

svn path=/trunk/mcs/; revision=91075
2007-12-11 08:57:00 +00:00
Gert Driesen f3d1905da9 * SoapProtocolImporter.cs: Only output Required argument for
SoapHeaderAttribute on .NET 1.0, since it is not used in .NET 1.1 and
higher. Avoids numerous warnings when compiling generated code.

svn path=/trunk/mcs/; revision=88644
2007-11-01 13:40:59 +00:00
Atsushi Eno 9192e5f7ef 2007-10-05 Atsushi Enomoto <[email protected]>
* HttpWebClientProtocol.cs : implemented EnableDecompression.

	* WebService.cs : [ComVisible].

	* DiscoveryClientProtocol.cs : [ComVisible]

	* ServiceDescriptionCollection.cs : added missing members.


svn path=/trunk/mcs/; revision=86951
2007-10-05 06:52:27 +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
Konstantin Triger 8e179a3fe6 set current ServiceDescription to the ConformanceCheckContext
svn path=/trunk/mcs/; revision=77899
2007-05-24 09:49:27 +00:00
Konstantin Triger ed6aafbf02 init context with current checker
svn path=/trunk/mcs/; revision=77721
2007-05-20 14:36:40 +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 56befb8af5 2007-05-08 Atsushi Enomoto <[email protected]>
* XmlReturnReader.cs
	  XmlReturnWriter.cs
	  TypeStubManager.cs
	  ServerType.cs
	  SoapServerType.cs
	  Methods.cs
	  HttpSimpleTypeStubInfo.cs
	  HttpGetTypeStubInfo.cs
	  HttpPostTypeStubInfo.cs :
	  I once replaced LogicalTypeInfo with ServerType. It was kind of
	  wrong, since ServerType could be instantiated at any time, while
	  LogicalTypeInfo used to be a singleton per static context.
	  Here I re-introduced LogicalTypeInfo and replaced most of
	  ServerType use with this.

	* HttpSimpleProtocolReflector.cs : ServerType -> LogicalTypeInfo.


svn path=/trunk/mcs/; revision=76968
2007-05-08 19:41:38 +00:00
Adar Wesley 5e4dc3f744 2007-05-07 Adar Wesley <[email protected]>
* ProtocolReflector.cs: added missing method ReflectDescription.
        implementation throws NotImplementedException. (forgot ifdef NET_2_0 in previous commit).


svn path=/trunk/mcs/; revision=76818
2007-05-07 09:32:11 +00:00
Adar Wesley 4b88ed9e56 2007-05-07 Adar Wesley <[email protected]>
* ProtocolReflector.cs: added missing method ReflectDescription.
        implementation throws NotImplementedException.


svn path=/trunk/mcs/; revision=76815
2007-05-07 09:21:52 +00:00
Konstantin Triger 586fedb02d enable looking the documents up by namespace
svn path=/trunk/mcs/; revision=74746
2007-03-21 16:01:49 +00:00
Konstantin Triger 09aeb135e0 fix validation of the R2401 rule
svn path=/trunk/mcs/; revision=74064
2007-03-11 13:31:48 +00:00
Konstantin Triger e9b44ea8e7 make FindAll(Type) consistent with Find(Type)
svn path=/trunk/mcs/; revision=74063
2007-03-11 13:29:42 +00:00
Atsushi Eno eef4be3681 2007-02-28 Atsushi Enomoto <[email protected]>
* ServiceDescriptionSerializeBase2.cs : regenerated with the latest
	  genxs.


svn path=/trunk/mcs/; revision=73528
2007-02-28 08:43:49 +00:00
Konstantin Triger 0b6c785a14 emit conformance claims when required
svn path=/trunk/mcs/; revision=73523
2007-02-28 07:08:10 +00:00
Konstantin Triger 0bb596802e undo r73469
svn path=/trunk/mcs/; revision=73470
2007-02-27 14:43:37 +00:00
Konstantin Triger c3fba7e77c consider empty string as nothing for documentation
svn path=/trunk/mcs/; revision=73469
2007-02-27 14:41:22 +00:00
Konstantin Triger e54f1bcd5c Ensure the schemas are available for validation
svn path=/trunk/mcs/; revision=72354
2007-02-06 14:58:57 +00:00
Konstantin Triger 4cda161b68 * ProtocolReflector.cs: throw if not conformant, but declared to be.
* TypeStubManager.cs, Methods.cs: refactor BindingInfo contruction to contain
	either declared Bindings or a default one.

svn path=/trunk/mcs/; revision=72089
2007-02-01 12:52:47 +00:00
Konstantin Triger abae175b9f describe only supported bindings and never HttpPostLocalhost
svn path=/trunk/mcs/; revision=71659
2007-01-25 09:59:09 +00:00
Atsushi Eno 767960c157 2007-01-19 Atsushi Enomoto <[email protected]>
* ServiceDescriptionImporter.cs : initialize CodeGenerator with C#.
	* SoapProtocolImporter.cs : use XmlMemberMapping.GenerateTypeName()
	  instead of TypeFullName for 2.0 nullable support. Fixed bug #80551.

	* ServiceDescriptionImporterTest.cs : new test.
	* test2.wsdl : new test support file.

	* System.Web.Services_test.dll.sources:
	  Added ServiceDescriptionImporterTest.cs.
	* Makefile : added test2.wsdl to EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=71319
2007-01-19 07:12:11 +00:00
Atsushi Eno dc0614add2 2006-12-18 Atsushi Enomoto <[email protected]>
* ProtocolReflector.cs, SoapProtocolReflector.cs,
	  ServiceDescriptionReflector.cs :
	  When both SOAP 1.1 and 1.2 bindings are to be imported, it should
	  not emit identical Messages and schema types twice. Hence SOAP
	  reflector now skips duplicates.


svn path=/branches/atsushi/mcs/; revision=69642
2006-12-18 07:41:55 +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 2943f3b60c 2006-12-15 Atsushi Enomoto <[email protected]>
* ProtocolReflector.cs, SoapExtensionReflector.cs : added
	  ReflectDescription() and its use.


svn path=/branches/atsushi/mcs/; revision=69526
2006-12-15 05:38:20 +00:00
Atsushi Eno 4b15457502 2006-12-15 Atsushi Enomoto <[email protected]>
* SoapProtocolImporter.cs : since Soap12Binding is derived from
	  SoapBinding, extra care in IsBindingSupported() is needed.

	* HttpSoapWebServiceHandler.cs,
	  SoapHttpClientProtocol.cs : support application/soap+xml.


svn path=/branches/atsushi/mcs/; revision=69521
2006-12-15 04:54:38 +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 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