That's why it looked familiar - I love that article, but obviously didn't read it 
closely enough last time. :)

FWIW, we have some Web Services running on IIS that don't have this problem.  However 
this might be just a limitation of how we have our "dev" environment set up.  In 
Production, there are roughly a half dozen servers, the ones storing our web services 
are running Apache, everything else runs IIS, Development included.

In our Dev world, we have one server and use IIS to just run Dev versions of each site 
all on the same box (hey don't blame me, it was like this when I got here). 

So in Production we have Server1 (IIS) that talks to WebServicesServer1 (apache) and 
the error occurs.  In Dev we have FakeServer1 (IIS) that talks to 
FakeWebServicesServer1 (same instance of IIS on the same physical box as FakeServer1), 
and in THAT situation, the optional arguments seem to be working (according to 
co-workers).

It's not the greatest Dev environment, but it works.  However I'm wondering if that is 
why we're having this issue: running everything on 1 box, and even when using 
different URLs to access the different "fake servers", it's not really behaving like a 
true web service?

thanks for the info, everyone.

nolan


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 07, 2004 2:49 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Apache does not support optional parameters???






Nolan,

That's from an article I did for oreilly.com a while back:

http://www.oreillynet.com/pub/a/javascript/2003/09/24/coldfusion_tips.html?page=1

As far as I know, it isn't a bug. I don't know the WSDL 1.1 spec well enough to answer 
whether it is a function of that design, or specific to Axis.
However, I haven't come across any web services yet that support optional arguments.

-Rob




"Nolan Erck" <[EMAIL PROTECTED]>@cfczone.org on 10/07/2004 02:16:03 PM

Please respond to [EMAIL PROTECTED]

Sent by:    [EMAIL PROTECTED]



To:    <[EMAIL PROTECTED]>
cc:


Subject:    [CFCDev] Apache does not support optional parameters???


A co-worker just found the following documentation (i'm not sure where
exactly):

6. Watch Optional Arguments
If you plan to expose your CFCs as web services, be careful with optional
arguments. The Apache Axis 1.1 web services engine used by ColdFusion MX
6.1 does not support optional input arguments. If your CFC methods contain
optional arguments, the required attribute setting is ignored, and the
argument is treated as required. Here's an example:
<cfcomponent>
  <cffunction name="getMessage" access="remote" returntype="string"
    output="no">
    <cfargument name="name" type="string" required="no" default="Stinky">
    <cfreturn "Hello " & arguments.name &"! " & "I've been invoked as a web
              service.">
  </cffuntion>
</cfcomponent>
In this case, even though name is an optional argument as far as the CFC is
concerned, it is required when you expose it as a web service. If you try
to call the component method as a web service and don't provide a name
argument, ColdFusion throws an error.
--------------------------
that sounds like either a fairly big bug to me, or something we can easily
work around with a particular coding style that we're just not using here
(yet).  Has anyone else experienced this?  Any insight on preferred ways to
deal with it?

Thanks,
Nolan

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

 An archive of the CFCDev list is available at
 www.mail-archive.com/[EMAIL PROTECTED]


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to