[ 
https://issues.apache.org/jira/browse/SHINDIG-1973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13976778#comment-13976778
 ] 

Ryan Baxter commented on SHINDIG-1973:
--------------------------------------

What is the service variable you are using in your gadget?  I do not see it 
defined.
The way you usually make HTTP requests from your gadget is using the 
makeRequest API.  Here is an example: 
https://github.com/OpenSocial/explorer/blob/master/gadget-specs/src/main/specs/standard-gadgets/makeRequest/makeRequest.js

> invoking of web service
> -----------------------
>
>                 Key: SHINDIG-1973
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1973
>             Project: Shindig
>          Issue Type: Question
>          Components: Javascript 
>         Environment: shindig 2.5.1 - tomcat 7.0.52 - jdk 1.7.0.51
>            Reporter: Paola Montorio
>
> I have to create a gadget in which there is an invocation to a web service , 
> but the invocation of the service
> <service.GetCalcolatrice.callService("somma", 1, 2);>
>  gives me the error "It has not Been rendered null gadgets. The following 
> error occurred: Missing or malformed url parameter ."
> the code is
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
>     <ModulePrefs title="Somma Operatore" height="300"
>         author="Paola"
>        author_email="[email protected]" />
>     <Content type="html">
>     <![CDATA[
>        <body onload="InitializeService();">
>       <form onsubmit="return getFunction(this.form);"> 
>       <div style="margin: 150px; padding: 30px; height:600px; width: 700px;">
>       <input type="text" id="addendo1"/>
>        <input type="text" id="addendo2"/>
>        <input type="submit" value="somma" />
>        <input type="text" id="risultato"/>
>        </div>
>        </form>
>        
>         <script type="text/javascript">
>         var iCallID;
>         function InitializeService() {
>                
> service.useService("http://localhost:8080/EchoService/services/Calcolatrice?wsdl";,
>  "GetCalcolatrice");
>         }
>          function getFunction(dl){
>           service.GetCalcolatrice.callService("somma", 1, 2);
>           return false;
>       }
>        </script>
>        </body>
>     ]]>
>     </Content>
> </Module>
> ---
> The question is, how can I invoke a web service correctly without error "It 
> has not Been rendered null gadgets. The following error occurred: Missing or 
> malformed url parameter "
> Thanks in advance Regards
> Paola Montorio



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to