首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我如何使用servicestack产品,这样我就可以将我的Flutter或Dart连接到soap服务?

我如何使用servicestack产品,这样我就可以将我的Flutter或Dart连接到soap服务?
EN

Stack Overflow用户
提问于 2019-02-27 16:37:10
回答 1查看 414关注 0票数 1

我正在尝试让我的应用程序安全地连接到soap/wsdl服务。

我的问题是如何使用servicestack产品,这样我就可以连接我的颤振移动应用程序或Dart控制台应用程序来使用soap服务?

谢谢

更新:

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://nick.mobile.com/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://nick.mobile.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://nick.mobile.com/">
      <s:element name="C_getFilteredCustInfo_WithAssignNo">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="AssignNo" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="clSecurityCheckBase" type="tns:cpSecurityCheckBase_WithAssignNo" />
            <s:element minOccurs="0" maxOccurs="1" name="language" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="cpSecurityCheckBase_WithAssignNo">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="AssignNo" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="OrgData" />
          <s:element minOccurs="0" maxOccurs="1" name="HashData" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="IP" type="s:string" />
        </s:sequence>
      </s:complexType>
...
...
...
EN

回答 1

Stack Overflow用户

发布于 2019-02-27 17:19:54

ServiceStack的飞镖和颤振支撑依赖于生成类型化DTO的使用JsonWebClient,例如:

代码语言:javascript
复制
import 'package:servicestack/client.dart';

import 'techstacks.dtos.dart';

var client = new JsonServiceClient("https://www.techstacks.io");

main() async {
  var response = await client.get(new GetTechnology(slug: "flutter"));
  print("${response.technology.name}: ${response.technology.vendorUrl}");
}

它只适用于ServiceStack的JSON端点,因此您无法使用它直接调用Services。

相反,作为ServiceStack支持SOAP服务服务的附加端点,您可以从JSON和SOAP1.1/1.2客户机获得相同的服务。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54910286

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档