Hi Robert, Try the following, using the POSTARGS attribute of @URL (requires Tango SP1 at least).
<@assign local$tmpXML value="<@dom value='<@url location="https://wwwcie.ups.com/ups.app/xml/Rate" from="someone<@CRLF>Content-Type: text/xml" postargs="<myxml></myxml>">'>"> Typically this works without using the <@URLENCODE> metatag because an XML over HTTP post is not expected, by the receiving server, to be encoded. Try it with and without the tag, if you're still having problems. I also recommend including the FROM attribute because it allows you insert an extra HTTP Request Header entry ( Content-Type: text/xml ) so that the receiver knows to expect XML. Also, I noticed that the XML you are trying to send contains 2 XML documents (2 root elements) - this is a no-no. Only one root element is allowed, to qualify your content as XML. Hope this helps. Cheers..... Scott Cadillac http://xml-extra.net ----- Original Message ----- From: Robert Gex Barfield Jr. To: Chris Millet Sent: Tuesday, February 18, 2003 3:00 PM Subject: Witango-Talk: Connecting to UPS Shipping Rates WITH XML To all who can help, I am trying to hook up to UPS Shipping Rates to no avail. I seem to be connecting to the server, but am not getting back the necessary XML results. The whole <@ASSIGN <@DOM <@URL makes sense to me, but I haven't had much experience with this way of sending and receiving data. I have looked at all XML/UPS issues on Witango.ws. All emails were very helpful, but unfortunately none have gotten me over the hump. Any assistance would be greatly appreciated. I have attached the TAF content below. Thanks again, Robert <@assign local$tmpXML value="<@dom value='<@url location="https://wwwcie.ups.com/ups.app/xml/Rate?<@urlencode str='<AccessRequest xml:lang="en-US"> <AccessLicenseNumber>XXXXXXXXXXXX</AccessLicenseNumber> <UserId>XXXXX</UserId> <Password>XXXXXX</Password> </AccessRequest> <?xml version="1.0"?> <AccessRequest xml:lang="en-US"> <AccessLicenseNumber>XXXXXXXXXXXXXXXX</AccessLicenseNumber> <UserId>XXXXXX</UserId> <Password>XXXXXX</Password> </AccessRequest> <?xml version="1.0"?> <RatingServiceSelectionRequest xml:lang="en-US"> <Request> <TransactionReference> <CustomerContext>Rating and Service</CustomerContext> <XpciVersion>1.0001</XpciVersion> </TransactionReference> <RequestAction>Rate</RequestAction> <RequestOption>rate</RequestOption> </Request> <PickupType> <Code>01</Code> </PickupType> <Shipment> <Shipper> <Address> <PostalCode>30076</PostalCode> </Address> </Shipper> <ShipTo> <Address> <PostalCode>30041</PostalCode> <CountryCode>US</CountryCode> </Address> </ShipTo> <Service> <Code>03</Code> </Service> <Package> <PackagingType> <Code>02</Code> <Description>Package</Description> </PackagingType> <Description>Rate Shopping</Description> <PackageWeight> <Weight>33</Weight> </PackageWeight> </Package> <ShipmentServiceOptions/> </Shipment> </RatingServiceSelectionRequest>'>">'>"> ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
