Commit Graph
27 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02: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
Arina Itkes b4c067c0cb TARGET_JVM: Restoring of the flow before 94231 revision for TARGET_JVM compilation.
svn path=/trunk/mcs/; revision=94234
2008-01-29 08:45:50 +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
Igor Zelmanovich 9a005b9c45 added TARGET_J2EE ifdef
svn path=/trunk/mcs/; revision=92961
2008-01-15 17:00:48 +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
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 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
Konstantin Triger 69fb3a75e8 throw on protocol version mismatch
svn path=/trunk/mcs/; revision=73670
2007-03-04 06:52:47 +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
Chris Toshok 8a32087a28 In System.Web.Services.Description:
2006-06-08  Chris Toshok  <[email protected]>

	* ExtensionManager.cs: remove the CONFIGURATION_2_0 from ifdefs.
	NET_2_0 implies this now.

In System.Web.Services.Protocols:
2006-06-08  Chris Toshok  <[email protected]>

	* WebServiceHandlerFactory.cs: remove the CONFIGURATION_2_0 from
	ifdefs. NET_2_0 implies this now.

	* SoapExtension.cs: same.

	* SoapDocumentationHandler.cs: same.

In .:
2006-06-08  Chris Toshok  <[email protected]>

	* Makefile (LIB_MCS_FLAGS): remove the CONFIGURATION_2_0 define.
	NET_2_0 implies this now.


svn path=/trunk/mcs/; revision=61572
2006-06-08 14:48:28 +00:00
Chris Toshok adbcf03bfe 2006-01-04 Chris Toshok <[email protected]>
* WebServiceHandlerFactory.cs: add CONFIGURATION_2_0 stuff.

	* SoapExtension.cs: add CONFIGURATION_2_0 stuff.


svn path=/trunk/mcs/; revision=55079
2006-01-04 21:16:17 +00:00
Kornél Pál e24ffec772 WebServiceHandlerFactory.cs: Throw InvalidOperationException instead of returning DummyHttpHandler when the request format is not supported.
svn path=/trunk/mcs/; revision=45599
2005-06-07 20:10:20 +00:00
Kornél Pál a3c56b0e95 Added support for HttpPostLocalhost and HttpSoap12
svn path=/trunk/mcs/; revision=45483
2005-06-06 12:28:22 +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
Gonzalo Paniagua Javier 28e68025c2 2004-05-11 Gonzalo Paniagua Javier <[email protected]>
* SoapDocumentationHandler.cs: added internal property to get the page
	handler when available.

	* WebServiceHandlerFactory.cs: wrap the documentation handler in a class
	that implements IRequiresSessionState and, if requested,
	IReadOnlySessionState, so that we can use Sesion object in the default
	WSDL help generator.

svn path=/trunk/mcs/; revision=27092
2004-05-11 12:18:20 +00:00
Gonzalo Paniagua Javier 3e0dca1db9 2004-05-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Services.dll.sources: removed HttpGetWebServiceHandler and
	HttpPostWebServiceHandler.

	* System.Web.Services.Protocols/HttpGetWebServiceHandler.cs:
	* System.Web.Services.Protocols/HttpPostWebServiceHandler.cs: removed.

	* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs: changed
	ctor parameters and added EnableSession property.

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

	* System.Web.Services.Protocols/WebServiceHandlerFactory.cs: added a new
	handler that implements IRequiresSessionState used for HttpGet and
	HttpPost.
	(GetHandler): for HttpGet and HttpPost check if the method requires to
	have a Session object and use the new SimpleSyncSessionHandler in that
	case.

	Still missing proper session handler for SOAP requests.

svn path=/trunk/mcs/; revision=26782
2004-05-05 18:51:00 +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
Gonzalo Paniagua Javier d63b874209 2003-10-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Services.Configuration/WebServicesConfigurationSectionHandler.cs: keep the file name of the configuration file around for
	wsdlHelpGenerator.

	* System.Web.Services.Protocols/SoapDocumentationHandler.cs: it does not
	generate the documentation page any more. GetDescription and GetSchemas
	are now internal.

	* System.Web.Services.Protocols/WebServiceHandlerFactory.cs: generate
	the documentation page without doing a Transfer () but instead creating
	a Page instance from the wsdl help file. This file is located from the
	configuration file that contains the <wsdlHelpGenerator> tag.

svn path=/trunk/mcs/; revision=18539
2003-10-03 04:06:25 +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 b0ebcda482 * HttpSoapWebServiceHandler.cs:
* Methods.cs: Added SoapBindingStyle, SoapBindingUse, InputMembersMapping
	  and OutputMembersMapping properties in MethodStubInfo.
	  Use default value defined in TypeStubInfo for RequestNamespace,
	  ResponseNamespace and other properties.
	  Added class BindingInfo to store information about class bindings.
	  In TypeStubInfo added SoapBindingStyle, DefaultBinding, Methods and
	  Bindings properties.
	* SoapRpcMethodAttribute.cs: Use WebServiceAttribute.DefaultNamespace constant
	  instead of hardcoded namespace name.
	* WebServiceHandlerFactory.cs: Create new SoapDocumentationHandler for
	  documentation requests.
	* SoapDocumentationHandler.cs: new handler that generates WS documentation.

svn path=/trunk/mcs/; revision=17692
2003-08-28 12:25:14 +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
Dave Bettin b80347938e o Modified WebService to house a HttpContext member instead of HttpApplication
svn path=/trunk/mcs/; revision=11987
2003-02-26 04:58:37 +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