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

RE: HTTPAPI ver 1.13.1



Sorry for the confusion.

 

I'm all set now - but I tried to clarify anyhow.

 

 

 

M1676 (it's really like "M16778216") is the single variable that I send to the web service in a SOAP document (see the meterNo below). In return, the web service returns to me the electric meter readings I'm asking for. I've had this working (testing) for a couple of weeks.

 

   '<?xml version="1.0" encoding="utf-8"?>'                        

 + '<soap:Envelope'                                                

 + ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'        

 + ' xmlns:xsd="http://www.w3.org/2001/XMLSchema"'                  

 + ' xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'      

 + ' <soap:Header>'                                                

 + ' <MultiSpeakMsgHeader Version="3.0"'                           

 + ' Company="Unitil"'                                             

 + ' CSUnits="other"'                                              

 + ' xmlns="http://www.multispeak.org/Version_3.0" />'             

 + ' </soap:Header>'                                               

 + ' <soap:Body>'                                                  

 + '   <GetReadingsByMeterNo'                                      

 +    ' xmlns="http://www.multispeak.org/Version_3.0">'            

 + '   <meterNo>' + %trim(MeterIn) + '</meterNo>'                  

 + '   <startDate>' + '2006-03-01T00:00:01-06:00' + '</startDate>' 

 + '   <endDate>' + '2006-03-02T23:59:00-06:00' + '</endDate>'     

 + '   </GetReadingsByMeterNo>'                                     

 + ' </soap:Body>'                                                 

 + ' </soap:Envelope>';                                            

                                                                   

 

 

I'm using http_url_post_xml().

 

I can see the M... number and the returned readings in the debug file that is written to /tmp folder.

 

It seems the service was down for a short time this morning - and It's working fine now. This is a 'demo' site for a vendor of ours.

I've continued to run examples and it appears that the debug file is being appended to.

 

 

 

 

-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Wednesday, April 05, 2006 12:24 PM
To: 'ftpapi@xxxxxxxxxxxxx'
Subject: Re: HTTPAPI ver 1.13.1

 

Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>

 

 

I'm not following you.  What is M1676?  What is M1678?  What do they have

to do with HTTPAPI?

 

Are you using the persistent HTTP functions?  Or are you calling

HTTP_url_post() or... what are you doing?    If you're calling the

persistent functions, the debug log won't be fully written until you call

http_persist_close().

 

---

Scott Klement  http://www.scottklement.com

 

On Wed, 5 Apr 2006, Charette, William wrote:

 

> Follow-up to me own question (below).

>

> The server is now responding.  And the change in my input values is working

> - it's the debug log that's taking long to write. And because the server was

> not responding I also thought my parameter was not changing.

>

> I would still like responses to my EOJ question, and how long it might take

> for the debug txt to be refreshed.

>

> (Scott: THIS is a great feature/program. I can't tell you how timely this

> was for me. Thanks! I always enjoy your articles in iSeriesNews also.)

>

>

>

>

>

>

>

>

>

>

>

>

>

> Do I need to force some kind of EOJ to clear memory?

>

> When I run my program with a single input value (IE, "M1676"), the second

> time I run it with (M1678), the debug log shows (M1676) again.

>

> (Possibly the txt file is not being written as quickly as I thought.)

>

> Also, is there a time lapse before the HTTPAPI_DEBUG.TXT is written?

>

> Coincidently, I'm getting a "500 Internal Server Error" with a SOAP document

> that was working last week!  I've emailed the company with the web services

> about that.

>

-----------------------------------------------------------------------

This is the FTPAPI mailing list.  To unsubsribe from the list send mail

to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr

-----------------------------------------------------------------------