I hate to beat this into the ground, but why won't this type of XML
passing work with UPS?  We started looking at the Java example they
sent.  It works, but it sure is complicated!


<form method="post" action="https://www.ups.com/ups.app/xml/Track"; >

<input type="text" name="xml" value="
<?xml version=&quot;1.0&quot;?>
<AccessRequest xml:lang=&quot;en-US&quot;>
   <AccessLicenseNumber>xxxxxxxxx</AccessLicenseNumber>
   <UserId>xxxxxxxxxxx</UserId>
   <Password>xxxxxxxxxxxxxxxxx</Password>
</AccessRequest>
<?xml version=&quot;1.0&quot;?>
<TrackRequest xml:lang=&quot;en-US&quot;>
  <Request>
        <TransactionReference>
          <CustomerContext>Example 1</CustomerContext>
          <XpciVersion>1.0001</XpciVersion>
        </TransactionReference>
    <RequestAction>Track</RequestAction>
    <RequestOption />
  </Request>
  <TrackingNumber>1Z12345E0390515214</TrackingNumber>
</TrackRequest>
">

<input type="submit">
</form>





> -----Original Message-----
> From: Ben Densmore [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 1:06 PM
> To: CF-Talk
> Subject: RE: MX and UPS XML
> 
> Use 2 <cfhttp param="file"> then call your trackrequest xml file and
> accessrequest file. But I don't think you can use <cfhttp> with UPS
XML
> Track, from what I have been told cfhttp doesn't work with SSL, you
need
> to use a raw socket.
> 
> Ben
> 
> -----Original Message-----
> From: Chad [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 1:00 PM
> To: CF-Talk
> Subject: RE: MX and UPS XML
> 
> I still cannot get this thing to work!
> 
> If I put two <cfhttpparam type="XML"...> CF throws an error and says I
> can only have one
> 
> How can I concatenate the two <CFXML> vars?  Will a simple &
concatenate
> the two structures together so I can use only one <cfhttpparam
> type="XML>?
> 
> 
> 
> 
> > -----Original Message-----
> > From: Chad [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 15, 2002 2:41 PM
> > To: CF-Talk
> > Subject: RE: MX and UPS XML
> >
> > The MX documentation mentions nothing about a <cfhttpparam
> > type="XML"...>
> >
> > Are you sure this exists?
> >
> >
> >
> > > -----Original Message-----
> > > From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, November 15, 2002 11:00 AM
> > > To: CF-Talk
> > > Subject: RE: MX and UPS XML
> > >
> > > Chad,
> > >
> > > CFHTTP will encode the form field and UPS will not read it
> correctly.
> > > There
> > > is a type "xml" in CFMX instead of formfield.
> > >
> > > -mk
> > >
> > > -----Original Message-----
> > > From: Chad [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, November 15, 2002 9:41 AM
> > > To: CF-Talk
> > > Subject: MX and UPS XML
> > >
> > >
> > > OK correct me if I am wrong.
> > >
> > > To use the UPS XML I need to use the following to connect to the
UPS
> > > server:
> > >
> > > <cfhttp url="https://www.ups.com/ups.app/xml/Track"; method="POST"
> > > port="443">
> > >
> > > I also need the following to post the XML to the UPS server:
> > > <cfhttpparam type="FORMFIELD" name="XML" value="#variables.xml#">
> > >
> > > Then to return the results I just use:
> > > #cfhttp.filecontent#
> > >
> > > OK if I am right so far.  How should I prep the XML to send to
UPS?
> > > Should I use <cfxml>?
> > >
> > > Here is the code I have so far for a custom tag, but I keep
getting
> > this
> > > error from UPS: 0 Failure Hard 10002 The XML document is well
formed
> > but
> > > the document is not valid TrackRequest
> > >
> > > <cfparam name="Attributes.Licensenumber" default="">
> > > <cfparam name="Attributes.UserId" default="">
> > > <cfparam name="Attributes.Password" default="">
> > > <cfparam name="Attributes.TrackingNumber" default="">
> > >
> > > <cfxml variable="xml">
> > > <AccessRequest xml:lang = "en-US">
> > >
> > >
> >
>
<AccessLicenseNumber><cfoutput>#Attributes.licensenumber#</cfoutput></Ac
> > > cessLicenseNumber>
> > >   <UserId><cfoutput>#Attributes.UserId#</cfoutput></UserId>
> > >   <Password><cfoutput>#Attributes.Password#</cfoutput></Password>
> > > </AccessRequest>
> > > </cfxml>
> > > <cfxml variable="xml2">
> > > <TrackRequest xml:lang="en-US">
> > >   <Request>
> > >   <TransactionReference>
> > >           <CustomerContext></CustomerContext>
> > >           <XpciVersion>1.0001</XpciVersion>
> > >   </TransactionReference>
> > >   <RequestAction>Track</RequestAction>
> > >   <RequestOption></RequestOption>
> > >   </Request>
> > >
> > >
> >
>
<ShipmentIdentificationNumber><cfoutput>#Attributes.TrackingNumber#</cfo
> > > utput></ShipmentIdentificationNumber>
> > > </TrackRequest>
> > > </cfxml>
> > >
> > > <cfhttp url="https://www.ups.com/ups.app/xml/Track"; method="POST"
> > > port="443" resolveurl="false">
> > >   <cfhttpparam type="FORMFIELD" name="XML"
> > > value="#variables.xml#">
> > >   <cfhttpparam type="FORMFIELD" name="XML"
> > > value="#variables.xml2#">
> > > </cfhttp>
> > >
> > > <cfset caller.response = "#cfhttp.filecontent#">
> > >
> > >
> > >
> > >
> >
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to