Hi everyone
I'm just checking over some code a developer wrote for me. The project
was to build a web service interface to our application. He has
programmed the web service component in a way that the methods only
require one attribute - an XML packet (he has then defined the
required XML packet in a document). I've never seen a web service
component built like this. I've always used simple and complex data
types as the required arguments for each method. Therefore when you
call the WSDL URL you get a proper definition of the web service. Am I
right or are both options correct?
Here's a sample:
<cffunction name="getMatchingProducts" access="remote" output="true"
returntype="string">
<cfargument name="xmlRequest" type="String" required="true"/>
</cffunction>
I thought it's meant to be like this:
<cffunction name="getMatchingProducts" access="remote" output="true"
returntype="string">
<cfargument name="criteriaA" type="String" required="true"/>
<cfargument name="criteriaB" type="Numeric" required="true"/>
<cfargument name="criteriaC" type="ComplexType"
required="true"/>
</cffunction>
The way I see it the client who consumes the webservice in whatever
technology they use will have a web service decipherer which will
convert all complex types into types that will suit them.
Cheers
Matthew
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315055
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4