[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Formatting an XML request and receiving the XML response



Scott,

As always, thanks for your efforts.

To get the USPS service working, we just need to figure out how to encode the string. I have a compiled working program in my test library and I had to "hand encode" the string. That is what I was last working on. Trying to figure out how to programmatically encode the request. I suspect I missed one call maybe to do the actual encoding?

The service for address verification is pretty straight forward (a GET works fine). You also already have XML parsing examples that we can use to pull the data off the back end.

Mike Krebs 

> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
> Sent: Monday, June 08, 2009 2:35 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: Formatting an XML request and receiving the XML response
> 
> Hi Rich,
> 
> Well, I've never used the web services you mention, so it's really
> difficult to spoon-feed you.  Please understand that all web services
> are different and have their own requirements.  So being familiar with
> HTTPAPI is not enough for me to tell you how to code your program.
> 
> You didn't say too much about which web service you're trying to use...
>   You said something about USPS... so I did some Googling, and I
> discovered a USPS site that appears to be the home for what you're
> trying to do.
> 
> They require you to sign up in order to do anything.  They want all
> sorts of business contact info.  (My business doesn't need these
> tools... so I'm calling my business "ScottKlement.com" -- which isn't
> techically a business -- I hope they let me sign up.)   Since my goal
> will be to publicly post an example of their API, I told them I'm a
> developer who will redistribute the code.  Not exactly accurate, but
> it's the closest choice they had.
> 
> Now I'm waiting for them to send back an e-mail with my registration
> info.
> 
> Please note that I've already put more than an hour of my time into
> this
> -- and I haven't even begun coding yet.  The time I spend doing this
> will cut into time with my family, and will possibly delay an article
> I'm writing for System iNEWS, as well as my newsletter that needs to be
> published on Thursday.  I'm telling you this because I want you to
> fully
> appreciate what I'm going through to help you -- at no charge.
> 
> 
> 
> Rich Kitterman wrote:
> >    Hi Scott,
> >    Sorry, as I've said before, this is new enough to me that I really
> >    don't know what I'm doing.  Thanks for pointing those items out.
> I
> >    understand what you're telling me and it makes sense, but I'm not
> sure
> >    HOW to send the appropriate elements of the URL to the encoder.
> I've
> >    spent some time looking over the httpapi url encoding routines,
> and
> >    could really use an example of what you're describing.  I think
> would
> >    make much more sense to me if I could see it in code.  If you
> wouldn't
> >    mind doing a little spoon-feeding, I'd be grateful, and I'm
> confident
> >    I'll be able to pick up on the concept...
> >    Thanks!
> >    Rich
> >
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------