Ok So I have another problem. I've been using SOAPlite and it's shell : SOAPsh to test my soap methods and here's what happens: I have the times2 method like int the doc's example but when I call it in the shell like this : times2(2) I get the following error : c-gensym3 is not a valid parameter (valid values are: ['value'])
c-gensym always has a different number behind it (just happens to be 3 in this case) and I can't make heads or tails of it. Now if I give a default value to times2 parameter and I call it like times2(), it works... The error is returned by iconv.py in TGWebServices. I can't figure out if it's the SOAP shell that gives the parameter a weird type or if it's Tgws that interprets it strangely. All i know is it happens in the wsexpose method. Here's my code : http://paste.turbogears.org/paste/2618 and here's what happens in the SOAP shell: http://paste.turbogears.org/paste/2619 Does anyone know why this would be happening and if it's because of the SOAP Lite Shell or not ? I'm going to be trying another SOAP client in the mean time. Tom On Apr 28, 2:55 pm, zaf <[EMAIL PROTECTED]> wrote: > Okay I got it now, > It is needed for the top controller to be a subclass of the webservice > class (english not being my native language I understood that the > other way around the first time). > I also had to add the path for the WebServices in the call to the > controller in start-myapp.py. > It ends up being something like this : > > The top controller : > class Root(controller.Rootcontroller, MyWebServiceClass): > {instructions} > > inside start-myapp.py : > start(Root("http://foo.bar.baz/")) > > So that's that... > > On Apr 28, 12:09 pm, zaf <[EMAIL PROTECTED]> wrote: > > > Look I did RTFM, it's a page > > :http://svn.tgwebservices.python-hosting.com/trunk/README.txt > > now I know I can't access methods through the browser, but shouldn't I > > be able to acces the soap/api.wsdl ? because i'm getting a not found > > error. If I wrong for thinking that let me know. > > I'm trying with a Soap client right now, will post if I figure > > anything with it. > > > On Apr 28, 10:37 am, "Florent Aide" <[EMAIL PROTECTED]> wrote: > > > > On Mon, Apr 28, 2008 at 10:20 AM, zaf <[EMAIL PROTECTED]> wrote: > > > > > I hate to do that but up !. > > > > I really need some help on this thanks. > > > > ? So what --> RTFM > > > > Soap methods cannot be accessed by a simple browser since you have an > > > end point with a wsdl which exposes the way to talk with those > > > methods. If you want to use soap you'll have to use a proper client > > > (elementsoap is what I use). > > > > Florent. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

