OK so scrap that question, I have discovered the TGWebService 1.1
documentation.

However, I do have a problem with this. It seems that if I pass a
complex input to @wsvalidate the type is not published in the WSDL. I
work around this problem by having a dummy call that @wsexpose the
complex type in question. My client then work as expected.

eg:

class operator_t(object):
    code  = str
    name = str

class ISAWebService(WebServicesRoot):

    @wsexpose(str)
    @wsvalidate(operator_t, str)
    def getSession(self, opr, user):
        return user

    # Without this I don't get the definition of operator_t in the
WSDL :-(
    @wsexpose(operator_t)
    @wsvalidate()
    def xxxDontCallMe(self):
        return

Is there any other way around this? BTW I am running yesterdays
release of TGWebServices on Sol 10 with python 2.2.4,

Cheers,
Rod.

On Mar 27, 3:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> This is great stuff. I have been getting some excellent results
> implemented my existing API as Webservices. However, I have hit a wall
> when I attempted to pass a complex type as input, I see now that this
> in not currently supported.
>
> Is there a timeframe around implementing lists and complex types as
> input?
>
> Thanks,
> Rod.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to