Пример #1
0
        public static void ReadSoapMessage(XmlTextReader xmlReader, SoapMethodStubInfo method, SoapHeaderDirection dir, bool soap12, out object body, out SoapHeaderCollection headers)
        {
            XmlSerializer bodySerializer   = method.GetBodySerializer(dir, false);           // no need to worry about soap12 arg since no call for Fault anyways here.
            XmlSerializer headerSerializer = method.GetHeaderSerializer(dir);

            ReadSoapMessage(xmlReader, bodySerializer, headerSerializer, soap12, out body, out headers);
        }
Пример #2
0
        public static void WriteSoapMessage(XmlTextWriter xtw, SoapMethodStubInfo method, SoapHeaderDirection dir, object bodyContent, SoapHeaderCollection headers, bool soap12)
        {
            SoapBindingUse methodUse        = dir == SoapHeaderDirection.Fault ? SoapBindingUse.Literal : method.Use;
            XmlSerializer  bodySerializer   = method.GetBodySerializer(dir, soap12);
            XmlSerializer  headerSerializer = method.GetHeaderSerializer(dir);

            object[] headerArray = method.GetHeaderValueArray(dir, headers);
            WriteSoapMessage(xtw, methodUse, bodySerializer, headerSerializer, bodyContent, headerArray, soap12);
        }
Пример #3
0
		public static void ReadSoapMessage (XmlTextReader xmlReader, SoapMethodStubInfo method, SoapHeaderDirection dir, bool soap12, out object body, out SoapHeaderCollection headers)
		{
			XmlSerializer bodySerializer = method.GetBodySerializer (dir, false);// no need to worry about soap12 arg since no call for Fault anyways here.
			XmlSerializer headerSerializer = method.GetHeaderSerializer (dir);
			ReadSoapMessage (xmlReader, bodySerializer, headerSerializer, soap12, out body, out headers);
		}
Пример #4
0
		public static void WriteSoapMessage (XmlTextWriter xtw, SoapMethodStubInfo method, SoapHeaderDirection dir, object bodyContent, SoapHeaderCollection headers, bool soap12)
		{
			SoapBindingUse methodUse = dir == SoapHeaderDirection.Fault ? SoapBindingUse.Literal : method.Use;
			XmlSerializer bodySerializer = method.GetBodySerializer (dir, soap12);
			XmlSerializer headerSerializer = method.GetHeaderSerializer (dir);
			object[] headerArray = method.GetHeaderValueArray (dir, headers);
			WriteSoapMessage (xtw, methodUse, bodySerializer, headerSerializer, bodyContent, headerArray, soap12);
		}