如何在iOS中使用Web App Service从Azure SQL数据库中获取表数据?

时间:2019-09-16 10:32:29

标签: ios asp.net sql-server swift azure

我按照this文档将iOS(Swift)应用程序连接到Azure,这是将数据库连接到我的应用程序的代码:

<dependency>
    <groupId>com.google.firebase</groupId>
    <artifactId>firebase-admin</artifactId>
    <version>6.9.0</version>
</dependency>
<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>24.1.1-jre</version>
</dependency>
<dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-firestore</artifactId>
    <version>1.20.0</version>
</dependency>

当我运行该应用程序时,azure给出以下响应:

  

UserInfo = {com.Microsoft.MicrosoftAzureMobile.ErrorResponseKey = {URL:   https://.webappname.azurewebsites.net/tables/User} {状态代码:404,标题{   “ Content-Length” =(0);日期=(“星期一,2019年9月16日06:01:42 GMT”);   服务器=(红est); “ Set-Cookie” =(   “ ARRAffinity = 9d50440330c6da9f063baa60c470baaccbb1dd7c2e349666c42c6bd54274ea59; Path = /; HttpOnly; Domain = .azurewebsites.net”   ); “ X-Powered-By” =(“ ASP.NET”); }},NSLocalizedDescription =,   com.Microsoft.MicrosoftAzureMobile.ErrorRequestKey = {URL:   https://.webappname.azurewebsites.net/tables/User})

任何帮助将不胜感激。

0 个答案:

没有答案