• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Webservice invocation

New Here ,
Mar 19, 2009 Mar 19, 2009

Copy link to clipboard

Copied

Need help in invoking these webservices..
There are two webservices that I am trying to invoke one after the other:-
1) first web service "setupwebsession" sets a session. Here I have setup the session.webuserUI to a component.
2) second service tries to get a profile but displays an error

Here is the webservice consuming:-

<cfinvoke webservice=" http://localhost:8050/WebServices.cfc?wsdl"
method="setUpWebUserSession"
returnVariable="soo">
<cfinvokeargument name="userName" value="shafiatcc@gmail.com">
<cfinvokeargument name="applicationToLogIn" value="atccWeb">
</cfinvoke>
<cfoutput> #soo# </cfoutput>
<cfdump var="#Session.SessionID#">
<cfinvoke webservice=" http://localhost:8050/WebServices.cfc?wsdl"
method="getProfileHTML" returnvariable="profilehtml">
</cfinvoke>
<cfoutput>#getProfileHTML#</cfoutput>

I am trying to consume both these webservices but it displays a following error.

Cannot perform web service invocation getProfileHTML.
The fault returned when invoking the web service operation is:

AxisFault
faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString:
[line 1, column 8] [--Catch Data--]
type: Application
tagname: CFOUTPUT
template: C:/jboss-eap-4.3/jboss-as/server/atcc/tmp/deploy/tmp48291CTiWebServicesAPI.ear-contents/CTiWebServicesAPI-exp.war/CTiWebServicesAPI.cfc
Line: 75; Column: 3
ErrorCode:
message: session.WebUserUI.getWebProfileHTML() doesn't exist.
detail: Error at line 1, column 8

faultActor:
faultNode:
faultDetail:
{ http://xml.apache.org/axis/}hostname:124426-SECOM1
''


The error occurred in C:\ColdFusion8\wwwroot\selfprojects\webservices1.cfm: line 10

8 : <cfdump var="#Session.SessionID#">
9 : <cfinvoke webservice=" http://localhost:8050/webervices.cfc?wsdl"
10 : method="getProfileHTML" returnvariable="profilehtml">
11 : </cfinvoke>
12 : <cfoutput>#getProfileHTML#</cfoutput>



--------------------------------------------------------------------------------

Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.


Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Remote Address 127.0.0.1
Referrer http://localhost:8500/selfprojects/
Date/Time 19-Mar-09 04:27 PM

Stack Trace (click to expand)
at cfwebservices12ecfm1268558828.runPage(C:\ColdFusion8\wwwroot\selfprojects\webservices1.cfm:10)


coldfusion.xml.rpc.ServiceProxy$ServiceInvocationException: Cannot perform web service invocation getProfileHTML.
at coldfusion.xml.rpc.ServiceProxy.invokeImpl(ServiceProxy.java:230)
at coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:143)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2222)
at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:417)
at cfwebservices12ecfm1268558828.runPage(C:\ColdFusion8\wwwroot\selfprojects\webservices1.cfm:10)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:175)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)



TOPICS
Advanced techniques

Views

805

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2009 Mar 21, 2009

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 22, 2009 Mar 22, 2009

Copy link to clipboard

Copied

LATEST
quote:

Originally posted by: shafiur
Need help in invoking these webservices..
There are two webservices that I am trying to invoke one after the other:-
1) first web service "setupwebsession" sets a session. Here I have setup the session.webuserUI to a component.
2) second service tries to get a profile but displays an error

Here is the webservice consuming:-

<cfinvoke webservice=" http://localhost:8050/WebServices.cfc?wsdl"
method="setUpWebUserSession"
returnVariable="soo">
<cfinvokeargument name="userName" value="shafiatcc@gmail.com">
<cfinvokeargument name="applicationToLogIn" value="atccWeb">
</cfinvoke>
<cfoutput> #soo# </cfoutput>
<cfdump var="#Session.SessionID#">
<cfinvoke webservice=" http://localhost:8050/WebServices.cfc?wsdl"
method="getProfileHTML" returnvariable="profilehtml">
</cfinvoke>
<cfoutput>#getProfileHTML#</cfoutput>


You are trying to output the function name instead of the returnvariable.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation