Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / HttpGetProtocolReflector.cs / 1305376 / HttpGetProtocolReflector.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Services.Description {
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.Xml.Schema;
using System.Collections;
using System;
using System.Reflection;
internal class HttpGetProtocolReflector : HttpProtocolReflector {
public override string ProtocolName {
get { return "HttpGet"; }
}
protected override void BeginClass() {
if (IsEmptyBinding)
return;
HttpBinding httpBinding = new HttpBinding();
httpBinding.Verb = "GET";
Binding.Extensions.Add(httpBinding);
HttpAddressBinding httpAddressBinding = new HttpAddressBinding();
httpAddressBinding.Location = ServiceUrl;
Port.Extensions.Add(httpAddressBinding);
}
protected override bool ReflectMethod() {
if (!ReflectUrlParameters()) return false;
if (!ReflectMimeReturn()) return false;
HttpOperationBinding httpOperationBinding = new HttpOperationBinding();
httpOperationBinding.Location = MethodUrl;
OperationBinding.Extensions.Add(httpOperationBinding);
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Services.Description {
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.Xml.Schema;
using System.Collections;
using System;
using System.Reflection;
internal class HttpGetProtocolReflector : HttpProtocolReflector {
public override string ProtocolName {
get { return "HttpGet"; }
}
protected override void BeginClass() {
if (IsEmptyBinding)
return;
HttpBinding httpBinding = new HttpBinding();
httpBinding.Verb = "GET";
Binding.Extensions.Add(httpBinding);
HttpAddressBinding httpAddressBinding = new HttpAddressBinding();
httpAddressBinding.Location = ServiceUrl;
Port.Extensions.Add(httpAddressBinding);
}
protected override bool ReflectMethod() {
if (!ReflectUrlParameters()) return false;
if (!ReflectMimeReturn()) return false;
HttpOperationBinding httpOperationBinding = new HttpOperationBinding();
httpOperationBinding.Location = MethodUrl;
OperationBinding.Extensions.Add(httpOperationBinding);
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ItemList.cs
- RtfToXamlReader.cs
- HtmlLink.cs
- TraceEventCache.cs
- SynchronizationHandlesCodeDomSerializer.cs
- InstancePersistence.cs
- BamlResourceContent.cs
- ClientRuntimeConfig.cs
- CrossSiteScriptingValidation.cs
- LOSFormatter.cs
- PlanCompiler.cs
- Message.cs
- InplaceBitmapMetadataWriter.cs
- EntityObject.cs
- FontCacheUtil.cs
- Inflater.cs
- GeneralTransform3DTo2DTo3D.cs
- SolidColorBrush.cs
- InternalTypeHelper.cs
- XmlSerializerVersionAttribute.cs
- System.Data.OracleClient_BID.cs
- TemplateBindingExtension.cs
- AlternateViewCollection.cs
- OAVariantLib.cs
- CounterSample.cs
- EdmError.cs
- FreezableOperations.cs
- ListViewItem.cs
- InvalidateEvent.cs
- PackageStore.cs
- PropertyChangedEventManager.cs
- DataConnectionHelper.cs
- MetafileEditor.cs
- XmlSortKeyAccumulator.cs
- UIElement3D.cs
- InvokeMethodActivity.cs
- SQLInt32.cs
- FillRuleValidation.cs
- ListControlActionList.cs
- RadioButton.cs
- HttpCacheParams.cs
- WebServiceMethodData.cs
- Model3DGroup.cs
- FlowchartSizeFeature.cs
- ContextStaticAttribute.cs
- CorrelationService.cs
- ChangeTracker.cs
- SiteMapDataSourceDesigner.cs
- MarkupObject.cs
- NamedPipeProcessProtocolHandler.cs
- ExpressionConverter.cs
- VectorCollection.cs
- SqlUtils.cs
- ObjectDataSourceEventArgs.cs
- URLAttribute.cs
- DataPagerFieldCollection.cs
- ChildTable.cs
- complextypematerializer.cs
- StorageModelBuildProvider.cs
- SQLInt32Storage.cs
- control.ime.cs
- ItemContainerPattern.cs
- TypeSystem.cs
- UserInitiatedRoutedEventPermission.cs
- ListViewItemMouseHoverEvent.cs
- ServiceConfigurationTraceRecord.cs
- WCFModelStrings.Designer.cs
- TypeExtension.cs
- UserNameSecurityToken.cs
- ToolStripPanelSelectionBehavior.cs
- ToolStripDropDownItem.cs
- DbMetaDataCollectionNames.cs
- ThreadStateException.cs
- OracleBinary.cs
- FacetDescription.cs
- figurelengthconverter.cs
- DeploymentSectionCache.cs
- EventNotify.cs
- StickyNote.cs
- PrivilegeNotHeldException.cs
- HtmlEmptyTagControlBuilder.cs
- IndexedSelectQueryOperator.cs
- RadioButton.cs
- PrintSchema.cs
- SiteMapNodeItemEventArgs.cs
- RenderOptions.cs
- RequestQueryParser.cs
- TextModifier.cs
- httpapplicationstate.cs
- PersonalizationEntry.cs
- Send.cs
- KeyGestureValueSerializer.cs
- AlternationConverter.cs
- SqlIdentifier.cs
- OracleParameter.cs
- CodeTypeMemberCollection.cs
- EntityContainer.cs
- Trace.cs
- DES.cs
- Point3DCollection.cs