# Issue while invoking webmethods services from JSP

**URL:** <https://techcommunity.softwareag.com/t/issue-while-invoking-webmethods-services-from-jsp/125077>\
**Category:** Feedback & ideas\
**Tags:** Discussions-on-this-Forum-System, New-User-Welcome-and-Introductions\
**Created:** [January 10, 2008, 2:15am UTC](https://techcommunity.softwareag.com/t/issue-while-invoking-webmethods-services-from-jsp/125077 "2008-01-10T02:15:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujithchandra](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@sujithchandra](https://techcommunity.softwareag.com/u/sujithchandra)\
**Post date:** [January 10, 2008, 2:15am UTC](https://techcommunity.softwareag.com/t/issue-while-invoking-webmethods-services-from-jsp/125077/1 "2008-01-10T02:15:50Z")

</div>

HI

I am trying to invoke a service from a JSP page which is deployed on the same webMethods server.

\<webm:scope options=“param(Query=”\<%=query%\>“) param(connectionName=”\<%=connectionName%\>“)”\>  
\<webm:invoke serviceName=“MotGLT\_Support.ReSubmit:getRecordsStatus”\>  
webm:onErrorUnable to invoke the MotGLT\_Support.ReSubmit:getRecordsStatus \<webm:value variable=“errorMessage”/\>\</webm:onError\>  
\</webm:invoke\>  
\</webm:scope\>  
\<webm:scope recordName=“getRecordStatusOutput”\>  
\<webm:loop variable=“results”\>  
\<%=query%\>  
\<webm:value variable=“Transaction\_ID”/\>  
\<webm:value variable=“Wm\_Run\_ID”/\>  
\<webm:value variable=“Identifier”/\>

\</webm:loop\>  
\</webm:scope\>

I am not able to pass the values as input to the service I get the below error.  
org.apache.jasper.JasperException: /displayResults.jsp(151,35) Unterminated \<webm:scope tag  
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)  
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)  
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:134)  
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1049)  
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)  
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)  
org.apache.jasper.compiler.Parser.parse(Parser.java:126)  
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)  
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)  
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)  
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)  
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)  
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)  
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)  
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)  
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Can some one help me in this regard
