小编mob*_*kie的帖子

Salesforce Outbound Messaging的Contract-First WCF

我正在寻找为Salesforce Outbound Messaging实现监听器应用程序.

穿行使用过时的ASMX Web服务它实现.使用wsdl.exe和/ serverInterface开关生成代码.

这是Salesforce Outbound Messaging的wsdl.

<?xml version="1.0" encoding="UTF-8"?>

<definitions targetNamespace="http://soap.sforce.com/2005/09/outbound"
   xmlns="http://schemas.xmlsoap.org/wsdl/"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:tns="http://soap.sforce.com/2005/09/outbound"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:ent="urn:enterprise.soap.sforce.com"
   xmlns:ens="urn:sobject.enterprise.soap.sforce.com">
<types>

    <schema elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:enterprise.soap.sforce.com">
        <!-- Our simple ID Type -->
        <simpleType name="ID">
            <restriction base="xsd:string">
                <length value="18"/>
                <pattern value='[a-zA-Z0-9]{18}'/>
            </restriction>
        </simpleType>
    </schema>

    <schema elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:sobject.enterprise.soap.sforce.com">
        <import namespace="urn:enterprise.soap.sforce.com" />
        <!-- Base sObject (abstract) -->
        <complexType name="sObject">
            <sequence>
                <element name="fieldsToNull" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
                <element name="Id" type="ent:ID" nillable="true" />
            </sequence>
        </complexType>

        <complexType name="AggregateResult">
            <complexContent>
                <extension base="ens:sObject">
                    <sequence>
                        <any namespace="##targetNamespace" …
Run Code Online (Sandbox Code Playgroud)

c# wcf salesforce

17
推荐指数
1
解决办法
3018
查看次数

Application Publisher

我即将完成我的Android应用程序.我想提供精简版和更完整的付费专业版.不幸的是,谷歌不允许澳大利亚开发商销售应用程序,我在美国或英国也没有任何朋友.

有谁知道会代表我发布我的专业版申请的人/公司?谷歌搜索没有带来任何结果.

谢谢.

android google-play

7
推荐指数
2
解决办法
1773
查看次数

指南针准确性困境

我需要为我的应用程序构建指南针.

从阅读文档看起来有两种合理的方法:

  • Sensor.TYPE_ORIENTATION方法:这是一种简单的方法.这个问题是它不准确.当我将我的阅读与Snaptic Compass进行比较时,它大约是10-15度,这对于我的目的来说是不可接受的.
  • Sensor.TYPE_ACCELEROMETER,Sensor.TYPE_MAGNETIC_FIELD和getRotationMatrix()以及remapCoordinateSystem()和getOrientation()方法:文档说这"通常更准确".问题是无论我向听众注册的延迟如何,即使设备在平坦表面上静止,指南针也会发疯.

任何解决这个问题的建议都将不胜感激.

android digital-compass compass-geolocation

6
推荐指数
1
解决办法
4721
查看次数

Salesforce返回“ unsupported_grant_type”

我们使用Web服务器身份验证流程实现了OAuth 2.0。它在十月/十一月运行良好,但是突然间它停止了工作。每当我们尝试授权另一个客户端时,服务器都会向正文返回(400)错误的请求

{"error":"unsupported_grant_type","error_description":"grant type not supported"}
Run Code Online (Sandbox Code Playgroud)

grant_type设置为authorization_code,绝对有效。

有什么原因会使OAuth突然停止工作?


这是我们实现OAuth的方式:

第一个用户被定向到:https : //login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=blah.id&redirect_uri=https : //domain.com/Web/Salesforce/Callback.aspx&scope=api%20refresh_token

Salesforce会提示用户登录其帐户。

一旦用户通过身份验证,Salesforce就会调用Callback.aspx,Callback.aspx会通过向以下地址发出POST请求来代表客户端刷新令牌:https : //login.salesforce.com/services/oauth2/token(带有有效负载):

grant_type = authorization_code&code = blah.code&client_id = blah.Id&client_secret = 11111111&redirect_uri = https://domain.com/Web/Salesforce/Callback.aspx

内容类型绝对是:application / x-www-form-urlencoded

salesforce oauth-2.0

5
推荐指数
1
解决办法
2万
查看次数

最有效的数据存储

我需要转换/转换/处理TransXchange数据转储以减少数据的大小,因为一些xml文件最大可达400 MB.我有以下选择:

  • Sqlite数据库
  • CSV文件
  • 二进制序列化

减少文件大小的最佳方法是什么,以便在Windows Phone 7应用程序中使用它们是可行的?

编辑:我将创建旅程计划应用程序,允许用户指定源和目标.然后,应用程序将提供可用的服务.在我们有不稳定的移动宽带覆盖范围,因此我的目标是离线应用.

.net c# storage windows-phone-7

1
推荐指数
1
解决办法
990
查看次数