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

Re: Help with HTTP API



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


Hello Jeffreehy,


The original sample that we helped you with used a "web form" input. However, this example uses SOAP.

To use SOAP, you'll need to create an XML document (in SOAP format) and send that. You do NOT want to use http_url_encoder (and related routines).

---
Scott Klement  http://www.scottklement.com


On Fri, 24 Feb 2006, Jeffreehy Talavera wrote:


I forgot, attached is the WSDL file...aretornarem.xml

On 2/24/06, Jeffreehy Talavera <jeffreehy@xxxxxxxxx> wrote:

Hi listers,


I' using the Scott's HTTP API to consum a webservice built in .NET with a
very good success, and now it is in produccion,
orking very fine, Today I was asked to try with another one, built with
Genexus , but when I try to call it with the POST I got the following
error:
              *The data at the root level is invalid. Line 1, position *
**
here is my POST
eval      rc=http_url_post(

'*http://150.150.60.42'+*

'/aretornarem.aspx'+

'/Execute'

: data

: size

: '/tmp/httptest.html'

: HTTP_T

: HTTP_TIMEOUT

: HTTP_USERAGENT
: 'application/x-www-form-urlencoded')

the other question is what PROC do I have to use is I need to send in the
post an Integer value and not an string value, like this:
c                   callp     http_url_encoder_addvar_s(
c                                Enc  : 'iCustomerNumber':
c                                1234)

Thanks.

Jeff Talavera



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