在iPhone中使用带有wsdl2objc的Soap Web服务? [英] Using Soap Web Services in iPhone with wsdl2objc?

查看:123
本文介绍了在iPhone中使用带有wsdl2objc的Soap Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确实知道这是一个重复的问题,但唯一的另一个问题是相当陈旧,所以我想知道是否有人最近有过使用最新版 wsdl2objc

I do realize this is a duplicate question, however the only other question is quite old, so I would like to know if anyone has had any recent experience with the latest version of wsdl2objc.

我正在做一个与暴露的SOAP Web服务进行通信的应用程序由第三方应用程序(它不幸地以这种方式暴露它们)。据我所知,wsdl2objc所做的就是将WSDL转换为客观C代码中有用的东西。我也完成了教程 icodeblog肥皂介绍

I am doing an application that will communicate with SOAP Web services exposed by a third party application (it only exposes them this way unfortunately). As far as I understand all wsdl2objc does is convert the WSDL to something useful in objective C code. I have also done the tutorial icodeblog intro to soap

那么有没有人使用过wsdl2objc的最新版本?你有什么经验?你遇到过任何问题吗? 。请告诉我。另外一些代码示例真的很棒。

So has anyone used the latest version of wsdl2objc?, what is your experience with it?, did you run into any problems with it?. Please let me know. Also some code sample would be really great.

任何关于在iPhone上使用SOAP Web服务的信息都将受到赞赏。谢谢。

Any information available on using SOAP Web Services with iPhone would be appreciated. Thank you.

-Oscar

推荐答案

我最近的经历wsdl2objc是它在正确的道路上,但还没有真正存在。这绝对是你想要的那种程序。它可能会或可能不会处理您实际拥有的WSDL。

My most recent experiences with wsdl2objc is that it's on the right road, but not really there yet. It's definitely the kind of program you'd want. It just may or may not be able to handle the WSDLs you actually have.

简短回答:尝试一下,看看它是否适用于您的WSDL。如果是的话,万岁。如果没有,您有两种选择。对于相当简单的WSDL,请手动编写SOAP。这通常是最简单的方法。如果WSDL很复杂,那么使用gSOAP来获取C ++,然后将C ++包装在Objective中-C ++ (或者使用-c选项来gSOAP并包装生成的C,无论你更熟悉哪个)。

Short answer: try it and see if it works for your WSDLs. If it does, hooray. If it doesn't, you have two options. For reasonably simple WSDLs, write the SOAP by hand. This often is actually the easiest approach. If the WSDL is complex, then use gSOAP to get to C++ and then wrap the C++ in Objective-C++ (or use the -c option to gSOAP and wrap the resulting C, whichever you're more comfortable with).

这篇关于在iPhone中使用带有wsdl2objc的Soap Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆