yiisoft / yii

Yii PHP Framework 1.1.x
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
4.84k stars 2.28k forks source link

[Enh] Web services: Implement document/literal encoding for WDSL #94

Closed qiangxue closed 10 years ago

qiangxue commented 12 years ago

While considering implementing a web service based on Yii, I came across lots of people having the same problem: CWdslGenerator has RPC/encoded style hardcoded, and doesn't suppot Document/literal (one of such topics: http://www.yiiframework.com/forum/index.php?/topic/7652-webservice-rpc-encoded-problem/ )

Nowdays Document/literal is considered to be the only actual interoperability standard, because RPC/encoded is highly platform-dependant, and support for it is scarce. Therefore, lots of application can't consume Yii-generated web service.

The only solution right now is not to use Yii for WebServices at all - according to my research, reverting to libs like NuSoap does the trick. Still, it would be great if Yii WS support would be updated.

Migrated from http://code.google.com/p/yii/issues/detail?id=1850


earlier comments

qiang.xue said, at 2011-01-15T19:25:08.000Z:

Set for next milestone.

qiang.xue said, at 2011-03-26T17:58:16.000Z:

Out of time. Move to next milestone.

qiang.xue said, at 2012-01-01T03:36:53.000Z:

set for 1.1.10 milestone

qiang.xue said, at 2012-01-01T03:37:09.000Z:

set for 1.1.10 milestone

qiang.xue said, at 2012-01-01T03:37:35.000Z:

set for 1.1.10 milestone

zenbaku commented 12 years ago

Qiangxue, as on 1.1.10, are there any progress on this issue?

cebe commented 12 years ago

Can you confirm that this is the standard CWsdlGenerator has to cover: http://www.w3.org/TR/wsdl ? Also found this article about the different types: http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/

cebe commented 12 years ago

If you have the time are familiar with this topic you could start an implementation and create a pull request.

nkostadinov commented 12 years ago

qiangxue may it would be easier to use nusoap for this. I think of implementing extension which implements it (like CWebServiceAction).

bwoester commented 12 years ago

I looked into this a year ago. Didn't come up with a solution, but found some helpful tools to test generated WSDLs. For reference:

nineinchnick commented 11 years ago

I've coded this using Zend's Soap classes for comparison. How should I publish this for a code review? Make a pull-request?

samdark commented 11 years ago

Yes.

nineinchnick commented 11 years ago

Bump, maybe tag it for 1.1.15? It's ready and waiting for half a year.