When trying to use the Clickatell SOAP WebService via “http://api.clickatell.com/soap/webservice.php?WSDL” you receive a “FileNotFoundException” exception:

 $ws = New-WebServiceProxy -Uri 'http://api.clickatell.com/soap/webservice.php?WSDL' -Namespace sms -Class sms;
New-WebServiceProxy : Could not load file or assembly 'file:///%TEMP%\asqe3oyx.dll' or one of its dependencies. The system cannot find the file specified.
At line:1 char:7
+ $ws = New-WebServiceProxy -Uri 'http://api.clickatell.com/soap/webservice.php?WS ...
+       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [New-WebServiceProxy], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.NewWebServiceProxy

You effectively have to use the workaround described in the manual by calling the web service under this address: ‘http://api.clickatell.com/soap/webservice_vs.php?WSDL’. The reason behind it seems to be use of a conflicting attribute named ‘callback’.

1 Comment »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.