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

Web Service & XML

Participant ,
Feb 19, 2007 Feb 19, 2007

Copy link to clipboard

Copied

Hi all.
Somehow I am not able to run my web service...here is the invoke page my code.
<cfinvoke
webservice=" http://bt2bcm:8500/comp.cfc?wsdl"
method="myFunction"
returnvariable="aString" >
<cfinvokeargument name="url1" value="Hello"/>
<cfinvokeargument name="url2" value="World"/>
</cfinvoke>

<cfoutput>
#aString#
</cfoutput>
=======And CFC=========
<cfcomponent hint="OutPut Url Values" >
<cffunction name="myFunction" access="remote" returntype="string">
<cfargument name="url1" type="string" required="no">
<cfargument name="url2" type="string" required="no">

<!---cfif arguments.url1 eq "" and arguments.url2 eq "">
Please enter a url variable value <cfabort>
<cfelse>

</cfif--->
<cfreturn url1&url2>
</cffunction>
</cfcomponent>



====================
The message I am getting is :

Variable ASTRING is undefined.


The error occurred in D:\CFusionMX\wwwroot\t.cfm: line 18

16 :
17 : <cfoutput>
18 : #aString#
19 : </cfoutput>
20 : </body>


TOPICS
Advanced techniques

Views

270

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

correct answers 1 Correct answer

Advocate , Feb 19, 2007 Feb 19, 2007
I don't think that is a valid ColdFusion webservice call, as there is no way to specify the method you would like to use. Is there a particular reason that you don't like the <cfinvoke webservice=""> syntax?

Votes

Translate

Translate
Advocate ,
Feb 19, 2007 Feb 19, 2007

Copy link to clipboard

Copied

Have you tried refreshing the webservice registration in the CF Administrator?

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
Participant ,
Feb 19, 2007 Feb 19, 2007

Copy link to clipboard

Copied

Actually it looks fine now..A simple question...
is this a illegal call to web service?

http://bt2bcm:8500/comp.cfc?wsdl&url11=BTBUDGET SUBREQ&url2=BTBUDGET PURCHASEREQ

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
Advocate ,
Feb 19, 2007 Feb 19, 2007

Copy link to clipboard

Copied

I don't think that is a valid ColdFusion webservice call, as there is no way to specify the method you would like to use. Is there a particular reason that you don't like the <cfinvoke webservice=""> syntax?

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
Participant ,
Feb 19, 2007 Feb 19, 2007

Copy link to clipboard

Copied

LATEST
Thank u man. u r right..it doesnt work that way..<cfinvoke is better...tc

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