Commit Graph
39 Commits
Author SHA1 Message Date
Jb Evain 41f67f6409 Enable the System.Web.Services build for monodroid 2010-09-08 18:48:30 +02:00
Miguel de Icaza 083859461d Fix for MonoTouch builds
svn path=/trunk/mcs/; revision=144297
2009-10-17 00:14:41 +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
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 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 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 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 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 58dd40cd09 2006-11-28 Atsushi Enomoto <[email protected]>
* System.Web.Services.dll.sources : added SOAP 1.2 Fault serializer
	  files (fault-12.genxs, Fault12.cs and Fault12Serializer.cs).

	* Fault12.cs, fault-12.genxs, Fault12Serializer.cs :
	  SOAP 1.2 Fault serializer and its generation sources.
	* SoapException.cs :
	  Fixed .ctor() whose initialization was incorrect.
	* WebServiceHelper.cs, Methods.cs, HttpSoapWebServiceHandler.cs,
	  SoapHttpClientProtocol.cs :
	  handle SOAP 1.2 Fault.


svn path=/branches/atsushi/mcs/; revision=68575
2006-11-28 12:38:22 +00:00
Atsushi Eno f474d5fedd 2006-11-22 Atsushi Enomoto <[email protected]>
* SoapHeader.cs WebServiceHelper.cs SoapClientMessage.cs
	  HttpSoapWebServiceHandler.cs SoapHttpClientProtocol.cs:
	  SOAP 1.2 Envelope support has started. Though I will have to
	  change its internals significantly, so it is in my branch.


svn path=/branches/atsushi/mcs/; revision=68325
2006-11-22 07:41:11 +00:00
Atsushi Eno 158f738ef2 evil mixed line endings.
svn path=/branches/atsushi/mcs/; revision=68324
2006-11-22 07:38:16 +00:00
Atsushi Eno 7e83659d1e 2006-11-19 Atsushi Enomoto <[email protected]>
* HttpSoapWebServiceHandler.cs: on deserializing the request, do not 
	  close the input stream. Fixed bug #79954. Fix by Juan C. Olivares.


svn path=/trunk/mcs/; revision=68167
2006-11-20 01:46:43 +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
Vladimir Krasnov 03f437729c * HttpSoapWebServiceHandler.cs, SoapServerMessage.cs: fixed SoapMessage.ContentEncoding that used in ProcessMessage method in SoapExtension
svn path=/trunk/mcs/; revision=58001
2006-03-15 11:48:55 +00:00
Konstantin Triger a9a7a2df35 Disposing the WebService instance after a WebMethod invocation
svn path=/trunk/mcs/; revision=46767
2005-06-30 13:29:37 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Lluis Sanchez a36b5dd3f7 2005-06-14 Lluis Sanchez Gual <[email protected]>
* SoapHttpClientProtocol.cs: 
	* WebServiceHelper.cs:
	* Methods.cs: Changed the way headers are serialized. Instead of having
	a serializer per header type, we now have a serializer per method, and
	headers are serialized using a member mapping.
	
	* HttpSoapWebServiceHandler.cs: Handle one way methods properly.
	Fixes bug #70699.


svn path=/trunk/mcs/; revision=45941
2005-06-14 09:31:49 +00:00
Gonzalo Paniagua Javier 6cad24df33 2005-06-10 Gonzalo Paniagua Javier <[email protected]>
* HttpSoapWebServiceHandler.cs: use the HttpResponse.BufferOutput
	instead of our own MemoryStream when buffering is enabled. Flush the
	response instead of closing it, as that allows for Content-Length to
	be sent from HttpResponse and helps reusing connections.


svn path=/trunk/mcs/; revision=45744
2005-06-10 10:46:12 +00:00
Lluis Sanchez 532df5ab65 * HttpSoapWebServiceHandler.cs, WebServiceHandler.cs: Do not assign the
context to the service. It already gets it from HttpContext.Current.

svn path=/trunk/mcs/; revision=32815
2004-08-25 08:53:43 +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 d939457bb9 2004-06-01 Gert Driesen <[email protected]>
* HttpSoapWebServiceHandler.cs: Removed unused variables.
	* SoapHeaderAttribute.cs: Added Obsolete attribute.

svn path=/trunk/mcs/; revision=28616
2004-06-01 08:58:32 +00:00
Lluis Sanchez de7bdac611 * HttpSimpleWebServiceHandler.cs: Added GetRequestMethod(), which is used
by the handler factory to check if the target method needs session or not.
	  Also factorized error handling in WriteError().
	* HttpSoapWebServiceHandler.cs: Added GetRequestMethod(), for the same
	  reason. Assign the context to the WebService just before invoking the
	  method.
	* SoapHttpClientProtocol.cs: Use helper method to create the xml writer.
	* WebServiceHandler.cs: Added virtual GetRequestMethod().
	* WebServiceHandlerFactory.cs: Use an http handler wrapper when the target
	  method requires session support.
	* WebServiceHelper.cs: Added some helper methods.

svn path=/trunk/mcs/; revision=27168
2004-05-12 14:25:07 +00:00
Gonzalo Paniagua Javier 247fb79d80 2004-05-10 Gonzalo Paniagua Javier <[email protected]>
* HttpSoapWebServiceHandler.cs: finish the request after serializing
	the fault message.

svn path=/trunk/mcs/; revision=27018
2004-05-10 06:00:42 +00:00
Gonzalo Paniagua Javier 1056209871 2004-05-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Services/WebService.cs: added a HttpSessionState field
	and a setter method. Session now returns null if EnableSession is not
	set for the method invoked.

	* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs:
	* System.Web.Services.Protocols/HttpSoapWebServiceHandler.cs:  use
	the session if the method has EnableSession set.

	* System.Web.Services.Protocols/LogicalMethodInfo.cs: added
	EnableSession property.

	* System.Web.Services.Protocols/WebServiceHandler.cs: set the Session
	object of the WebService.

	Fixes bug #57905 (needs the latest DefaultWsdlHelpGenerator.aspx).

svn path=/trunk/mcs/; revision=26722
2004-05-05 02:25:10 +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 0bf8cc59e9 * Fault.cs: Moved Fault class from Methods.cd to this file. It also includes
a generated serializer.
	* HttpSoapWebServiceHandler.cs, WebServiceHelper.cs: Use the new static Fault serializer.
	* Methods.cs: Include types declared with XmlInclude and SoapInclude to the
	  reflection importer. Moved Fault and its serializer to Fault.cs
	* SoapHttpClientProtocol.cs: Removed unused method.

svn path=/trunk/mcs/; revision=23542
2004-02-27 17:32:58 +00:00
Lluis Sanchez ceb8ba178e * HttpSoapWebServiceHandler.cs, SoapHttpClientProtocol.cs: Do not use
indented format for requests and responses. SOAPAction header value
	  must be quoted (fix by Yaacov Akiba Slama).

svn path=/trunk/mcs/; revision=22345
2004-01-21 17:16:27 +00:00
Gonzalo Paniagua Javier dc40f53dae 2004-01-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Services/WebService.cs: added SetContext ().

	* System.Web.Services.Protocols/HttpSoapWebServiceHandler.cs:
	* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs: set
	base.Context property.

	* System.Web.Services.Protocols/WebServiceHandler.cs: added set_Context
	and set the context for the WebService when creating the instance.

	Fixes bug #52615.

svn path=/trunk/mcs/; revision=21894
2004-01-10 05:36:25 +00:00
Lluis Sanchez 3c2d1485fb * HttpSoapWebServiceHandler.cs: Added check for valid SOAPAction header.
Fixed bug when routing style is RequestElement.
	  Removed GetMethodFromAction. This is done now in the type stub.
	  Other minor fixes.
	* Methods.cs, WebServiceHelper.cs: Faults are always serialized using
	  literal format. Removed unneded code.

svn path=/trunk/mcs/; revision=21197
2003-12-15 20:00:15 +00:00
Gonzalo Paniagua Javier a713da6c38 2003-11-20 Gonzalo Paniagua Javier <[email protected]>
* HttpSoapWebServiceHandler.cs: WebException is ok here for wrong
	content encoding...
	* SoapHttpClientProtocol.cs: ... but here, we should throw an
	InvalidOperationException including the full response.

	* WebServiceHelper.cs:
	(GetContentEncoding): now fills an output variable with the name of the
	content encoding used.
	(InvalidOperation): new method to build the message for
	InvalidOperationException.

svn path=/trunk/mcs/; revision=20261
2003-11-20 06:11:16 +00:00
Lluis Sanchez 875d805d53 * HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs, HttpSimpleTypeStubInfo.cs,
HttpSoapWebServiceHandler.cs, Methods.cs, SoapHttpClientProtocol.cs,
	  TypeStubManager.cs
	  Added class LogicalTypeInfo, which contains info common to all protocols
	  through which a web service can be accessed. Also, modified the way
	  Serializers are created. Instead of creating one by one, they are now
	  created all at once. This will make serialization creation more efficient
	  when the serializer code generator is in place.
	* SoapRpcMethodAttribute.cs: Set the correct default values for the
	  properties.
	* WebServiceHelper.cs: Removed unused method GetServiceNamespace().
	* XmlReturnReader.cs, XmlReturnWriter.cs: Get the namespace for the return
	  type from LogicalTypeInfo.

svn path=/trunk/mcs/; revision=19013
2003-10-14 00:50:40 +00:00
Lluis Sanchez 5d0e259a4e * SoapDocumentationHandler.cs: Moved here the code from
WebServiceHandlerFactory that generates the documentation page.
	* WebServiceHandlerFactory.cs: Moved the code that generates the doc page
	  to SoapDocumentationHandler.cs.
	* HttpGetClientProtocol.cs, HttpGetWebServiceHandler.cs,
	  HttpPostClientProtocol.cs, HttpPostWebServiceHandler.cs,
	  HttpSimpleWebServiceHandler.cs, HttpSoapWebServiceHandler.cs,
	  SoapHttpClientProtocol.cs: Changed parameters of GetTypeStub call.
	* HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs: Added ProtocolName
	  property. Added check for valid parameters.
	* HttpSimpleTypeStubInfo.cs: Define return MimeFormatter in constructor.
	* Methods.cs: BindingInfo and related properties moved to base TypeStubInfo.
	  Added properties for XmlImporter and SoapImporter.
	* TypeStubManager.cs: Added BindingInfo and related properties.
	  Changed GetTypeStub method. Now it takes the name of the protocol for
	  which to get the type stub info.
	* ValueCollectionParameterReader.cs: IsSupported should only return true
	  for input primitive parameters or array of primitives.

svn path=/trunk/mcs/; revision=18575
2003-10-04 00:38:45 +00:00
Lluis Sanchez c8a7cd4755 * HtmlFormParameterReader.cs, HtmlFormParameterWriter.cs,
HttpGetClientProtocol.cs, HttpPostClientProtocol.cs,
	  HttpSimpleClientProtocol.cs, MimeFormatter.cs, MimeParameterWriter.cs,
	  NopReturnReader.cs, UrlEncodedParameterWriter.cs, UrlParameterReader.cs,
	  UrlParameterWriter.cs, ValueCollectionParameterReader.cs,
	  WebClientAsyncResult.cs, XmlReturnReader.cs, XmlReturnWriter.cs
	  : Implemented.

	* HttpSoapWebServiceHandler.cs, SoapClientMessage.cs, SoapServerMessage.cs,
	  SoapDocumentationHandler.cs, SoapHttpClientProtocol.cs,
	  WebServiceHelper.cs: Changed due to modifications in  TypeStubInfo.

	* Methods.cs: Moved common code to TypeStubInfo.cs.
	* WebServiceHandler.cs: Moved invoke code to HttpSoapWebServiceHandler.cs
	* ServerProtocol.cs, SoapServerProtocol.cs: Fixed formatting.
	* WebServiceHandlerFactory.cs: Added support for HttpGet and HttpPost.

svn path=/trunk/mcs/; revision=18472
2003-10-01 15:22:05 +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 79e2f136e5 * HttpSoapWebServiceHandler.cs: MS puts the soap action in quotation marks??
Fix for this case.
	* SoapHttpClientProtocol.cs: Implemented support for asynchronous calls
	  (BeginInvoke and EndInvoke).

svn path=/trunk/mcs/; revision=16097
2003-07-10 14:25:18 +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