asked on
<?xml version="1.0" encoding="ISO-8859-1"?>
<cfsavecontent variable="CampaignInfo">
<campaigns>
<cfoutput query="getCampaignInfo">
<campaign id="#ct_id#">
<offer>#ct_offer#</offer>
<campaignname>#ct_name#</campaignname>
<location>#ct_location#</location>
<headline>#ct_headline#</headline>
<state>#ct_state#</state>
<content1>#ct_content1#</content1>
<content2>#ct_content2#</content2>
<isAllowAppointment>#ct_isAllowAppointment#</isAllowAppointment>
</campaign>
</cfoutput>
</campaigns>
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:landingPageAssetsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://webservices">
<landingPageAssetsReturn xsi:type="xsd:string">
<campaigns>
<campaign id="1440">
<offer></offer>
<campaignname>TestDealer-GutterHelmet (UNLIMITED)</campaignname>
<location></location>
<headline></headline>
<state>AL</state>
<content1></content1>
<content2></content2>
<isAllowAppointment>0</isAllowAppointment>
</campaign>
</campaigns>
</landingPageAssetsReturn>
</ns1:landingPageAssetsResponse>
</soapenv:Body>
</soapenv:Envelope>
ASKER
<?xml version="1.0" encoding="UTF-8"?> <campaigns> <campaign id="1440"> <offer/> <campaignname>TestDealer-GutterHelmet (UNLIMITED)</campaignname> <location/> <headline/> <state>AL</state> <content1/> <content2/> <isAllowAppointment>0</isAllowAppointment> </campaign> </campaigns>
ASKER
<campaigns><char code='0a'/> <char code='0a'/><char code='0a'/> <campaign id="1440"><char code='0a'/> <offer/><char code='0a'/> <campaignname>TestDealer-GutterHelmet (UNLIMITED)</campaignname><char code='0a'/> <location/><char code='0a'/> <headline/><char code='0a'/> <state>AL</state><char code='0a'/>
ASKER
<cfcomponent>
<cffunction name="landingPageAssets"
access="remote"
returntype="string"
output="no">
<cfargument name="cid"
type="numeric"
required="yes">
<cfset Var campaignInfo = "">
<cfset Var getCampaignInfo = "">
<cfquery name="getCampaignInfo" datasource="#application.dsn#">
select ct.id as ct_id
,ct.name as ct_name
,ct.location as ct_location
,ct.offer as ct_offer
,ct.headline as ct_headline
,ct.defaultState as ct_state
,ct.content1 as ct_content1
,ct.content2 as ct_content2
,ct.image1 as ct_image1
,ct.isAllowAppointment as ct_isAllowAppointment
from clients ct
where ct.id = #arguments.cid#
</cfquery>
<?xml version="1.0" encoding="ISO-8859-1"?>
<cfsavecontent variable="CampaignInfo">
<campaigns>
<cfoutput query="getCampaignInfo">
<campaign id="#ct_id#">
<offer>#XMLFormat(ct_offer)#</offer>
<campaignname>#XMLFormat(ct_name)#</campaignname>
<location>#XMLFormat(ct_location)#</location>
<headline>#XMLFormat(ct_headline)#</headline>
<state>#XMLFormat(ct_state)#</state>
<content1>#XMLFormat(ct_content1)#</content1>
<content2>#XMLFormat(ct_content2)#</content2>
<isAllowAppointment>#ct_isAllowAppointment#</isAllowAppointment>
</campaign>
</cfoutput>
</campaigns>
</cfsavecontent>
<cfreturn campaignInfo>
</cffunction>
</cfcomponent>
<cfcomponent>
<!--- Ion will be calling this method/function when they make the
call to the web service.
--->
<cffunction name="landingPageAssets"
access="remote"
returntype="string"
output="no">
<!--- the url strings on the landing pages contain a url var named
"ctid". Ion will take this ctid and pass it to the web service
as the var named cid
--->
<cfargument name="cid"
type="numeric"
required="yes">
<!--- Set an empty local var here to hold the information
that we are returning
--->
<cfset Var campaignInfo = "">
<!--- Making sure we have a clean query result --->
<cfset Var getCampaignInfo = "">
<!--- Get the campaign information based on the cid that was passed
from ion
--->
<cfquery name="getCampaignInfo" datasource="#application.dsn#">
select ct.id as ct_id
,ct.name as ct_name
,ct.location as ct_location
,ct.offer as ct_offer
,ct.headline as ct_headline
,ct.defaultState as ct_state
,ct.content1 as ct_content1
,ct.content2 as ct_content2
,ct.image1 as ct_image1
,ct.isAllowAppointment as ct_isAllowAppointment
from clients ct
where ct.id = #arguments.cid#
</cfquery>
<!--- This tag allows for well formed XML --->
<cfxml variable="CampaignInfo">
<campaigns>
<cfoutput query="getCampaignInfo">
<campaign id="#ct_id#">
<offer>#ct_offer#</offer>
<campaignname>#ct_name#</campaignname>
<location>#ct_location#</location>
<headline>#ct_headline#</headline>
<state>#ct_state#</state>
<content1>#ct_content1#</content1>
<content2>#ct_content2#</content2>
<isAllowAppointment>#ct_isAllowAppointment#</isAllowAppointment>
</campaign>
</cfoutput>
</campaigns>
</cfxml>
<cfreturn campaignInfo>
</cffunction>
</cfcomponent>
ASKER
<?xml version="1.0" encoding="UTF-8"?>
<campaigns>
<campaign id="1440">
<offer/>
<campaignname>TestDealer-GutterHelmet (UNLIMITED)</campaignname>
<location/>
<headline/>
<state>AL</state>
<content1/>
<isAllowAppointment>0</isAllowAppointment>
<googlecityname>Brooklyn</googlecityname>
<googlestate>CT</googlestate>
<googlecityabb>Brooklyn</googlecityabb>
</campaign>
</campaigns>
ASKER
ASKER
ASKER
ColdFusion is a server-side rapid application development platform originally created by Allaire and now sold by Adobe, implementing the dynamic general purpose CFML programming language. The term ColdFusion is sometimes colloquially used to refer to the CFML language (Cold Fusion Markup Language), but can also include discussions of the server software implementation. ColdFusion runs using a customised version of Apache Tomcat. Earlier versions are bundled with JRun.
TRUSTED BY
THis isn't my specialty at all but I believe this happens when you embed pure XML in a SOAP body.
Question is why is that returning a soap response at all. Your cfc should product pure XML. Perhaps they are calling it incorrectly?