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

Closed
qiangxue opened this Issue Feb 15, 2012 · 8 comments

Projects

None yet

7 participants

@qiangxue
Member

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
zenbaku commented Feb 23, 2012

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

@cebe
Member
cebe commented Feb 23, 2012

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
Member
cebe commented Feb 23, 2012

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

@nkostadinov

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

@bwoester
bwoester commented Jul 5, 2012

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
Contributor

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
Member
samdark commented Feb 19, 2013

Yes.

@nineinchnick nineinchnick added a commit to nineinchnick/yii that referenced this issue Feb 21, 2013
@nineinchnick nineinchnick enh #94, added support for document/literal WSDL in generator, inspir…
…ed by Zend 2.0 Soap Autodiscover class
a61b6de
@nineinchnick nineinchnick added a commit to nineinchnick/yii that referenced this issue Feb 21, 2013
@nineinchnick nineinchnick enh #94, added a wrapper in CWebService handling method arguments and…
… response in document mode
98fe65f
@nineinchnick
Contributor

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

@cebe cebe was assigned Jan 30, 2014
@cebe cebe added a commit that referenced this issue Jan 30, 2014
@cebe cebe Merge PR #2140 branch '94-document-literal-wsdl' of https://github.co…
…m/nineinchnick/yii into nineinchnick-94-document-literal-wsdl

* '94-document-literal-wsdl' of https://github.com/nineinchnick/yii:
  use consts in place of 'rpc' and 'encoded' for operationBodyStyle and bindingStyle properties
  enh #94, added a wrapper in CWebService handling method arguments and response in document mode
  enh #94, added support for document/literal WSDL in generator, inspired by Zend 2.0 Soap Autodiscover class
990cce4
@cebe cebe closed this Jan 30, 2014
@twiesenthal twiesenthal pushed a commit to twiesenthal/yii that referenced this issue May 21, 2014
@nineinchnick nineinchnick + tobias.wiesenthal enh #94, added support for document/literal WSDL in generator, inspir…
…ed by Zend 2.0 Soap Autodiscover class
7bb95ad
@twiesenthal twiesenthal pushed a commit to twiesenthal/yii that referenced this issue May 21, 2014
@nineinchnick nineinchnick + tobias.wiesenthal enh #94, added a wrapper in CWebService handling method arguments and…
… response in document mode
a9643dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment