Webservices newEMailMailing fucntion openemm.class.php

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

ranganath
Posts: 2
Joined: Fri Oct 23, 2009 1:44 pm

Webservices newEMailMailing fucntion openemm.class.php

Post by ranganath »

Hi,
I am calling newEmailMailing function to create a new mailing using webservices through php. I am using openemm.class.php forthis.

$objOpenEMM = new OpenEMM('ws.wsdl', 'user', 'pwd');
$objOpenEMM->newEmailMailing("fromWebService1", "From webservice one", 2, 0, 0, "from webservice one", "test@test.com");

I get following error.

Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] java.lang.NullPointerException in C:\wamp\www\openemm\OpenEMM.class.php:187
Stack trace:
#0 C:\wamp\www\openemm\OpenEMM.class.php(187): SoapClient->__soapCall('newEmailMailing', Array)
#1 C:\wamp\www\openemm\test.php(44): OpenEMM->newEmailMailing('fromWebService1', 'From webservice...', 2, 0, 0, 'from webservice...', 'test@....')
#2 {main}
thrown in C:\wamp\www\openemm\OpenEMM.class.php on line 187

What am i doing wrong in this? please help
Thanks