* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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
* 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
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
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
* 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
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
* 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
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
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
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
Fix for this case.
* SoapHttpClientProtocol.cs: Implemented support for asynchronous calls
(BeginInvoke and EndInvoke).
svn path=/trunk/mcs/; revision=16097
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
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