Paypal API SetMobileCheckout 的 Soap xml(滚动我自己的 Objective-C 请求)

发布于 2024-07-18 02:31:34 字数 1747 浏览 5 评论 0原文

我这里有通用结构:

 <?xml version=”1.0” encoding=”UTF-8”?> 
<SOAP-ENV:Envelope xmlns:xsi= ”  http://www.w3.org/2001/XMLSchema-instance” 
    xmlns:SOAP-ENC=”http://schemas.xmlsoap.org/soap/encoding/” 
    xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” 
    xmlns:xsd=”http://www.w3.org/2001/XMLSchema”   
    SOAP-ENV:encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/” 
><SOAP-ENV:Header> 
    <RequesterCredentials xmlns=”urn:ebay:api:PayPalAPI”> 
        <Credentials xmlns=”urn:ebay:apis:eBLBaseComponents”> 
            <Username>api_username</Username> 
            <Password>api_password</Password> 
            <Signature/>     
            <Subject/> 
        </Credentials> 
    </RequesterCredentials> 
</SOAP-ENV:Header> 
<SOAP-ENV:Body> 
    <specific_api_name_Req xmlns=”urn:ebay:api:PayPalAPI”> 
        <specific_api_name_Request> 
            <Version xmlns=urn:ebay:apis:eBLBaseComponents”>service_version 
            </Version> 
            <required_or_optional_fields xsi:type=”some_type_here”>                data 
            </required_or_optional_fields> 
        </specific_api_name_Request> 
    </specific_api_name_Req> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope>

我需要的具体调用(SetMobileCheckout 和 DoMobileCheckoutPayment)是 这里

我已经上路了。 但我正在 Objective-C 中滚动我自己的 xml 请求,并且我正在努力确保我得到了正确的结果。

有没有人有一个实际的例子和真实的要求?

如果它被包装在 Objective-C 中,那就太好了,但如果只是裸露的 xml 那就太好了。

谢谢, 科里

I have the generic structure here:

 <?xml version=”1.0” encoding=”UTF-8”?> 
<SOAP-ENV:Envelope xmlns:xsi= ”  http://www.w3.org/2001/XMLSchema-instance” 
    xmlns:SOAP-ENC=”http://schemas.xmlsoap.org/soap/encoding/” 
    xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” 
    xmlns:xsd=”http://www.w3.org/2001/XMLSchema”   
    SOAP-ENV:encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/” 
><SOAP-ENV:Header> 
    <RequesterCredentials xmlns=”urn:ebay:api:PayPalAPI”> 
        <Credentials xmlns=”urn:ebay:apis:eBLBaseComponents”> 
            <Username>api_username</Username> 
            <Password>api_password</Password> 
            <Signature/>     
            <Subject/> 
        </Credentials> 
    </RequesterCredentials> 
</SOAP-ENV:Header> 
<SOAP-ENV:Body> 
    <specific_api_name_Req xmlns=”urn:ebay:api:PayPalAPI”> 
        <specific_api_name_Request> 
            <Version xmlns=urn:ebay:apis:eBLBaseComponents”>service_version 
            </Version> 
            <required_or_optional_fields xsi:type=”some_type_here”>                data 
            </required_or_optional_fields> 
        </specific_api_name_Request> 
    </specific_api_name_Req> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope>

The specific calls (SetMobileCheckout and DoMobileCheckoutPayment) I need are here

I'm well on my way. But I am rolling my own xml request in objective-c and I I'm trying to make sure I get this right.

Has anyone got an actual example with a real request?

Bonus if it is wrapped in objective-C, but just naked xml would be great.

Thanks,
Corey

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

自在安然 2024-07-25 02:31:34

我最终解决了这个问题。

您可以在 HTTP POST 中使用 NVP。 这在 iPhone 上要容易得多。 不知道为什么我的 SOAP 响应不断被拒绝,但继续下去太耗时了。

在寻找答案时,我确实遇到了 gSoap,它可能对其他人有帮助。 我只需要提出 2 个请求,因此我不想专注于学习该框架。

我还遇到了 wsdl2objC,不幸的是,它现在无法在 iPhone 上运行(数据类型问题)。

I eventually went around the problem.

You can use NVP in a HTTP POST. This was munch easier on the iPhone. Not sure why my SOAP response kept getting rejected, but it was too time consuming to keep going.

In search for my answer, I did run across gSoap, which may help others. I just needed to make 2 requests, so I didn't want to get wrapped up in leaning that framework.

I also ran across wsdl2objC, unfortunately, it is not working on the iPhone right now (Data Type issues).

丢了幸福的猪 2024-07-25 02:31:34

以下是使用 NVP 的 HTTP POST 请求的链接:

有人通过本机 iPhone 应用程序实现了 PayPal API 吗?

Here is a link to the HTTP POST request which uses NVP instead:

Has anyone implemented the PayPal API through a native iPhone app?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文