将两个对象作为参数的SOAP方法调用
我正在执行一个SOAP调用,以从下面的wsdl访问getMailingReports方法,并且可以很好地访问它。我的问题是当我必须使用CreateMailmailing,但必须传入两个作为对象的参数(邮件和EmailContent)时。这是来自stormpost(pulsepoint)的,如果有人有这方面的经验,我将不胜感激。下面是我正在使用ColdFusion进行的wsdl和SOAP调用。同样,这个SOAP调用工作正常,但不确定如何模仿它并使用createEmailMail方法将两个对象作为参数的SOAP方法调用,soap,coldfusion,wsdl,Soap,Coldfusion,Wsdl,我正在执行一个SOAP调用,以从下面的wsdl访问getMailingReports方法,并且可以很好地访问它。我的问题是当我必须使用CreateMailmailing,但必须传入两个作为对象的参数(邮件和EmailContent)时。这是来自stormpost(pulsepoint)的,如果有人有这方面的经验,我将不胜感激。下面是我正在使用ColdFusion进行的wsdl和SOAP调用。同样,这个SOAP调用工作正常,但不确定如何模仿它并使用createEmailMail方法 fakel
fakelogin
伪造密码
#dateFormat(arguments.from,“yyyy-mm-dd”)#T00:00:00.000
#dateFormat(arguments.to,“yyyy-mm-dd”)#T23:00:00.000
邮寄
电子邮件
0
#arguments.numRowsReturned#
我一直在学习SOAP和CF。我强烈建议进行测试。它毫无问题地解析出了一个示例CreateMailmailing请求。任何有问号的地方都是要将值写入DB的地方
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.web.stormpost.skylist.com">
<soapenv:Header>
<authInfo xsi:type="soap:authentication" xmlns:soap="http://skylist.com/services/SoapRequestProcessor">
<!--You may enter the following 2 items in any order-->
<username xsi:type="xsd:string">?</username>
<password xsi:type="xsd:string">?</password>
</authInfo>
</soapenv:Header>
<soapenv:Body>
<ser:createEmailMailing soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<mailing xsi:type="soap:Mailing" xmlns:soap="http://skylist.com/services/SoapRequestProcessor">
<!--You may enter the following 37 items in any order-->
<title xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</title>
<externalID xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</externalID>
<comment xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</comment>
<protocol xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</protocol>
<campaignID xsi:type="xsd:int">?</campaignID>
<brandID xsi:type="xsd:int">?</brandID>
<listID xsi:type="xsd:int">?</listID>
<conditionOperator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</conditionOperator>
<condition1Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition1Column>
<condition1Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition1Operator>
<condition1Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition1Value>
<condition2Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition2Column>
<condition2Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition2Operator>
<condition2Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition2Value>
<condition3Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition3Column>
<condition3Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition3Operator>
<condition3Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition3Value>
<condition4Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition4Column>
<condition4Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition4Operator>
<condition4Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition4Value>
<condition5Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition5Column>
<condition5Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition5Operator>
<condition5Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition5Value>
<maxRecipients xsi:type="xsd:int">?</maxRecipients>
<seeds xsi:type="soap:ArrayOf_soapenc_string"/>
<blockDomains xsi:type="soap:ArrayOf_soapenc_string"/>
<purgeLists xsi:type="soap:ArrayOf_xsd_int"/>
<purgeSuppressionLists xsi:type="soap:ArrayOf_xsd_int"/>
<queueTime xsi:type="xsd:dateTime">?</queueTime>
<trackType xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</trackType>
<openTrackType xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</openTrackType>
<clickStreamType xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</clickStreamType>
<advertiserName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</advertiserName>
<unsubReportsAddress xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</unsubReportsAddress>
<unsubReportsSize xsi:type="xsd:int">?</unsubReportsSize>
<priority xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</priority>
<additionalLists xsi:type="soap:ArrayOf_xsd_int"/>
</mailing>
<content xsi:type="soap:EmailContent" xmlns:soap="http://skylist.com/services/SoapRequestProcessor">
<!--You may enter the following 16 items in any order-->
<subject xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</subject>
<fromEmail xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</fromEmail>
<fromName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</fromName>
<toEmail xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</toEmail>
<toName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</toName>
<replyToEmail xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</replyToEmail>
<replyToName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</replyToName>
<charset xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</charset>
<encoding xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</encoding>
<htmlContent xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</htmlContent>
<textContent xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</textContent>
<unsubContentID xsi:type="xsd:int">?</unsubContentID>
<replyContentID xsi:type="xsd:int">?</replyContentID>
<headerContentID xsi:type="xsd:int">?</headerContentID>
<footerContentID xsi:type="xsd:int">?</footerContentID>
<forwardToFriendContentID xsi:type="xsd:int">?</forwardToFriendContentID>
</content>
</ser:createEmailMailing>
</soapenv:Body>
</soapenv:Envelope>
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
您还需要更改其中一个参数,例如:
<cfhttpparam type="header" name="SOAPAction" value="createEmailMailing">
我一直在学习SOAP和CF。我强烈建议进行测试。它毫无问题地解析出了一个示例CreateMailmailing请求。任何有问号的地方都是要将值写入DB的地方
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.web.stormpost.skylist.com">
<soapenv:Header>
<authInfo xsi:type="soap:authentication" xmlns:soap="http://skylist.com/services/SoapRequestProcessor">
<!--You may enter the following 2 items in any order-->
<username xsi:type="xsd:string">?</username>
<password xsi:type="xsd:string">?</password>
</authInfo>
</soapenv:Header>
<soapenv:Body>
<ser:createEmailMailing soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<mailing xsi:type="soap:Mailing" xmlns:soap="http://skylist.com/services/SoapRequestProcessor">
<!--You may enter the following 37 items in any order-->
<title xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</title>
<externalID xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</externalID>
<comment xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</comment>
<protocol xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</protocol>
<campaignID xsi:type="xsd:int">?</campaignID>
<brandID xsi:type="xsd:int">?</brandID>
<listID xsi:type="xsd:int">?</listID>
<conditionOperator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</conditionOperator>
<condition1Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition1Column>
<condition1Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition1Operator>
<condition1Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition1Value>
<condition2Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition2Column>
<condition2Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition2Operator>
<condition2Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition2Value>
<condition3Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition3Column>
<condition3Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition3Operator>
<condition3Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition3Value>
<condition4Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition4Column>
<condition4Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition4Operator>
<condition4Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition4Value>
<condition5Column xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition5Column>
<condition5Operator xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition5Operator>
<condition5Value xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</condition5Value>
<maxRecipients xsi:type="xsd:int">?</maxRecipients>
<seeds xsi:type="soap:ArrayOf_soapenc_string"/>
<blockDomains xsi:type="soap:ArrayOf_soapenc_string"/>
<purgeLists xsi:type="soap:ArrayOf_xsd_int"/>
<purgeSuppressionLists xsi:type="soap:ArrayOf_xsd_int"/>
<queueTime xsi:type="xsd:dateTime">?</queueTime>
<trackType xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</trackType>
<openTrackType xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</openTrackType>
<clickStreamType xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</clickStreamType>
<advertiserName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</advertiserName>
<unsubReportsAddress xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</unsubReportsAddress>
<unsubReportsSize xsi:type="xsd:int">?</unsubReportsSize>
<priority xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</priority>
<additionalLists xsi:type="soap:ArrayOf_xsd_int"/>
</mailing>
<content xsi:type="soap:EmailContent" xmlns:soap="http://skylist.com/services/SoapRequestProcessor">
<!--You may enter the following 16 items in any order-->
<subject xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</subject>
<fromEmail xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</fromEmail>
<fromName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</fromName>
<toEmail xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</toEmail>
<toName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</toName>
<replyToEmail xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</replyToEmail>
<replyToName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</replyToName>
<charset xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</charset>
<encoding xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</encoding>
<htmlContent xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</htmlContent>
<textContent xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</textContent>
<unsubContentID xsi:type="xsd:int">?</unsubContentID>
<replyContentID xsi:type="xsd:int">?</replyContentID>
<headerContentID xsi:type="xsd:int">?</headerContentID>
<footerContentID xsi:type="xsd:int">?</footerContentID>
<forwardToFriendContentID xsi:type="xsd:int">?</forwardToFriendContentID>
</content>
</ser:createEmailMailing>
</soapenv:Body>
</soapenv:Envelope>
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
您还需要更改其中一个参数,例如:
<cfhttpparam type="header" name="SOAPAction" value="createEmailMailing">
你在使用哪个版本的ColdFusion?嘿,Evik James,我在使用CF9你在使用哪个版本的ColdFusion?嘿,Evik James,我在使用CF9