Hello,

  Not sure if anyone here has played around with SOAP and WSDL or
PowerShell for that matter.  I am using the following Django snippet
to enable SOAP and WSDL using Django:

http://djangosnippets.org/snippets/2210/

  It runs and generates a WSDL document, I also used the example
located here to test as wel:

https://github.com/soaplib/soaplib/blob/1_0/doc/source/pages/helloworld.rst

  This one is not Django specific, but rather Python.  Now in
PowerShell, I use the New-WebServiceProxy Cmdlet to access the SOAP
web service using WSDL:

$hello = New-WebServiceProxy -Uri http://localhost:7789/?wsdl

  PowerShell loads it in, the problem occurs when I attempt to call
the say_hello function:

$hello.say_hello("Kevin",5)

  It shoots back this error:
Cannot find an overload for "say_hello" and the argument count: "2".
At line:1 char:17
+ $hello.say_hello <<<< ("Kevin",5)
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodCountCouldNotFindBest

  Oddly if I inspect the method in PowerShell, it is not being seen as
2 parameters, only a single parameter, which is not even a type
PowerShell can use...

An example of a working WSDL document and service with PowerShell can
be found here:

http://www.webservicex.net/uszip.asmx?WSDL

  This one sees the first parameter as a String type in PowerShell and
works as expected.  However, PowerShell fails to work with the
autogenerated WSDL document from the soaplib.  Any ideas?

  At this point, I am very tempted on manually creating the WSDL
document, but this will become more work than it has to be when I
begin adding new functions to be accessed from PowerShell.  I'd rather
the process be automated.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to