[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: HTTPAPI
Thomas,
Thanks. I actually figured out what I needed to do after getting Scott's email yesterday.
Karl
-----Original Message-----
From: thomas.raddatz@xxxxxx [mailto:thomas.raddatz@xxxxxx]
Sent: Tuesday, November 25, 2008 12:39 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: HTTPAPI
Karl,
As Scott already mentioned there is no piece of code that attempts to read
the attributes. Basically you can read the attributes like this:
B01 if (path = '/Envelope/Body/GetReportResult/VehiclePerformance');
B02 select;
when name = 'Entry';
count = 1;
B03 dow attrs(count) <> *NULL;
attrname = %str(attrs(count));
count = count + 1;
attrval = %str(attrs(count));
count = count + 1;
E03 enddo;
E02 endsl;
E01 endif;
Attached you will find a slightly modifed version of EXAMPLE15 that I used
to pare your XML response message. It produced the following spooled file
output:
<Entry
Id=113663
TruckName=DRAGULA
DriverLogon=grandpa
Date=2008-11-01T12:00:00
CA=18629
CB=468209
CC=51
CD=51
CF=39826
CG=75948
CH=107
CI=106
CM=0
CN=0
CO=0
CP=0
DA=0
DB=0
DC=0
DD=0
FA=0
FD=0
FE=0
FF=0
FG=0
FH=0
FI=0
FJ=0
FK=0
FM=0
/>
<Entry
...
Thomas.
(See attached file: EXAMPLE15B.rpgle)
ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 24.11.2008 16:35:42:
> Scott,
>
> I appreciate you taking the time to look at the problem I'm having. I'm
> attaching a copy of the actual program I'm using. Some lines are
> commented out since I haven't finished testing the retrieving of the XML
> document.
>
> Let me know if you see any problem with the code.
>
> Thanks,
> Karl
>
> -----Original Message-----
> From: Scott Klement [mailto:sk@xxxxxxxxxxxxxxxx]
> Sent: Thursday, November 20, 2008 2:11 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: HTTPAPI
>
> Hi Karl,
>
> I tried parsing your SOAP response document and I didn't have any
> trouble. Is it possible that it's parsing the data correctly, and you're
>
> simply forgetting to check the "attrs" parameter that contains the
> attributes?
>
> Or, what symptoms are you encountering? I tried your document, and I
> got all of the attributes and self-closing tags without any problem...
>
>
> Karl Woods wrote:
> > Scott,
> >
> > The attached document 'xml version2' contains the request from my
> > program (with a few changes to password, etc.) 'VehiclePerformance2'
> is
> > the response. The returned data starts with '<Entry Id='. I get
> 'Entry'
> > but the rest of the data is not returned.
> >
> > Thanks,
> > Karl
> >
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
> [Anhang "getvehprf.txt" gelöscht von Thomas Raddatz/GfD/DE]
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a criminal
offence. Please delete if obtained in error and email confirmation to the sender.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------