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

RE: Consultation http



Luis,

You are not being helpful...

Show us what you have for code and show us your debug log.



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Lluis Alonso
Sent: Friday, July 15, 2011 1:43 AM
To: HTTPAPI and FTPAPI Projects
Cc: HTTPAPI and FTPAPI Projects; ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Consultation http

Let me give an example: retrieve the weather in Barcelona (my city).

Using soapUI software with the following request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
" xmlns:web="http://www.webserviceX.NET";>
   <soapenv:Header/>
   <soapenv:Body>
      <web:GetWeather>
         <!--Optional:-->
         <web:CityName>Barcelona / Aeropuerto</web:CityName>
         <!--Optional:-->
         <web:CountryName>Spain</web:CountryName>
      </web:GetWeather>
   </soapenv:Body>
</soapenv:Envelope>


The result is the following:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema";>
   <soap:Body>
      <GetWeatherResponse xmlns="http://www.webserviceX.NET";>
         <GetWeatherResult><![CDATA[<?xml version="1.0" 
encoding="utf-16"?>
<CurrentWeather>
  <Location>Barcelona / Aeropuerto, Spain (LEBL) 41-17N 002-04E 
6M</Location>
  <Time>Jul 15, 2011 - 02:00 AM EDT / 2011.07.15 0600 UTC</Time>
  <Wind> from the NW (320 degrees) at 5 MPH (4 KT) (direction 
variable):0</Wind>
  <Visibility> greater than 7 mile(s):0</Visibility>
  <SkyConditions> partly cloudy</SkyConditions>
  <Temperature> 68 F (20 C)</Temperature>
  <DewPoint> 66 F (19 C)</DewPoint>
  <RelativeHumidity> 93%</RelativeHumidity>
  <Pressure> 30.12 in. Hg (1020 hPa)</Pressure>
  <Status>Success</Status>
</CurrentWeather>]]></GetWeatherResult>
      </GetWeatherResponse>
   </soap:Body>
</soap:Envelope>


This is just what I need to recover from my RPG program.


Thank you.




Lluís Alonso
Dpto. Informática
Grupo Vichy Catalan



De:     Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
Para:   HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Fecha:  14/07/2011 17:55
Asunto: RE: Consultation http
Enviado por:    ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx



Yes we can. Post your real question with the debug file and source code 
and we will get you on track.

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [
mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Lluis Alonso
Sent: Thursday, July 14, 2011 1:33 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Consultation http

Hello Everyone,

I recently started working on AS/400 RPG features from http and need help.

I send instruccions to a Web Services using SOAP with the intention of 
recovering 2 thing:
- a value.
- xml code used by the Web Services to save the IFS.

I managed to recover the value, but I failed to retrieve the xml code.

Can Anyone help me?


Thank you very much!




Lluís Alonso
Dpto. Informática
Grupo Vichy Catalan










-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------












-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------