Joe Rinehart - are you out there?
Hi everyone,
As my subject states, I am trying to consume a .Net webservice
in CF. I've been reading Joe Rinehart's article in CFDJ about passing an
actual object (CFC) to the webservice, and I *think* I've created the
correct CFCs as objects to pass, but I keep getting back "argument type
mismatch" or "parameter not found" errors when doing so. Here's what I've
got:
.NET Webservice method:
<WebMethod()>
Public Function MailSend (
ByVal Server As String,
ByVal From As String,
ByVal templateSubject As String,
ByVal templateBodyText As String,
ByVal Emails As Email())
As String()
As you can see, all of the parameters are strings except for Emails(). This
is an array of Email objects, which is a .NET that I've created.
This is the structure of the Email class:
EmailName As String
EmailAddress As String
TemplateSubjectReplacements As NameValuePair()
TemplateBodyReplacements As NameValuePair()
One more thing here - NameValuePair is another structure that I've created
for the purpose of allowing a set of parameters to be sent to the
webservice.
So to summarize this process:
CF builds an "email template" and sends it to the webservice. It also
builds an array of email objects that contain the email address, actual
name, and a list of things to replace in the email template so every email
going out is completely customized. The webservice gets this information
and does the parsing and replacement, then hands it off to the email server.
Any help of this?
Thank you,
Matthew Small
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190441
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54