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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to