I got a different error now, so I think I am on the right track (that's what
I keep telling myself anyhow hehehe) I will post that tomorrow as I can't
access this from outside our firewall yet.

Eric

-----Original Message-----
From: Matthew Chambers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 7:45 PM
To: CF-Talk
Subject: Re: Web Service question

Hi Eric,

I had similar problem when I was first introduced to WS's. I've found that
numerous problems can cause this but the most common cause is that you are
not passing the parameters correctly. With some of the WS I've consumed I
found that I had to pass almost all arguments even if they were empty
strings. The main items you need to pass as "empties/Nulls" are Array's and
Structs.

I notice that you haven't passed the job_id. Even if it is not required try
passing it as "".

On top of this you may find that you need to pass a NULL variable rather
than a "" string. To do this you need to either use the JavaCast("null,"")
function in CFSCRIPT or use the omit="yes" attribute on the
<cfinvokeargument> tag.
The other thing you may have to do is clear the existing WSDL in CF. So
delete it from the "web service" list in CFADMIN and you may even find that
a server restart resets everything back to normal and forces CF to go off
and get a clean version of the WSDL.
Sorry I can't be more specific but hope these ideas help.
Cheers
Matthew
>I am getting hte following error:
>
>Web service operation "listPositions" with parameters {client_id={xxxxxx},}
>could not be found.
>
>(xxxxx represents a number)
>
>I am calling a cfc (guts of query and datasource removed) that is on the
>same server, but in a different "site":
>
>
><cfcomponent>
> <cffunction name="listPositions" access="remote" returntype="string">
>     <cfargument name="client_id" type="string" required="yes">
>        <cfargument name="job_id" type="string" required="no">
>  <cfset var positionlist="">
>        <cfset var get_positions="">
>        <cfquery datasource="snipped" name="getPositions" maxrows="50">
>   <snipped for privacy>
>  </cfquery>
>
>         <cfsavecontent variable="listPositions">
>          <positions>
>            <cfoutput query="getPositions">
>              <position id="#client_no#">
>                <client>#XMLFormat(name)#</client>
>                <position_name>#XMLFormat(position)#</position_name>
>              </position>
>            </cfoutput>
>          </positions>
>        </cfsavecontent>
>
>  <cfreturn positionlist>
> </cffunction>
></cfcomponent>
>
>
>
>It is called by:
>
> <cffunction name="getJobListing" access="public" returntype="void"
>output="false">
>        <cfargument name="client_id" type="any" required="no"
>default="xxxxxx">
>        <cfinvoke
>           method="listPositions"
>           returnvariable="rawXMLPostionlist"
>           webservice="listPositions">
>
>           <cfinvokeargument name="client_id"
value="#arguments.client_id#">
>        </cfinvoke>
>        <cfset arguments.event.trace("Job Details", rawXMLPositionList)>
>        <cfset arguments.event.setValue("getJobDetails",
rawXMLPositionList)
>/>
>     </cffunction>
>
>Any ideas?  Again...these both reside in different directorys (and
different
>sites as far as the web server is concerned) on the same server.  This
>server is in a trusted zone, so I am not sure how that is effecting this
(am
>a noobie whe it comes to web services...lst time I did similar stuff was
>some WDDX packets many years ago)  Any help is greatly appreciated!
>
>
>
>Eric 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288233
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to