Web Service is not working

Web Service is not working

BY 13 Nov 2014 Web Application Development

I am trying to make a web service using SDK 2.3. But when i try to launch the service it sends me a not found error like-“given package is not found”.

I have tried serveral times changing the code, but seems the service is not being registered from config.xml-

<?xml version=”1.0″ encoding=”UTF-8″?>
<widget xmlns=”http://www.w3.org/ns/widgets” xmlns:tizen=”http://tizen.org/ns/widgets” id=”http://yourdomain/WebService” version=”1.0.0″ viewmodes=”maximized”>
    <tizen:application id=”9ym34mMJmK.WebService” package=”9ym34mMJmK” required_version=”2.3″/>
    <feature name=”http://tizen.org/feature/screen.size.all”/>
    <icon src=”icon.png”/>
    <name>WebService</name>
    <tizen:privilege name=”http://tizen.org/privilege/application.launch”/>
    <tizen:profile name=”mobile”/>
    <tizen:service id=”9ym34mMJmK.Service” on-boot=”true” auto-restart=”true”>
        <tizen:content src=”js/service1.js”/>

        <tizen:name>WebService1</tizen:name>
    </tizen:service>
</widget>

—————————————————————-

i am trying to launch this service using following code-

    tizen.application.launchAppControl(new tizen.ApplicationControl(“http://tizen.org/appcontrol/operation/service”),
            “9ym34mMJmK.Service”,
            function() {alert(“Launch Service succeeded”); },
            function(e) {alert(“Launch Service failed : ” +e.type + ” : ” +  e.message);});

Is anything wrong? Do i need to do something additional? 

Written by