8,705
社区成员




public XXXClient() {
}
public XXXClient(string endpointConfigurationName) :
base(endpointConfigurationName) {
}
public XXXClient(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public XXXClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public XXXClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress) {
}
<endpoint address="http://xxxxxx/XXX.svc" binding="customBinding"
bindingConfiguration="endpointConfigurationName" contract="XXXXX"
name="CustomBinding_XXX" />
Dim binding As BasicHttpBinding = New BasicHttpBinding()
Dim address As New EndpointAddress(New Uri(Application.Current.Host.Source, "你的SVC地址"))
Dim client As New DataServiceClient(binding, address)
AddHandler client.GetValuesCompleted, AddressOf client_GetValuesCompleted
client.GetValuesAsync(ID)
...