Commit Graph
22 Commits
Author SHA1 Message Date
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 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 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
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 615bb6af02 2005-06-09 Gonzalo Paniagua Javier <[email protected]>
* WebServiceHelper.cs: don't even try to read the response if its length
	is known to be 0.

	* SoapHttpClientProtocol.cs: for successful responses on methods that
	are not one-way, don't return immediately if the content length is 0 so
	that the check for Content-Type takes place.


svn path=/trunk/mcs/; revision=45723
2005-06-09 23:23:28 +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 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
Lluis Sanchez dbd77e59a0 * WebServiceHelper.cs: In GetContentEncoding, chop off the single & double
quotes around the encoding name. Patch by George Kodinov. This fixes
	  bug #55806.

svn path=/trunk/mcs/; revision=24577
2004-03-25 09:46:07 +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 f36c0b6fb2 * WebServiceHelper.cs: When reading a soap request, skip empty headers.
This fixes bug #51846.

svn path=/trunk/mcs/; revision=22998
2004-02-11 23:28:22 +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
Lluis Sanchez 2bc1f2ed46 * Methods.cs: Added correct namespace for serialization in Fault class.
* SoapHttpClientProtocol.cs: Changed the method used to check if the
	  result is a fault. Now the check is done inside
	  WebServiceHelper.ReadSoapMessage. Removed some debug writelines.
	* WebServiceHelper.cs: If the message body is a fault, use the fault
	  serializer.

svn path=/trunk/mcs/; revision=20539
2003-11-27 16:47:17 +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
Gonzalo Paniagua Javier 015cf670d2 2003-11-20 Gonzalo Paniagua Javier <[email protected]>
* SoapHttpClientProtocol.cs:
	* WebServiceHelper.cs: throw a WebException instead of an Exception.
	Fixes bug #51193.

svn path=/trunk/mcs/; revision=20258
2003-11-20 05:19:25 +00:00
Miguel de Icaza 2a1d228da8 2003-10-26 Miguel de Icaza <[email protected]>
* WebServiceHelper.cs: Compute content type and encoding
	correctly in the absence of extra options.

svn path=/trunk/mcs/; revision=19419
2003-10-27 02:42:14 +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 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 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