如何解决通过SQL Server在SOAP服务上使用HTTP vs HTTPS的问题
我在Web服务器(2012 R2)上托管了SOAP服务。该SOAP服务被SQL服务器调用,并且一切正常。
我将此SOAP服务移至了其他Web服务器(2016)。现在,当我使用“ https”时,相同的SQL服务器调用失败。虽然,当我使用“ http”时一切都正常
当我在本地计算机上使用https使用ARC客户端发送Soap电话时,得到了预期的结果。
我的SOAP服务是.NET Framework 4.6.2(服务器上的TLS级别支持1.1和1.2)
其他信息: SOAP服务是父应用程序下的虚拟站点。
所以, https://sitename/servicename/mobileservice.asmx-失败 http://sitename/servicename/mobileservice.asmx-通行证
请让我知道是否有人遇到类似问题并且可以找出原因。 以下是我得到的错误
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:scroll_to_index/scroll_to_index.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Scroll To Index Demo',theme: ThemeData(
primarySwatch: Colors.blue,),home: MyHomePage(title: 'Scroll To Index Demo'),);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key,this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
static const maxCount = 100;
final random = math.Random();
final scrollDirection = Axis.vertical;
AutoScrollController controller;
List<List<int>> randomList;
@override
void initState() {
super.initState();
controller = AutoScrollController(
viewportBoundaryGetter: () => Rect.fromLTRB(0,MediaQuery.of(context).padding.bottom),axis: scrollDirection
);
randomList = List.generate(maxCount,(index) => <int>[index,(1000 * random.nextDouble()).toInt()]);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),body: ListView(
scrollDirection: scrollDirection,controller: controller,children: randomList.map<Widget>((data) {
return Padding(
padding: EdgeInsets.all(8),child: _getRow(data[0],math.max(data[1].toDouble(),50.0)),);
}).toList(),floatingActionButton: FloatingActionButton(
onPressed: _scrollToIndex,tooltip: 'Increment',child: Text(counter.toString()),);
}
int counter = -1;
Future _scrollToIndex() async {
setState(() {
counter++;
if (counter >= maxCount)
counter = 0;
});
await controller.scrollToIndex(counter,preferPosition: AutoScrollPosition.begin);
controller.highlight(counter);
}
Widget _getRow(int index,double height) {
return _wrapScrollTag(
index: index,child: Container(
padding: EdgeInsets.all(8),alignment: Alignment.topCenter,height: height,decoration: BoxDecoration(
border: Border.all(
color: Colors.lightBlue,width: 4
),borderRadius: BorderRadius.circular(12)
),child: Text('index: $index,height: $height'),)
);
}
Widget _wrapScrollTag({int index,Widget child})
=> AutoScrollTag(
key: ValueKey(index),index: index,child: child,highlightColor: Colors.black.withOpacity(0.1),);
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。