Commit Graph
95 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
Marek Safar a10f7b72ac Fix failing test 2013-03-08 15:56:58 +01:00
Marek Safar a4915d561e Update mobile tests 2013-03-07 16:34:24 +01: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
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
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
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
Robert Jordan 0e35975fec In Test/System.Web.Services:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.

In Test/System.Web.Services.Configuration:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.

In Test/System.Web.Services.Discovery:
2009-06-26  Robert Jordan  <[email protected]>

	* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136961
2009-06-26 13:34:58 +00:00
Robert Jordan ccf0eeec37 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136960
2009-06-26 13:31:32 +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
Zoltan Varga f10ff05fc6 2008-10-08 Zoltan Varga <[email protected]>
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
	profile to 'net_1_1'.

svn path=/trunk/mcs/; revision=115166
2008-10-08 05:58:51 +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 1d6a9d0dae 2008-07-01 Atsushi Enomoto <[email protected]>
* test3.wsdl: added missing file (though the test is ignored).


svn path=/trunk/mcs/; revision=107003
2008-07-01 20:07:23 +00:00
Vladimir Krasnov b14ed31044 ServiceDescriptionReflectorTest.cs: added tests for bug fixes: #345448, #345449, #360241
svn path=/trunk/mcs/; revision=105412
2008-06-10 11:52:25 +00:00
Lluis Sanchez 71ad99bb15 * Test/System.Web.Services.Description/ServiceDescriptionReflectorTest.cs:
Added another test for bug #345448.

svn path=/trunk/mcs/; revision=99044
2008-03-26 17:30:07 +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
Atsushi Eno a0f97b9372 2008-01-08 Arina Itkes <[email protected]>
* Methods.cs: Fix for compatibility with .NET:
	  In .NET if SOAPAction is set to empty string it is regarded like
	  clearly specified with empty string.

2008-01-08  Atsushi Enomoto  <[email protected]>

	* ServiceDescriptionReflectorTest.cs : added test for empty SOAP
	  action.


svn path=/trunk/mcs/; revision=92427
2008-01-08 05:41:02 +00:00
Atsushi Eno 1e9a50dbb8 2007-10-10 Atsushi Enomoto <[email protected]>
* Methods.cs : (SoapMethodStubInfo) reverted r74747 which caused
	  bug #332150.

	* ServiceDescriptionReflectorTest.cs : added test for bug #332150.


svn path=/trunk/mcs/; revision=87245
2007-10-10 08:24:53 +00:00
Atsushi Eno 4c2389c77d 2007-10-05 Atsushi Enomoto <[email protected]>
* WebService.cs : Do not always expect HttpContext existence.
	  Fixed bug #331183.

	* WebServiceTest.cs : new test (for bug #331183).

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


svn path=/trunk/mcs/; revision=86996
2007-10-05 16:09:05 +00:00
Atsushi Eno 8baf35f5a3 2007-10-03 Atsushi Enomoto <[email protected]>
* SoapHttpClientProtocolTest.cs: actually those tests fails on mono
	  on Windows, so mark them as Ignore (not only in 2.0).


svn path=/trunk/mcs/; revision=86811
2007-10-03 14:24:47 +00:00
Atsushi Eno c32b72f16c 2007-10-03 Atsushi Enomoto <[email protected]>
* TypeElement.cs : disable a test that causes NRE on .NET.

	* SoapHttpClientProtocolTest.cs: disabled connection-oriented tests
	  that do not work fine on .NET 2.0.


svn path=/trunk/mcs/; revision=86802
2007-10-03 11:01:21 +00:00
Gert Driesen 1a4b80bfb4 * LogicalMethodInfoTest.cs: Fixed namespace.
* WebClientProtocolTest.cs: Fixed namespace.
* SoapHttpClientProtocolTest.cs: Fixed namespace. Added test for
bug #81886.
* SoapServerTypeTest.cs: Fixed namespace.
* SocketResponder.cs: Sync with copy in System assembly.
* Fault.cs: In SOAP 1.1, the child elements of Fault may be unqualified.
Fixed FaultReader's ReadObject_Fault to only process either unqualified
elements or elements in the SOAP 1.1 namespace, hereby fixing part of 
bug #81886 where an unqualified detail element was not processed. In 
FaultWriter, write unqualified detail element. Fixes second part of 
bug #81886.

svn path=/trunk/mcs/; revision=79855
2007-06-16 15:24:58 +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 66c11ebef3 2007-05-11 Atsushi Enomoto <[email protected]>
* ServiceDescriptionReflectorTest.cs : added test for 78953 (not
	  working, hard to fix) and 79807 (already fixed).


svn path=/trunk/mcs/; revision=77195
2007-05-11 05:59:02 +00:00
Atsushi Eno be478d56c0 2007-05-11 Atsushi Enomoto <[email protected]>
* SoapServerType.cs : avoid IndexOutOfRange on reflecting 
	  SoapRpcAttribute.

	* SoapServerTypeTest.cs : make sure that SoapRpcServiceAttribute works.


svn path=/trunk/mcs/; revision=77194
2007-05-11 05:36:50 +00:00
Atsushi Eno a175ad4f30 2007-05-08 Atsushi Enomoto <[email protected]>
* SoapServerMethod.cs : Some refactoring. simply use GetMethod() in
	  type stub. WsiClaims could be retrieved from type stub.
	* SoapServerType.cs : store server methods and implement GetMethod().

	* SoapServerTypeTest.cs : added some more tests related to server
	  methods.


svn path=/trunk/mcs/; revision=76986
2007-05-09 07:21:47 +00:00
Atsushi Eno bf63451764 2007-05-08 Atsushi Enomoto <[email protected]>
* SoapServerType.cs
	  ServerType.cs
	  Methods.cs : SoapBindingUse and SoapServiceRoutingStyle could just
	  be stored in LogicalTypeInfo (as they are attributed in a web
	  service class), and removed duplicates of them in SoapTypeStubInfo.
	  Invalid attributes on a service class are checked in SoapServerType
	  .ctor().

	* SoapServerTypeTest.cs : added some .ctor() tests to verify
	  validity of attributes on the service class.


svn path=/trunk/mcs/; revision=76969
2007-05-08 19:58:38 +00:00
Atsushi Eno 4f0eb6beb2 2007-05-08 Atsushi Enomoto <[email protected]>
* LogicalMethodInfo.cs : MethodInfo is null when it is async.
	  Added internal ActualMethodInfo to represent "sync or begin" method
	  (i.e. former MethodInfo).
	* HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs :
	  MethodInfo -> ActualMethodInfo.

	* LogicalMethodInfoTest.cs : new test (cosmetic for now).

	* System.Web.Services.dll.sources :
	  removed SoapClientMethod.cs (not in use).
	* System.Web.Services_test.dll.sources :
	  added LogicalMethodInfoTest.cs.


svn path=/trunk/mcs/; revision=76888
2007-05-08 06:24:32 +00:00
Atsushi Eno d0448c2338 2007-04-23 Atsushi Enomoto <[email protected]>
* TypeStubManager.cs : fix binding enumeration on finding by name.
	  fix wrong ONLY_1_1.
	* ServerType.cs : ONLY_1_1 is evil enough to make sources confusing.
	  Use it only when it is really needed.

	* SoapServerTypeTest.cs : added new test (one is not working yet).
	  It will be very useful when we test service type generation.

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


svn path=/trunk/mcs/; revision=76113
2007-04-23 13:10:21 +00:00
Raja R Harinath 151ce93e27 Fix compile error
* ServiceDescriptionReflectorTest.cs (NullableContainer): Hide in 1.1 profile.

svn path=/trunk/mcs/; revision=73293
2007-02-22 07:43:41 +00:00
Atsushi Eno e2c6026e56 2007-02-19 Atsushi Enomoto <[email protected]>
* ServiceDescriptionReflectorTest.cs : added test for methods with
	  nullable return type.


svn path=/trunk/mcs/; revision=73121
2007-02-19 15:59:21 +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
Gert Driesen da0f3b2ced * SoapHttpClientProtocolTest.cs: Added test for bug #79988.
* SocketResponder.cs: Utility class for emulating Web Service backend.
* System.Web.Services_test.dll.sources: added SocketResponder.cs and
SoapHttpClientProtocolTest.cs.

svn path=/trunk/mcs/; revision=71044
2007-01-15 15:42:20 +00:00
Atsushi Eno 2c7ee62485 2006-12-18 Atsushi Enomoto <[email protected]>
* Makefile : make tests run with modified version of
          the libraries.


svn path=/branches/atsushi/mcs/; revision=69678
2006-12-18 18:53:51 +00:00
Atsushi Eno c04c8efdf2 2006-12-15 Atsushi Enomoto <[email protected]>
* ServiceDescriptionFormatExtensionCollectionTest.cs :
	  new test.

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


svn path=/branches/atsushi/mcs/; revision=69529
2006-12-15 08:21:00 +00:00
Atsushi Eno ba9c7395e0 2006-11-15 Atsushi Enomoto <[email protected]>
* WebReference.cs : added missing .ctor().

	* WebReferenceTest.cs : added new test (so minor).

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


svn path=/trunk/mcs/; revision=67905
2006-11-15 12:40:39 +00:00
Atsushi Eno ab2f11f5d9 2006-11-14 Atsushi Enomoto <[email protected]>
* WebReferenceOptions.cs : actually Read() raises invalid operation
	  when it raises an error.

	* WebReferenceOptionsTest.cs :
	  Read() actually causes invalid operation.


svn path=/trunk/mcs/; revision=67863
2006-11-14 17:51:15 +00:00
Atsushi Eno b6ec9e0276 2006-11-14 Atsushi Enomoto <[email protected]>
* web-reference.xsd : fixed namespace URI.
	* web-reference.genxs : genxs file.
	* WebReferenceOptionsSerializer.cs : new file, generated by genxs.
	* WebReferenceOptions.cs : implemented Read().

	* WebReferenceOptionsTest.cs :
	  added test for Read(). Fixed namespace URI.

	* System.Web.Services.dll.sources :
	  added WebReferenceOptionsSerializer.cs.


svn path=/trunk/mcs/; revision=67861
2006-11-14 17:43:32 +00:00
Atsushi Eno a375178906 2006-11-14 Atsushi Enomoto <[email protected]>
* System.Web.Services.dll.sources : added WebReferenceOptions.cs.
	* System.Web.Services_test.dll.sources :
	  added WebReferenceOptionsTest.cs.
	* Makefile: added web-reference.xsd to resources and dist files.

	* ServiceDescriptionImportStyle.cs : added XmlEnum attributes in
	  2.0 profile.
	* WebReferenceOptions.cs : new 2.0 class.
	* web-reference.xsd : new resource for WebReferenceOptions.Schema.

	* WebReferenceOptionsTest.cs : new test.


svn path=/trunk/mcs/; revision=67849
2006-11-14 15:10:23 +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 60829a9bba implemented WebClientProtocol.UseDefaultCredentials()
svn path=/trunk/mcs/; revision=64553
2006-08-30 13:51:51 +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
Gert Driesen 1acd96adbe * ServiceDescriptionReflectorTest.cs: Use only one include as otherwise the
order of element on MS.NET is not consistent.

svn path=/trunk/mcs/; revision=56562
2006-02-04 09:26:40 +00:00
Gert Driesen 00d83f1d82 * ServiceDescriptionReflectorTest.cs: New test, currently marked NotWorking.
* System.Web.Services_test.dll.sources: Added ServiceDescriptionReflectorTest.cs

svn path=/trunk/mcs/; revision=56561
2006-02-04 08:17:35 +00:00
Raja R Harinath fc8db7f1d7 * TypeElementTest.cs (Ctors1): Don't expect a null-reference exception.
svn path=/trunk/mcs/; revision=55495
2006-01-13 08:31:56 +00:00
Chris Toshok dc2202e42a some new tests
svn path=/trunk/mcs/; revision=55269
2006-01-09 22:17:31 +00:00