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

RE: http_url_post_xml problem



Sender: "Mike Rybicki" <Mike.Rybicki@xxxxxxxxx>

I am only aware of two ways that we have setup for sending email from an
RPG program, through the web service that I mentioned and an older RPG
program that has an even more restricted message body length of 256
characters. Any suggestions to web sites with more options or better
ways to do this?

When I increase the size of the message fields rc returns 500 in the
program.

What do you know...I was just doing some testing and increased
EmailRequest and postData sizes and sent a message successfully that was
4000 characters.
I am sure I tried that before without any success. I will keep working
at it.

Any other thoughts or suggestions would be appreciated.

Thanks 

Michael Rybicki Ext. 2116
Information Technology
Roehl Transport Inc.

-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx] On
Behalf Of Scott Klement
Sent: Monday, March 20, 2006 11:30 AM
To: ftpapi@xxxxxxxxxxxxx
Subject: Re: http_url_post_xml problem

Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


> I am using http_url_post_xml to pass data to a web service for sending
> email.

Why on earth would you use a webservice for sending e-mail?  Aren't you 
allowed to send mail directly?

> Below is the list of parameters I am sending. Originally message
> was one field, but I was unable to get this to work with the length
over
> 999. Just as a test I split the message body in 2, but am only able to
> get each one to 850 otherwise I receive an error. The problem is the
> message body is often greater then 1700 characters. I also tried
upping
> the length of EmailRequest and postData, but did not seem to help. Is
> there a limitation on the length of a variable?

HTTPAPI supports POST data up to 2.1gb.  (Yes, that's gigabytes)  The 
largest size variable you can declare in RPG is 65535 chars.


> Or is there an overall limitation to the entire length of data passed?

> Or am I just missing something else?

Hard to say, you really haven't provided any information except that you

can't exceed 850 characters.  The only code you provided was a bunch of 
variable definitions, that really didn't tell me anything.

You said you were receiving an error when the data exceeded 850 
characters. It might help to post that error message.

Or, at least tell me how to reproduce the problem.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------