Commit Graph
173 Commits
Author SHA1 Message Date
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
Atsushi Eno a0f97b9372 2008-01-08 Arina Itkes <[email protected]>
* Methods.cs: Fix for compatibility with .NET:
	  In .NET if SOAPAction is set to empty string it is regarded like
	  clearly specified with empty string.

2008-01-08  Atsushi Enomoto  <[email protected]>

	* ServiceDescriptionReflectorTest.cs : added test for empty SOAP
	  action.


svn path=/trunk/mcs/; revision=92427
2008-01-08 05:41:02 +00:00
Vladimir Krasnov 3a71efc83c * ProtocolReflector.cs: fixed ImportBinding method, ports with the same name declaration when non-default binding used, #345449
* TypeStubManager.cs: fixed TypeStubInfo ctor, default binding name is wrong, when declared in WebServiceBindingAttribute, but not used. fixes #345448 

svn path=/trunk/mcs/; revision=91075
2007-12-11 08:57:00 +00:00
Atsushi Eno 923d995925 2007-11-12 Atsushi Enomoto <[email protected]>
* SoapHttpClientProtocol.cs : compare content-type in case-
	  insensitive manner. Fixed bug #325277.


svn path=/trunk/mcs/; revision=89444
2007-11-12 05:03:44 +00:00
Atsushi Eno 90c51b84d0 2007-11-09 Atsushi Enomoto <[email protected]>
* SoapDocumentationHandler.cs : handle 'schema' HTTP parameter like
	  "...blah.asmx?schema=MySchemaID". (Such URL does not work yet.)


svn path=/trunk/mcs/; revision=89317
2007-11-09 14:45:31 +00:00
Atsushi Eno 19c82f604a 2007-10-29 Atsushi Enomoto <[email protected]>
* SoapException.cs : serialization constructor didn't call base.
	  Fixed bug #337421.


svn path=/trunk/mcs/; revision=88354
2007-10-29 08:27:47 +00:00
Atsushi Eno 1e9a50dbb8 2007-10-10 Atsushi Enomoto <[email protected]>
* Methods.cs : (SoapMethodStubInfo) reverted r74747 which caused
	  bug #332150.

	* ServiceDescriptionReflectorTest.cs : added test for bug #332150.


svn path=/trunk/mcs/; revision=87245
2007-10-10 08:24:53 +00:00
Atsushi Eno 9192e5f7ef 2007-10-05 Atsushi Enomoto <[email protected]>
* HttpWebClientProtocol.cs : implemented EnableDecompression.

	* WebService.cs : [ComVisible].

	* DiscoveryClientProtocol.cs : [ComVisible]

	* ServiceDescriptionCollection.cs : added missing members.


svn path=/trunk/mcs/; revision=86951
2007-10-05 06:52:27 +00:00
Atsushi Eno 7a4ff9289b 2007-10-04 Atsushi Enomoto <[email protected]>
* TypeStubManager.cs: reverted r82932 again. This #if ONLY_1_1 causes
	  NUnit test regressions. It should not be reverted again until
	  appropriate NUnit test case is provided and proper fix is provided
	  that does not cause regressions.


svn path=/trunk/mcs/; revision=86851
2007-10-04 08:42:18 +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
Robert Jordan f7bea0fc2a 2007-08-21 Robert Jordan <[email protected]>
* ValueCollectionParameterReader.cs (Read):
	Add support for array parameters. Fixes #82519.


svn path=/trunk/mcs/; revision=84680
2007-08-23 06:22:53 +00:00
Vladimir Krasnov 6e593b9568 * TypeStubManager.cs: fixed BindingInfo.ctor, reverted to ONLY_1_1
svn path=/trunk/mcs/; revision=82932
2007-07-29 13:10:13 +00:00
Gert Driesen 1a4b80bfb4 * LogicalMethodInfoTest.cs: Fixed namespace.
* WebClientProtocolTest.cs: Fixed namespace.
* SoapHttpClientProtocolTest.cs: Fixed namespace. Added test for
bug #81886.
* SoapServerTypeTest.cs: Fixed namespace.
* SocketResponder.cs: Sync with copy in System assembly.
* Fault.cs: In SOAP 1.1, the child elements of Fault may be unqualified.
Fixed FaultReader's ReadObject_Fault to only process either unqualified
elements or elements in the SOAP 1.1 namespace, hereby fixing part of 
bug #81886 where an unqualified detail element was not processed. In 
FaultWriter, write unqualified detail element. Fixes second part of 
bug #81886.

svn path=/trunk/mcs/; revision=79855
2007-06-16 15:24:58 +00:00
Atsushi Eno be478d56c0 2007-05-11 Atsushi Enomoto <[email protected]>
* SoapServerType.cs : avoid IndexOutOfRange on reflecting 
	  SoapRpcAttribute.

	* SoapServerTypeTest.cs : make sure that SoapRpcServiceAttribute works.


svn path=/trunk/mcs/; revision=77194
2007-05-11 05:36:50 +00:00
Atsushi Eno a175ad4f30 2007-05-08 Atsushi Enomoto <[email protected]>
* SoapServerMethod.cs : Some refactoring. simply use GetMethod() in
	  type stub. WsiClaims could be retrieved from type stub.
	* SoapServerType.cs : store server methods and implement GetMethod().

	* SoapServerTypeTest.cs : added some more tests related to server
	  methods.


svn path=/trunk/mcs/; revision=76986
2007-05-09 07:21:47 +00:00
Atsushi Eno bf63451764 2007-05-08 Atsushi Enomoto <[email protected]>
* SoapServerType.cs
	  ServerType.cs
	  Methods.cs : SoapBindingUse and SoapServiceRoutingStyle could just
	  be stored in LogicalTypeInfo (as they are attributed in a web
	  service class), and removed duplicates of them in SoapTypeStubInfo.
	  Invalid attributes on a service class are checked in SoapServerType
	  .ctor().

	* SoapServerTypeTest.cs : added some .ctor() tests to verify
	  validity of attributes on the service class.


svn path=/trunk/mcs/; revision=76969
2007-05-08 19:58:38 +00:00
Atsushi Eno 56befb8af5 2007-05-08 Atsushi Enomoto <[email protected]>
* XmlReturnReader.cs
	  XmlReturnWriter.cs
	  TypeStubManager.cs
	  ServerType.cs
	  SoapServerType.cs
	  Methods.cs
	  HttpSimpleTypeStubInfo.cs
	  HttpGetTypeStubInfo.cs
	  HttpPostTypeStubInfo.cs :
	  I once replaced LogicalTypeInfo with ServerType. It was kind of
	  wrong, since ServerType could be instantiated at any time, while
	  LogicalTypeInfo used to be a singleton per static context.
	  Here I re-introduced LogicalTypeInfo and replaced most of
	  ServerType use with this.

	* HttpSimpleProtocolReflector.cs : ServerType -> LogicalTypeInfo.


svn path=/trunk/mcs/; revision=76968
2007-05-08 19:41:38 +00:00
Atsushi Eno 4f0eb6beb2 2007-05-08 Atsushi Enomoto <[email protected]>
* LogicalMethodInfo.cs : MethodInfo is null when it is async.
	  Added internal ActualMethodInfo to represent "sync or begin" method
	  (i.e. former MethodInfo).
	* HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs :
	  MethodInfo -> ActualMethodInfo.

	* LogicalMethodInfoTest.cs : new test (cosmetic for now).

	* System.Web.Services.dll.sources :
	  removed SoapClientMethod.cs (not in use).
	* System.Web.Services_test.dll.sources :
	  added LogicalMethodInfoTest.cs.


svn path=/trunk/mcs/; revision=76888
2007-05-08 06:24: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 d0448c2338 2007-04-23 Atsushi Enomoto <[email protected]>
* TypeStubManager.cs : fix binding enumeration on finding by name.
	  fix wrong ONLY_1_1.
	* ServerType.cs : ONLY_1_1 is evil enough to make sources confusing.
	  Use it only when it is really needed.

	* SoapServerTypeTest.cs : added new test (one is not working yet).
	  It will be very useful when we test service type generation.

	* System.Web.Services_test.dll.sources: added SoapServerType.cs.


svn path=/trunk/mcs/; revision=76113
2007-04-23 13:10:21 +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 93ab264618 add support for the 2.0 feature, which enables declaring WebService/WebMethods attributes in interface
svn path=/trunk/mcs/; revision=74747
2007-03-21 16:18:58 +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
Vladimir Krasnov e92ee2e521 * TypeStubManager.cs: fixed BindingInfo.ctor, it does not takes Name property from WebServiceBindingAttribute in .net 2.0
svn path=/trunk/mcs/; revision=74057
2007-03-11 09:36:50 +00:00
Konstantin Triger 69fb3a75e8 throw on protocol version mismatch
svn path=/trunk/mcs/; revision=73670
2007-03-04 06:52:47 +00:00
Konstantin Triger 4cda161b68 * ProtocolReflector.cs: throw if not conformant, but declared to be.
* TypeStubManager.cs, Methods.cs: refactor BindingInfo contruction to contain
	either declared Bindings or a default one.

svn path=/trunk/mcs/; revision=72089
2007-02-01 12:52:47 +00:00
Konstantin Triger 88a2aec14f Provide better error info
svn path=/trunk/mcs/; revision=72088
2007-02-01 12:44:47 +00:00
Miguel de Icaza 9a834a8eb1 2007-01-19 Atsushi Enomoto <[email protected]>
* System.Web.Services_test.dll.sources:
	  Added ServiceDescriptionImporterTest.cs.
	* Makefile : added test2.wsdl to EXTRA_DISTFILES.

2007-01-15  Gert Driesen  <[email protected]>

	* System.Web.Services_test.dll.sources: added SocketResponder.cs and
	SoapHttpClientProtocolTest.cs.

svn path=/trunk/mcs/; revision=71495
2007-01-22 23:56:37 +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 51c06f15ad 2006-12-21 Atsushi Enomoto <[email protected]>
* SoapHttpClientProtocol.cs : SOAP 1.2 client should allow text/xml
	  content type. Now bug #79985 is fixed here.


svn path=/branches/atsushi/mcs/; revision=69882
2006-12-21 19:05:09 +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 dcd309ea27 2006-12-19 Atsushi Enomoto <[email protected]>
* SoapClientMessage.cs : oops, SoapVersion is only 2.0.


svn path=/branches/atsushi/mcs/; revision=69711
2006-12-19 05:57:52 +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 918725a89a 2006-12-18 Atsushi Enomoto <[email protected]>
* TypeStubManager.cs, Methods.cs, SoapServerMethod.cs :
	  added WsiClaims property to TypeStubInfo, to implement
	  SoapServerMethod.WsiClaims.


svn path=/branches/atsushi/mcs/; revision=69648
2006-12-18 08:46:42 +00:00
Atsushi Eno faec2789db 2006-12-15 Atsushi Enomoto <[email protected]>
* SoapExtensionReflector.cs, SoapProtocolReflector.cs :
	  Now SOAP bindings are reflected through extension reflectors.
	  Added implementations for SOAP 1.1 and SOAP 1.2 (2.0 only).
	  The common SoapBindingExtensionReflector implements reflector
	  methods which used to be in SoapProtocolReflector. Also
	  subclassed SoapProtocolReflector to switch SOAP 1.1 and 1.2.
	* ServiceDescriptionReflector.cs : under 2.0, use
	  Soap12ProtocolReflector and export soap12 bindings as well.
	* ProtocolImporter.cs : under 2.0 profile, handle SOAP 1.2 encoding
	  namespace (http://www.w3.org/2003/05/soap-encoding) as well.
	* ProtocolReflector.cs : call ReflectDescription(). Added FIXME.

	* ServerType.cs : added SOAP 1.2 protocol as a different one from
	  SOAP 1.1.
	* Methods.cs : added Soap12TypeStubInfo.


svn path=/branches/atsushi/mcs/; revision=69528
2006-12-15 08:16:42 +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 655dd67c31 2006-12-04 Atsushi Enomoto <[email protected]>
* WebService.cs : implemented SoapVersion as documented in MSDN.

	* SoapProtocolImporter.cs : added trivial IsSoapEncodingPresent().

	* AnyReturnReader.cs : not sure why, but the build must have been
	  broken, and now it is exposed.
	* SoapHttpClientProtocol.cs : added missing members, left as MonoTODO.


svn path=/branches/atsushi/mcs/; revision=68936
2006-12-04 10:20:11 +00:00
Atsushi Eno 1c16e8f710 2006-12-01 Atsushi Enomoto <[email protected]>
* AnyReturnReader.cs : implemented, it does almost nothing.


svn path=/branches/atsushi/mcs/; revision=68825
2006-12-01 11:02:01 +00:00
Atsushi Eno 790f24d1a2 2006-12-01 Atsushi Enomoto <[email protected]>
* SoapServerMethod.cs : implemented based on SoapMethodStubInfo.
	* ServerType.cs : added UseEncoded, used in SoapServerType.
	* SoapServerType.cs : ServiceDefaultIsEncoded is base.UseEncoded,
	  and ServiceNamespace is base.WebServiceNamespace.
	* SoapHeaderMapping.cs : origin info.


svn path=/branches/atsushi/mcs/; revision=68818
2006-12-01 09:19:18 +00:00
Atsushi Eno 77c04f9df6 2006-12-01 Atsushi Enomoto <[email protected]>
* SoapDocumentationHandler.cs, SoapExtension.cs :
	  WebServicesSection.Instance -> .Current.


svn path=/branches/atsushi/mcs/; revision=68816
2006-12-01 09:17:08 +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 6a6b12bac7 2006-11-30 Atsushi Enomoto <[email protected]>
* ServerType.cs : Now LogicalTypeInfo became this type to implement
	  this class (and SoapTypeStubInfo to SoapServerType later).
	* TypeStubManager.cs : so, split LogicalTypeInfo from here.
	* XmlReturnReader.cs, XmlReturnWriter.cs, Methods.cs,
	  HttpSimpleTypeStubInfo.cs, HttpGetTypeStubInfo.cs,
	  HttpPostTypeStubInfo.cs : LogicalTypeInfo -> ServerType.

	* HttpSimpleProtocolReflector.cs : LogicalTypeInfo -> ServerType.


svn path=/branches/atsushi/mcs/; revision=68734
2006-11-30 07:06:59 +00:00
Atsushi Eno 3e61bece78 2006-11-30 Atsushi Enomoto <[email protected]>
* SoapHttpClientProtocol.cs : looks like (only) the last Text is used
	  instead of the first one in .net.


svn path=/branches/atsushi/mcs/; revision=68733
2006-11-30 06:59:32 +00:00
Atsushi Eno f165e59962 2006-11-28 Atsushi Enomoto <[email protected]>
* Fault12.cs : they should be all internal.


svn path=/branches/atsushi/mcs/; revision=68576
2006-11-28 12:45:15 +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 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
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