在Iphone中访问Web服务 [英] access a web service in Iphone

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

问题描述

我有一个Web服务的wsdl链接.我希望您在我的iPhone应用程序中使用此Web服务.该Web服务是一个JAX-WS服务.请指导我使用此Web服务的最佳方法.

I have a wsdl link of my web service.and i want yo consume this web service in my iphone application. this web service is a JAX-WS service.Please guide me the best way to use this web service.

推荐答案

您可以使用 wsdl2objc .它是一个代码生成实用程序,它创建访问Web服务所需的所有存根类.我必须修改模板以便准确获取我们的Web服务所需的SOAP信封,但这一点都不困难.

You can use wsdl2objc. It is a code generation utility that create all the stub classes needed to access Web Services. I had to modify the templates in order to obtain exactly the SOAP envelope needed by our web services, but it was not difficult at all.

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

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