Commit Graph
24 Commits
Author SHA1 Message Date
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
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 b6a1f08fbf 2006-11-30 Atsushi Enomoto <[email protected]>
* SoapHeaderMapping.cs : Now HeaderInfo became this type to implement
	  this class. Remapped some members (e.g. IsUnknownHeader -> Custom).
	* Methods.cs : so, split HeaderInfo from here.
	* SoapMessage.cs : Added alias HeaderInfo to SoapHeaderMapping.
	  Renamed some properties.

	* SoapProtocolReflector.cs : Added alias HeaderInfo to
	  SoapHeaderMapping. Renamed some properties.


svn path=/branches/atsushi/mcs/; revision=68741
2006-11-30 13:47:48 +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 16ab5ebfe1 2006-11-21 Atsushi Enomoto <[email protected]>
* WebClientProtocol.cs HttpWebClientProtocol.cs SoapException.cs
	  SoapHeaderException.cs HttpSimpleClientProtocol.cs
	  SoapHttpClientProtocol.cs SoapMessage.cs:
	  assorted cosmetic API fixes.


svn path=/trunk/mcs/; revision=68318
2006-11-22 02:09:45 +00:00
Vladimir Krasnov ce60d51d2c * SoapExtension.cs: fixed ExecuteProcessMessage signature, added stream parameter in order to update SoapMessage stream
* SoapMessage.cs: removed unused ctor, added internal property to set SoapMessage's stream member
* HttpSoapWebServiceHandler.cs, SoapHttpClientProtocol.cs: updated usage of ExecuteProcessMessage

svn path=/trunk/mcs/; revision=58011
2006-03-15 12:21:09 +00:00
Lluis Sanchez e792c7c5cd * HttpWebClientProtocol.cs, Soap12FaultCodes.cs, SoapClientMessage.cs,
SoapException.cs, SoapHeader.cs, SoapHeaderException.cs,
	  SoapHttpClientProtocol.cs, SoapMessage.cs, SoapRpcMethodAttribute.cs,
	  SoapRpcServiceAttribute.cs, SoapServerMessage.cs: Api fixage (mainly
	  missing attributes).

svn path=/trunk/mcs/; revision=31069
2004-07-13 10:16:10 +00:00
Lluis Sanchez 42281c4845 * HttpSimpleClientProtocol.cs, HttpWebClientProtocol.cs,
SoapClientMessage.cs, SoapHttpClientProtocol.cs, SoapServerMessage.cs:
	  Added 2.0 stubs.
	* SoapException.cs, SoapHeader.cs, SoapHeaderException.cs, SoapMessage.cs,
	  SoapRpcMethodAttribute.cs, SoapRpcServiceAttribute.cs: Implemented some
	  new methods and properties.
	* WebClientProtocol.cs: uri field must be internal.

svn path=/trunk/mcs/; revision=30972
2004-07-09 23:21:42 +00:00
Lluis Sanchez d3ce74361e * Methods.cs, SoapMessage.cs: Added support for unknown headers.
* SoapHeader.cs, SoapUnknownHeader.cs: Added new constructor that takes an
	  XmlElement with header info.
	* WebServiceHelper.cs: Write the encodingStyle attribute when using the
	  encoded format. Added support for unknown headers.

svn path=/trunk/mcs/; revision=30622
2004-07-01 14:11:28 +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 80f7efa5ae * HttpSoapWebServiceHandler.cs: Set the properties ContentType and
ContentEncoding in SoapServerMessage.
	* LogicalMethodInfo.cs: Implemented AsyncResultParameter, BeginInvoke and
	  EndInvoke. Fixed ComputeParameters, so it computes the correct parameters
	  for async logical methods.
	* Methods.cs: Check that client proxies have one and only one
	  WebServiceBindingAttribute.
	* PatternMatcher.cs: Implemented (in fact, just moved code from
	  TextReturnReader.cs)
	* SoapDocumentationHandler.cs: Add soap bindings in the generated
	  discovery document.
	* SoapHttpClientProtocol.cs: Implemented method Discover().
	* SoapMessage.cs: Implemented property ContentEncoding.
	* TextReturnReader.cs: Moved code to PatternMatcher.cs.

svn path=/trunk/mcs/; revision=23855
2004-03-09 23:56:58 +00:00
Lluis Sanchez 3ff5b4d210 * HttpWebClientProtocol.cs: Added missing property.
* Methods.cs: Default binding for a method must be null.
	* SoapHeaderDirection.cs: Added missing enum value.
	* SoapMessage.cs: Added missing property.
	* TypeStubManager.cs: Removed unneded check from AddBinding.
	  In GetBinding(), return default binding if name is null.
	* ValueCollectionParameterReader.cs: IsPrimitive must be internal.

svn path=/trunk/mcs/; revision=22455
2004-01-24 01:52:48 +00:00
Lluis Sanchez 1b07d5ac23 * Methods.cs, TypeStubManager.cs, SoapMessage.cs: Removed TODO comment.
* SoapDocumentationHandler.cs: Check that the documentation page exist.
	* SoapHttpClientProtocol.cs: Removed cast from WebResponse to
	  HttpWebResponse. This fixes bug #51281.

svn path=/trunk/mcs/; revision=20385
2003-11-24 15:02:41 +00:00
Lluis Sanchez 2f79bb812a * HttpSoapWebServiceHandler.cs: In SerializeResponse method, improved
management of exceptions. Also added support for BufferResponse flag.
	* Methods.cs: Added MethodAttribute property in MethodStubInfo. Added
	  XmlImporter, SoapImporter and Type properties in TypeStubInfo.
	* SoapMessage.cs: little fix.

svn path=/trunk/mcs/; revision=18346
2003-09-28 11:51:48 +00:00
Lluis Sanchez 3f5448730c * SoapHttpClientProtocol.cs, HttpSoapWebServiceHandler.cs, Methods.cs:
Added support for soap extensions. Moved some code to
	  WebServiceHelper. Implemented support for the two types of RoutingStyle. Added support
	  for In and Out headers. Improved management of exceptions.
	* SoapClientMessage.cs: code to retrieve soap headers moved to SoapMessage.
	* SoapExtension.cs: Added methods for getting and creating soap extensions.
	* SoapMessage.cs: Added methods for getting and assigning headers to an object.
	* SoapServerMessage.cs: Added setter for MethodStubInfo. Other minor fixes.
	* WebServiceHandler.cs: Added support for In and Out headers. Fixed management of exceptions.
	* WebServiceHandlerFactory.cs: Check if the request protocol is supported.
	* WebServiceHelper.cs: Added method for reading a soap request.

svn path=/trunk/mcs/; revision=16057
2003-07-09 16:23:31 +00:00
Lluis Sanchez 311407acb2 * LogicalMethodInfo.cs: Fixed Invoke method. If return type is void,
then the result object array only contain output parameters.

	* Methods.cs: In class MethodStubInfo, added support from some server properties
	  taken from WebMethodAttribute. Now MethodStubInfo can be created without SoapDocument*
	  or SoapRpc* attributes, in which case takes default values from TypeStubInfo.
	  Added method for getting header info.
	  In class Fault: added constructor for creating a fault from a SoapException.
	  In class TypeStubInfo: new way to manage serializers for headers. Now it is possible to
	  get a header using a name and namespace (used when deserializing).

	* SoapHttpClientProtocol.cs: moved WriteSoapEnvelope method to WebServiceHelper (so it can be shared).
	  Also moved other serialization stuff to WebServiceHelper.

	* SoapMessage.cs: Added some convenient constructors and internal properties.
	  Implemented GetOutParameterValue and GetReturnValue.

	* SoapServerMessage.cs: Implemented.

	* WebServiceHandler.cs: Implemented method Invoke.

	* WebServiceHandlerFactory.cs: Basic implementation.

	* WebServiceHelper.cs: Added. Has some methods shared between client and server classes.

	* HttpSoapWebServiceHandler.cs: Added. IHttpHandler implementation for HttpSoap requests.

svn path=/trunk/mcs/; revision=15909
2003-07-04 01:30:56 +00:00
Lluis Sanchez 5fbb899cb0 * Methods.cs: Added information about headers in MethodStubInfo. Added cache of serializers
in TypeStubInfo so serializers for headers they can be shared by several methods.
	* SoapClientMessage.cs: Headers added in the constructor.
	* SoapMessage.cs: Added header list initialization.
	* SoapHttpClientProtocol.cs: Added support soap headers.

svn path=/trunk/mcs/; revision=15382
2003-06-14 14:38:01 +00:00
Miguel de Icaza d0c3b87e3a Various changes, they send the the SOAP request, now XmlSerialization is required
+2003-04-30  Miguel de Icaza  <[email protected]>
+
+	* SoapHttpClientProtocol.cs: Flag the methods in the chain that
+	gets the caller method as non-inlineable.

svn path=/trunk/mcs/; revision=14490
2003-05-11 16:15:05 +00:00
Miguel de Icaza 0ab8a5a974 2003-04-29 Miguel de Icaza <[email protected]>
* SoapHttpClientProtocol.cs (CreateMessage): Extract information
	from the method to be called.

	* SoapDocumentMethodAttribute.cs: Do not initialize all the fields
	on the attribute at bootstrap, for default values, just compute
	them when queried.

	* SoapMessage.cs (SetStage): New internal method, used to register
	the stage as we move along the soap pipeline.

svn path=/trunk/mcs/; revision=14130
2003-04-30 02:31:42 +00:00
Miguel de Icaza 058ec5ae73 2003-04-29 Miguel de Icaza <[email protected]>
* LogicalMethodInfo.cs: Most of this is implemented.  Its only
	missing a few bits in the Create() method.

	* SoapHttpClientProtocol.cs: Begin implementation of Invoke, which
	lead to other dependencies to be implemented.

	* LogicalMethodInfo.cs: Mostly complete.  It is only missing the
	async features (BeginInvoke/EndInvoke) on a LogicalMethodInfo.

	* WebClientProtocol.cs (GetWebRequest): Track the web request, so
	we can abort it later.
	(Abort): Call abort on the underlying transport.

svn path=/trunk/mcs/; revision=14129
2003-04-30 01:09:58 +00:00
Tim Coleman d198f3f5a7 2002-07-25 Tim Coleman <[email protected]>
* SoapClientMethod.cs:
        * SoapServerProtocol.cs:
                Add new internal classes as discovered.
        * SoapClientMessage.cs:
        * SoapMessage.cs:
        * SoapServerMessage.cs:
        * WebClientAsyncResult.cs:
                Add internal constructor, as found on class
                status page; modify some properties.

svn path=/trunk/mcs/; revision=6195
2002-07-26 14:31:43 +00:00
Tim Coleman 63964af025 2002-07-23 Tim Coleman <[email protected]>
* HttpGetClientProtocol.cs:
        * HttpPostClientProtocol.cs
                Implemented the GetWebRequest method
        * HttpSimpleClientProtocol:
                Some implementation of the EndInvoke method
        * HttpWebClientProtocol.cs:
                Set the UserAgent string appropriately
                Implemented the GetWebRequest method
                Implemented the GetWebResponse methods
        * SoapHttpClientProtocol.cs:
                Removed unused fields
                Implemented the GetWebRequest method
        * SoapMessage.cs:
                Implemented the EnsureStage method
        * WebClientProtocol.cs:
                Added a static constructor to construct the cache
                Implemented the Abort method
                Implemented the AddToCache, GetFromCache methods
                Implemented the GetWebRequest method
                Implemented the GetWebResponse methods

svn path=/trunk/mcs/; revision=6095
2002-07-23 21:36:08 +00:00
Tim Coleman 598b83e9a4 2002-07-23 Tim Coleman <[email protected]>
* LogicalMethodTypes.cs:
        * SoapHeaderDirection.cs:
        * SoapMessageStage.cs:
        * SoapParameterStyle.cs:
        * SoapServiceRoutingStyle.cs:
                Explicitly define values in enum to match
                .NET.
        * SoapMessage.cs:
                Removed constructor which should not be present.
        * SoapException.cs:
                Made protected fields private as they should
                be.
        * SoapHeaderException.cs:
                Modifications to constructors to propertly
                call base class constructor

svn path=/trunk/mcs/; revision=6087
2002-07-23 17:14:51 +00:00
Tim Coleman 18e1abdf7a 2002-07-20 Tim Coleman <[email protected]>
* AnyReturnReader.cs:
	* HtmlFormParameterReader.cs:
	* HtmlFormParameterWriter.cs:
	* HttpGetClientProtocol.cs:
	* HttpMethodAttribute.cs:
	* HttpPostClientProtocol.cs:
	* HttpSimpleClientProtocol.cs:
	* HttpWebClientProtocol.cs:
	* MatchAttribute.cs:
	* MimeFormatter.cs:
	* MimeParameterReader.cs:
	* MimeParameterWriter.cs:
	* MimeReturnReader.cs:
	* NopReturnReader.cs:
	* PatternMatcher.cs:
	* SoapClientMessage.cs:
	* SoapDocumentMethodAttribute.cs:
	* SoapDocumentServiceAttribute.cs:
	* SoapException.cs:
	* SoapExtensionAttribute.cs:
	* SoapExtension.cs:
	* SoapHeaderAttribute.cs:
	* SoapHeaderCollection.cs:
	* SoapHeader.cs:
	* SoapHeaderDirection.cs:
	* SoapHttpClientProtocol.cs:
	* SoapMessage.cs:
	* SoapMessageStage.cs:
	* SoapParameterStyle.cs:
	* SoapRpcMethodAttribute.cs:
	* SoapRpcServiceAttribute.cs:
	* SoapServerMessage.cs:
	* SoapServiceRoutingStyle.cs:
	* SoapUnknownHeader.cs:
	* TextReturnReader.cs:
	* UrlEncodedParameterWriter.cs:
	* UrlParameterReader.cs:
	* UrlParameterWriter.cs:
	* ValueCollectionParameterReader.cs:
	* WebClientAsyncResult.cs:
	* WebClientProtocol.cs:
	* WebServiceHandlerFactory.cs:
	* XmlReturnReader.cs:
		Added new stubbs and some implementation
	* LogicalMethodTypes.cs:
		Added [Serializable] attribute which was missing.

svn path=/trunk/mcs/; revision=5982
2002-07-21 03:47:36 +00:00