Hi Scott, 

Thanks for the 411...now I'm getting Bad Request (Invalid Header Name).
According to Microsoft's documentation, it seems as thought this means that
there is a linear white space between the HTTP request line and the starting
header. Here's the AII DOM & the @URL:

<@ASSIGN NAME="aiiDom" SCOPE="request" VALUE="<@DOM VALUE='<?xml
version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><ProcessLe
ad xmlns="http://edu.edmc.eLeads/leadServicePoster";><lead><vendorCode
xmlns="">COLONLINE</vendorCode><vendorLeadIdentifier
xmlns="">@@Market_MID</vendorLeadIdentifier><versionIdentifier
xmlns="">3</versionIdentifier><testCase xmlns="">Y</testCase><nameLast
xmlns=""><@ARG LASTNAME></nameLast><nameMiddle
xmlns=""></nameMiddle><nameFirst xmlns=""><@ARG
FIRSTNAME></nameFirst><nameSuffix xmlns=""></nameSuffix><addressLine1
xmlns=""><@FORMAT STR="<@ARG ADDRESS_1>"
FORMAT="case:word"></addressLine1><addressLine2 xmlns=""><@FORMAT STR="<@ARG
ADDRESS_2>" FORMAT="case:word"></addressLine2><addressCity xmlns=""><@ARG
CITY></addressCity><addressState xmlns=""><@ARG
STATE></addressState><addressZip xmlns=""><@ARG
ZIPCODE></addressZip><addressCountryCode xmlns=""><@ARG
COUNTRY_CODE></addressCountryCode><homePhone xmlns=""><@ARG
AREA_CODE_1>@@user$phone1</homePhone><workPhone
xmlns=""></workPhone><otherPhone xmlns=""></otherPhone><internationalPhone
xmlns="">1<@ARG AREA_CODE_1>@@user$phone1</internationalPhone><email
xmlns=""><@ARG EMAIL></email><bestTimeToCall xmlns=""><@ARG
TIME_TO_CALL></bestTimeToCall><highSchoolGradYear xmlns=""><@ARG
GRAD_YEAR></highSchoolGradYear><locationCode
xmlns="">@@request$SCHOOL_CODE</locationCode><educationCompleted
xmlns=""></educationCompleted><dateDegreeCompleted
xmlns=""></dateDegreeCompleted><studentVisaRequired
xmlns="">N</studentVisaRequired><countryCitizenship
xmlns=""></countryCitizenship><militaryStatus
xmlns=""></militaryStatus><areaOfInterest
xmlns=""></areaOfInterest><programOfInterest xmlns=""><@ARG
PROGRAM></programOfInterest><educationObjective
xmlns=""></educationObjective><inquiredBefore
xmlns="">N</inquiredBefore><sourceCode
xmlns="">COLOL</sourceCode><sourceDate
xmlns=""><@CURRENTDATE></sourceDate><sourceTime
xmlns=""><@CURRENTTIME></sourceTime><sourceTimeOffset
xmlns=""></sourceTimeOffset><sourceNumber
xmlns=""></sourceNumber><vendorAffiliate
xmlns=""></vendorAffiliate><comments xmlns=""></comments><preassignedAda
xmlns=""></preassignedAda><warmTransferResult
xmlns=""></warmTransferResult><other xmlns=""></other><validationResults
xmlns=""></validationResults><validationNotes
xmlns=""></validationNotes><validationMessage
xmlns=""></validationMessage></lead></ProcessLead></soap:Body></soap:Envelop
e>'>">

<@URL 
LOCATION='https://eleads.edmc.edu/eLeadsWebServicePost/LeadServicePoster.asm
x' USERAGENT='Witango <@VERSION><@PLATFORM><@CRLF>POST
/eLeadsWebServicePost/LeadServicePoster.asmx HTTP/1.1<@CRLF>Host:
eleads.edmc.edu<@CRLF>Content-Type: text/xml;
charset=utf-8<@CRLF>Content-Length:<@LENGTH STR="<@VAR
request$aiiDOM>"><@CRLF>SOAPAction:"http://edu.edmc.eLeads/leadServicePoster
"' POSTARGS='<@VAR aiiDOM>'>

Should I keep the <?XML...> tags in there, or should it be included into the
the USERAGENT aspect of the <@URL>? Once that is done, I'm assuming that the
contents of 'aiiDOM' need to be presented in the POSTARGS attribute?

Thanks again for your guidance!

Kaustav
On 10/2/06 11:54 AM, "Scott Cadillac" <[EMAIL PROTECTED]> wrote:

> Kaustav, that is about the worst idea I ever heard.
> 
> Fortunately, you're not to blame for the inadequacies of the system, or who
> you work for. 
> 
> The trick is to put the content-length in the USERAGENT attribute of the
> <@URL> call, sort of
> like so:
> 
> USERAGENT='Witango <@VERSION> <@PLATFORM><@CRLF>Content-Length: <@LENGTH
> STR="<@VAR request$aiiDOM>">'
> 
> You can add all sorts of extra HTTP header properties to send via the
> USERAGENT attribute, as
> long as each is separated by a <@CRLF>. This includes your SoapAction
> property.
> 
> Hope that helps.
> 
> ~~~~~~~~~~~~~~~~~~~~
> Scott Cadillac,
> Xmlx Software
> 
> [EMAIL PROTECTED]
> (403) 254-5002 
> http://www.xmlx.net/
> 
> XML-Extranet
> P.O. Box 69006
> RPO Bridlewood SW
> Calgary, Alberta
> Canada T2Y 4T9
> ~~~~~~~~~~~~~~~~~~~~
> 
> 
> -----Original Message-----
> From: Kaustav Acharya <[EMAIL PROTECTED]>
> To: "[email protected]" <[email protected]>
> Date: Mon, 02 Oct 2006 11:39:02 -0700
> Subject: Witango-Talk: Can the <@URL> be assigned to a variable?
> 
>> Hi all, 
>> 
>> If the question makes little sense, it¹s because I¹m still figuring out
>> why
>> their server spits back ³Content-Length:Required² every time we post to
>> their server. The value is being assigned and everything looks fine,
>> but
>> it¹s chocking on that bit.
>> 
>> My boss figured it would be a good idea to basically write a loop and
>> keep
>> hitting the vendors server until it accepts it, and basically write out
>> to a
>> file/email what it contained. I know that the best way to figure out
>> what¹s
>> going on in the posting of information is to set the Detailed-Response
>> to
>> Œtrue¹. If that indeed is the case, then is it possible to store the
>> contents of the Œdetailedresponse¹ into a variable? Then I was going to
>> basically run a pattern search in that variable to see if it said
>> anywhere
>> ³Content-Length:Required² and have it continue until it doesn¹t any
>> more.
>> 
>> Is this is a good way to do it? Please let me know!
>> 
>> Thanks!
>> 
>> Kaustav
>> 
>> _______________________________________________________________________
>> _
>> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> 
> 
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to