>- see footer for list info -<
Did you call the method before you had working? (Does that even make sense?)

That might be a cached wsdl, refesh it if you can and try it again.

Ade

-----Original Message-----
From: Lee Fortnam [mailto:[EMAIL PROTECTED] 
Sent: 01 February 2005 13:07
To: [email protected]; [email protected]
Subject: [CF-Dev] Webservice basics


>- see footer for list info -<
Afternoon all,

I am having a problem with a web service (only a real basic one but still
problems none the less). This is currently held at
http://www.getitmobile.com/testscripts/encryption.cfc?wsdl and
http://www.getitmobile.com/testscripts/encryption.cfm

In the CFM file I have the following:

<cfinvoke
webservice="http://www.getitmobile.com/testscripts/encryption.cfc?wsdl";
method="EncryptStr" returnvariable="result">
        <cfinvokeargument name="str2encrypt" value="LEE">
</cfinvoke>
<cfoutput>#result#</cfoutput>

<cfinvoke
webservice="http://www.getitmobile.com/testscripts/encryption.cfc?wsdl";
method="DecryptStr" returnvariable="result">
        <cfinvokeargument name="str2decrypt" value="LEE">
</cfinvoke>
<cfoutput>#result#</cfoutput>

In the CFC file I have the following:

<cfcomponent displayname="Allows encryption and decryption of text submitted
to it" hint="Encryption Component">

        <cffunction name="EncryptStr" access="remote" returntype="string"
displayname="Encrypt String" output="true" hint="Takes a string and then
encrypts is using the component.">
                <cfargument name="str2encrypt" type="string"
required="yes" />
                <cfset strencrypted = #Arguments.str2encrypt# &
"_encrypted">
                <cfreturn "hello, passed #Arguments.str2encrypt# sending
back #strencrypted#">
        </cffunction>
        
        <cffunction name="DecryptStr" access="remote" returntype="string"
displayname="Decrypt String" output="true" hint="Takes a string and then
decrypts is using the component.">
                <cfargument name="str2decrypt" type="string"
required="yes" />
                <cfset strdecrypted = #Arguments.str2decrypt# &
"_decrypted">
                <cfreturn "hello, passed #Arguments.str2decrypt# sending
back #strdecrypted#">
        </cffunction>
        
</cfcomponent>

Can anyone see where I am going wrong, click on the links to see the error
message or see below.

Web service operation "EncryptStr" with parameters {str2encrypt={LEE},}
could not be found. 
The error occurred in
D:\wwwroot\getitmobile.com\wwwroot\testscripts\encryption.cfm: line 2 1 :
<cfinvoke
webservice="http://www.getitmobile.com/testscripts/encryption.cfc?wsdl";
method="EncryptStr" returnvariable="result">
2 :     <cfinvokeargument name="str2encrypt" value="LEE">
3 : </cfinvoke>
4 : <cfoutput>#result#</cfoutput>


Lee Fortnam
 
Mobile - 07976 752137
Email -  [EMAIL PROTECTED] 
Web - http://www.fortnam.net 
 
------------------------------------------
The information in this email is intended only for the addressee(s) named
above. Access to this email by anyone else is unauthorised. If you are not
the intended recipient of this message any disclosure, copying, distribution
or any action taken in reliance on it is prohibited and may be unlawful. 

Despite active scanning of all email I do not warrant that any attachments
are free from viruses or other defects and accept no liability for any
losses resulting from infected email transmissions. Please note that any
views expressed in this email may be those of the originator and do not
necessarily reflect those of this organisation. 
-----------------------------------------

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to