Commit Graph
183 Commits
Author SHA1 Message Date
Lluis Sanchez 8e1cc840ac 2006-03-03 Lluis Sanchez Gual <[email protected]>
* Methods.cs: In BuildResponseReflectionMembers, use the operation
	name as base name for the response element. Don't use the request
	name as base, since it may have been customized using the RequestElementName
	property. Fixes bug #548988.


svn path=/trunk/mcs/; revision=152950
2010-03-03 16:29:06 +00:00
Gonzalo Paniagua Javier 466c3edeaf 2010-02-15 Gonzalo Paniagua Javier <[email protected]>
* SoapDocumentationHandler.cs: use IndexOf() instead of LastIndexOf()
	when removing the querystring from the url.



svn path=/trunk/mcs/; revision=151754
2010-02-15 23:12:23 +00:00
Miguel de Icaza 59c98dc89a + * ServerType.cs: Do not use Activator.CreateInstance, use the call
+	directly. 
+
+2009-10-02  Miguel de Icaza  <[email protected]>
+
+	* ServerType.cs: Refactored all of this code to not use
+	Activator.CreateInstance. 


svn path=/trunk/mcs/; revision=144296
2009-10-17 00:11:28 +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
Marek Habersack b6969f355f 2009-08-24 Marek Habersack <[email protected]>
* PageParser.cs: 2.0 profile takes advantage of the inputFile
	parameter to GetCompiledPageInstance. A check is made whether the
	file pointed to by this parameter is inside the application's
	virtual path and if not, the compilation request is assumed to
	refer to a fake location. Part of fix for bug #463813

2009-08-24  Marek Habersack  <[email protected]>

	* PageBuildProvider.cs: MapPath now takes a VirtualPath
	instance. Part of fix for bug #463813

	* BuildManager.cs: public APIs which take virtual path strings as
	their parameters got internal counterparts accepting a VirtualPath
	instance in place of string. Part of fix for bug #463813

	* GenericBuildProvider.cs:
	MapPath now takes a VirtualPath instance. Part of fix for bug
	#463813

2009-08-24  Marek Habersack  <[email protected]>

	* SoapDocumentationHandler.cs: get rid of the ugly fake virtual
	path hack when creating the helper page. Part of fix for bug
	#463813

2009-08-24  Marek Habersack  <[email protected]>

	* VirtualPath.cs: Added new constructor which takes virtual and
	physical paths as well as a boolean marking the instance as
	referring to a fake location. Part of fix for bug #463813

svn path=/trunk/mcs/; revision=140548
2009-08-24 20:34:57 +00:00
Gonzalo Paniagua Javier 374b8ff979 2009-07-23 Gonzalo Paniagua Javier <[email protected]>
* LogicalMethodInfo.cs: add CacheDuration property.
	* WebServiceHandlerFactory.cs: use CacheDuration.
	Fixes bug #524460.


svn path=/trunk/mcs/; revision=138492
2009-07-23 04:22:15 +00:00
Marek Habersack 2094329d9a 2009-05-05 Marek Habersack <[email protected]>
* Methods.cs: if SoapRpcMethodAttribute doesn't specify the action
	or the action name is an empty string, generate the Action in
	SoapMethodStubInfo constructor. Fixes bug #459790

svn path=/trunk/mcs/; revision=133574
2009-05-05 12:30:25 +00:00
Gonzalo Paniagua Javier b2c1e349f2 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* HttpSoapWebServiceHandler.cs: provide the full stack trace instead
	of just the Message to aid in debugging web service problems.
	Bug #496758 fixed.


svn path=/trunk/mcs/; revision=132335
2009-04-21 22:41:32 +00:00
Vladimir Krasnov 7cdc3e104c * TypeStubManager.cs: fixed TypeStubInfo ctor, default binding name is wrong, when declared in WebServiceBindingAttribute, but not used. fixes. bug number: #345448
svn path=/trunk/mcs/; revision=105411
2008-06-10 11:51:42 +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
Marek Habersack 9527079e54 2008-01-24 Marek Habersack <[email protected]>
* SoapDocumentationHandler.cs: use a fake virtual path to get the
        WSDL help generator.

        * WebServiceHandlerFactory.cs: use BuildManager.GetCompiledType
        for the 2.0+ profile to get the handler type.


svn path=/trunk/mcs/; revision=94150
2008-01-28 15:47:56 +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
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
Atsushi Eno 923d995925 2007-11-12 Atsushi Enomoto <[email protected]>
* SoapHttpClientProtocol.cs : compare content-type in case-
	  insensitive manner. Fixed bug #325277.


svn path=/trunk/mcs/; revision=89444
2007-11-12 05:03:44 +00:00
Atsushi Eno 90c51b84d0 2007-11-09 Atsushi Enomoto <[email protected]>
* SoapDocumentationHandler.cs : handle 'schema' HTTP parameter like
	  "...blah.asmx?schema=MySchemaID". (Such URL does not work yet.)


svn path=/trunk/mcs/; revision=89317
2007-11-09 14:45:31 +00:00
Atsushi Eno 19c82f604a 2007-10-29 Atsushi Enomoto <[email protected]>
* SoapException.cs : serialization constructor didn't call base.
	  Fixed bug #337421.


svn path=/trunk/mcs/; revision=88354
2007-10-29 08:27:47 +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 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
Atsushi Eno 7a4ff9289b 2007-10-04 Atsushi Enomoto <[email protected]>
* TypeStubManager.cs: reverted r82932 again. This #if ONLY_1_1 causes
	  NUnit test regressions. It should not be reverted again until
	  appropriate NUnit test case is provided and proper fix is provided
	  that does not cause regressions.


svn path=/trunk/mcs/; revision=86851
2007-10-04 08:42:18 +00:00
Marek Habersack 00d889d7c9 2007-09-25 Marek Habersack <[email protected]>
* WebServiceHandlerFactory.cs: WebServiceParser.GetCompiledType
	must be passed a virtual path, not physical one. Fixes bug
	#327809.


svn path=/trunk/mcs/; revision=86290
2007-09-24 22:18:18 +00:00
Robert Jordan f7bea0fc2a 2007-08-21 Robert Jordan <[email protected]>
* ValueCollectionParameterReader.cs (Read):
	Add support for array parameters. Fixes #82519.


svn path=/trunk/mcs/; revision=84680
2007-08-23 06:22:53 +00:00
Vladimir Krasnov 6e593b9568 * TypeStubManager.cs: fixed BindingInfo.ctor, reverted to ONLY_1_1
svn path=/trunk/mcs/; revision=82932
2007-07-29 13:10:13 +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 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 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
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
Konstantin Triger 8b8939518a add support for SOAP1.2 to pass action in ContentType HTTP header. See http://www.w3.org/TR/soap12-part0/#L4697
svn path=/trunk/mcs/; revision=76459
2007-04-29 13:27:34 +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
Konstantin Triger 150f043c8a Use HttpRequest.IsLocal to determine local request in 2.0 profile
svn path=/trunk/mcs/; revision=75612
2007-04-11 14:25:26 +00:00
Konstantin Triger 93ab264618 add support for the 2.0 feature, which enables declaring WebService/WebMethods attributes in interface
svn path=/trunk/mcs/; revision=74747
2007-03-21 16:18:58 +00:00
Konstantin Triger 744002f16a throw on protocol version mismatch for 2.0 profile only
svn path=/trunk/mcs/; revision=74065
2007-03-11 14:10:00 +00:00
Vladimir Krasnov e92ee2e521 * TypeStubManager.cs: fixed BindingInfo.ctor, it does not takes Name property from WebServiceBindingAttribute in .net 2.0
svn path=/trunk/mcs/; revision=74057
2007-03-11 09:36:50 +00:00
Konstantin Triger 69fb3a75e8 throw on protocol version mismatch
svn path=/trunk/mcs/; revision=73670
2007-03-04 06:52:47 +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 88a2aec14f Provide better error info
svn path=/trunk/mcs/; revision=72088
2007-02-01 12:44:47 +00:00
Miguel de Icaza 9a834a8eb1 2007-01-19 Atsushi Enomoto <[email protected]>
* System.Web.Services_test.dll.sources:
	  Added ServiceDescriptionImporterTest.cs.
	* Makefile : added test2.wsdl to EXTRA_DISTFILES.

2007-01-15  Gert Driesen  <[email protected]>

	* System.Web.Services_test.dll.sources: added SocketResponder.cs and
	SoapHttpClientProtocolTest.cs.

svn path=/trunk/mcs/; revision=71495
2007-01-22 23:56:37 +00:00
Atsushi Eno 41897118e1 2006-12-22 Atsushi Enomoto <[email protected]>
* HttpSoapWebServiceHandler.cs : (SerializeFault) requestMessage
	  could be null.


svn path=/branches/atsushi/mcs/; revision=69928
2006-12-22 10:17:54 +00:00
Atsushi Eno 2cf88c8d13 2006-12-21 Atsushi Enomoto <[email protected]>
* WebServiceHelper.cs :
	  added Soap12FaultToSoapException conversion method (copied from
	  SoapHttpClientProtocol.cs).
	  Added couple of switching fault code getter (by soap12 flag).
	* SoapMessage.cs: added IsSoap12 property to simplify SOAP 1.2
	  conditional code.
	* HttpSimpleServerProtocolFactory.cs, WebServiceHelper.cs,
	  HttpSoapWebServiceHandler.cs, SoapHttpClientProtocol.cs :
	  reflected all changes above. Switch 1.2 fault and 1.1 fault, and
	  simplify 1.2 switch.


svn path=/branches/atsushi/mcs/; revision=69894
2006-12-21 20:10:30 +00:00
Atsushi Eno 51c06f15ad 2006-12-21 Atsushi Enomoto <[email protected]>
* SoapHttpClientProtocol.cs : SOAP 1.2 client should allow text/xml
	  content type. Now bug #79985 is fixed here.


svn path=/branches/atsushi/mcs/; revision=69882
2006-12-21 19:05:09 +00:00
Atsushi Eno f704c503ed 2006-12-21 Atsushi Enomoto <[email protected]>
* HttpSoapWebServiceHandler.cs : read xml with correct
          SOAP 1.2 Envelope namespace. To determine the message
          version, it must check SOAP version in
          DeserializeRequest().


svn path=/branches/atsushi/mcs/; revision=69856
2006-12-21 10:35:21 +00:00
Atsushi Eno dcd309ea27 2006-12-19 Atsushi Enomoto <[email protected]>
* SoapClientMessage.cs : oops, SoapVersion is only 2.0.


svn path=/branches/atsushi/mcs/; revision=69711
2006-12-19 05:57:52 +00:00
Atsushi Eno a9d9613853 2006-12-19 Atsushi Enomoto <[email protected]>
* SoapHttpClientProtocol.cs :
          Don't use HTTP header when SoapVersion is Soap12.
        * HttpSoapWebServiceHandler.cs :
          With SOAP 1.2 message we can only use Body content.
          Set correct Content-Type for SOAP 1.2 message.
        * Fault12.cs : added null check.
        * SoapClientMessage.cs :
          Set correct Content-Type for SOAP 1.2 message.
        * WebServiceHandlerFactory.cs :
          don't reject SOAP 1.2 protocol here.


svn path=/branches/atsushi/mcs/; revision=69710
2006-12-19 05:52:02 +00:00
Atsushi Eno dcd6c9af5a 2006-12-18 Atsushi Enomoto <[email protected]>
* WebServiceHandlerFactory.cs,
	  SoapServerMessage.cs,
	  HttpSoapWebServiceHandler.cs :
	  set guessed protocol to SoapServerMessage.


svn path=/branches/atsushi/mcs/; revision=69653
2006-12-18 09:34:37 +00:00
Atsushi Eno 918725a89a 2006-12-18 Atsushi Enomoto <[email protected]>
* TypeStubManager.cs, Methods.cs, SoapServerMethod.cs :
	  added WsiClaims property to TypeStubInfo, to implement
	  SoapServerMethod.WsiClaims.


svn path=/branches/atsushi/mcs/; revision=69648
2006-12-18 08:46:42 +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 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 655dd67c31 2006-12-04 Atsushi Enomoto <[email protected]>
* WebService.cs : implemented SoapVersion as documented in MSDN.

	* SoapProtocolImporter.cs : added trivial IsSoapEncodingPresent().

	* AnyReturnReader.cs : not sure why, but the build must have been
	  broken, and now it is exposed.
	* SoapHttpClientProtocol.cs : added missing members, left as MonoTODO.


svn path=/branches/atsushi/mcs/; revision=68936
2006-12-04 10:20:11 +00:00
Atsushi Eno 1c16e8f710 2006-12-01 Atsushi Enomoto <[email protected]>
* AnyReturnReader.cs : implemented, it does almost nothing.


svn path=/branches/atsushi/mcs/; revision=68825
2006-12-01 11:02:01 +00:00