[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fw: RPG calling a web service / HTTP 1.1 500 Internal Server Error, here is the attached code
- To: ftpapi@xxxxxxxxxxxxx
- Subject: Re: Fw: RPG calling a web service / HTTP 1.1 500 Internal Server Error, here is the attached code
- From: Michael Tierney <miketinternet@xxxxxxxxx>
- Date: Thu, 14 Jul 2005 10:45:45 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fRzkdYSNW3q4Oyw0STOo9+JfzLUGupCdHAosgGLFoBlCuIxpwQZnSvnkOQHoVjtmpkXWpg+bvOM5v4npFoGeqBdKU9UUS+hwuS5aDHC/wV7siznuZEzweq9RknsDv48no8Qs4D6dLlyg0vnGhbw3sc1dWWklwWUsjZ+OYBtOtB4= ;
- In-reply-to: <20050714071110.D19401@grungy.dstorm.net>
- Reply-to: ftpapi@xxxxxxxxxxxxx
- Sender: owner-ftpapi@xxxxxxxxxxxxx
Sender: Michael Tierney <miketinternet@xxxxxxxxx>
Sorry for not sending operational code, the
system police here do not have much public stuff
available for us to use.
I will have to talk with the web gang and see
what they can do.
Am I heading in the correct direction ? I am
trying to send an HTTP string out to a web
service from RPG and get back a reply of success
or failure. I would love to use an XML parser of
some sort for the data and tag it to the end of
the HTML string.
If there is a more simple example you have I will
definitely try it.
Thanks for the help
--- Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:
> Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
>
>
> Michael,
>
> I can't run your code to reproduce the problem
> because you've included
> statement numbers on the left-hand side of each
> source statement.
>
> Just glancing at your code, I don't see
> anything that's wrong with it.
> But, I'm not an expert at SOAP.
>
> The error message "500 Internal Server Error"
> means that the web server
> (and not HTTPAPI) had a problem with your
> request. While it's possible
> that HTTPAPI somehow screwed up the request,
> it's also possible that the
> data that you're sending isn't exactly correct.
>
> What would help diagnose this would be some
> info from the server about
> what's causing a problem. Do you have a contact
> on the server side who
> might be able to check it's logs and tell you
> what the cause of the error
> is?
>
> ---
> Scott Klement http://www.scottklement.com
>
> On Wed, 13 Jul 2005, Michael Tierney wrote:
>
> > Sender: Michael Tierney
> <miketinternet@xxxxxxxxx>
> >
> > Here it is from cut and paste:
> >
> >
> > 100 h DFTACTGRP(*NO) ACTGRP(*NEW)
> > BNDDIR('LIBHTTP/HTTPAPI')
> > 200
> > 300 d/copy
> libhttp/qrpglesrc,httpapi_h
> > 400
> > 500 d rc s
> 10I
> > 0
> > 600 d msg s
> 52A
> > 700
> > 800 d AddElement PR
> 2056a
> > 900 d tag
> 256a
> > value
> > 1000 d string
> 1024a
> > 1100
> > 1200 d StartOfElement PR
> > 1300 d r
> > likeds(Response)
> > 1400 d depth
> 10I
> > 0 value
> > 1500 d name
> 1024A
> > varying const
> > 1600 d path
> 24576A
> > varying const
> > 1700 d attrs
> *
> > dim(32767)
> > 1800 d
> > const options(*varsize)
> > 1900
> > 2000 d EndOfElement PR
> > 2100 d r
> > likeds(Response)
> > 2200 d depth
> 10I
> > 0 value
> > 2300 d name
> 1024A
> > varying const
> > 2400 d path
> 24576A
> > varying const
> > 2500 d value
> 32767A
> > varying const
> > 2600 d attrs
> *
> > dim(32767)
> > 2700 d
> > const options(*varsize)
> > 2800
> > 2900 d Response ds
> > qualified
> > 3000 d ResCode
> 256A
> > 3100
> > 3200 d resp ds
> > likeds(Response)
> > 3300
> > 3400 * Field Definitions
> > 3500 d NameParm s
> 10
> >
> > 06/24/05
> > 3600
> > 3700 d custinfo s
> 1024
> >
> > 06/24/05
> > 6600
> > 6800 d addtaskstring s
> 24576
> > 6900 d requeststring s
> 24576
> > 7000 d soapaction s
> 256
> > 7100 d soapheader s
> 1024
> > 7200 d soaptrailer s
> 1024
> > 7300 d lengths s
> 10
> > 0
> > 7400
> > 7500 d url c
> > 'http:-
> > 7600 d
> > //bospcshantanu.gct.com-
> > 06/24/05
> > 7700 d
> > /MikeTest/MikeTest.asmx'
> > 06/24/05
> > 7800
> > 7900 c *entry plist
> > 8000 c parm
> > NameParm
> > 06/24/05
> > 8100
> > 8200 * Get the string values needed
> for
> > the tags
> > 8300 c exsr
> > getValues
> > 8400
> > 8500 * Build the string needed for
> the
> > SOAP call
> > 8600 c exsr
> > buildString
> > 8700
> > 8800 * send the the webservice string
> > 8900 c eval
> > lengths = %len(%trim(requestString)) + 1000
> > 9000 c eval rc
> =
> > http_url_post_xml(
> > 9100 c url
> > :
> > 9200 c
> > %addr(requeststring) :
> > 06/24/05
> > 9300 c
> > %len(%trim(requestString)) :
> > 9400 c
> > %paddr(StartOfElement) :
> > 9500 c
> > %paddr(EndOfElement) :
> > 9600 c
> > %addr(resp))
> > 06/24/05
> > 10100 c if rc
> <>
> > 1
> > 10200 c eval msg
> =
> > http_error
> > 10300 c dsply
> > msg
> > 10400 c endif
> > 10500
> > 10600 c eval
> *inlr
> > = *on
> > 10700 c return
> > 10800
> > 10900
> >
>
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > 11000 * Initialize SOAP document:
> > 11100
> >
>
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------