>I am getting an error when I try to pass a parameter to a method in an OLEPUBLIC class used as a web service. The error code is:
>
> "OLE error code: 0x80070057 The parameter is incorrect."
>
>The WS class method is simple:
>
>Procedure testparm
>
> Parameters cInStr
>
> Local cThisStr
>
> cThisStr = cInStr + " passed OK"
>
> Return cThisStr
>
>Endproc
>
>The call in the client code is:
>
>? x.testparm('Hello')
>
>This should be a no-brainer. I imagine there is some arcane MS voodoo I am missing here (like an IIS setting deep in the bowels of some configuration page such as "allow parameters to be passed without bombing" ), but I can't seem to find it out.
I don't think there is a problem with your Web Service. However, I would regenerate the WSDL file as it seems offset as per what it should give.