[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Rif: RE: Problem with POST on a REST web service
Thank you to every one, i tryed to use http_url_post_xml like EXAMPLE16
and before make the call to http_url_post_xml i call
HTTP_setCCSIDs(1252:1144); where 1252 is the CCSID of latin italian and
1144 is the CCSID of italian on Iseries.
The result it is the same, i reach the ws server but i am not able to
pass the value of the POST variable (string xml) to the server.
Here the debug list
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R1M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: FRANZINI.IT
DNS server found: 8.8.8.8
DNS server found: 192.168.0.199
DNS server found: 192.168.0.203
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /personal/ws/offerte_in.php HTTP/1.1
Host: develop.ferritalia.it
User-Agent: http-api/1.29
Content-Type: text/xml
SOAPAction: [1]http://develop.ferritalia.it/personal/ws/offerte_in.php
Content-Length: 248
senddoc(): entered
<raccolta><doc_id>2015-OFF-0006544</doc_id><totale_righe>0002</totale_r
ighe><note></note><riga num
riga="1"><cod_art>96814</cod_art><qta>5,00</qta></riga><riga num
riga="2"><cod_art>96815</cod_art><qta>5,00</qta></riga>
</raccolta>
recvresp(): entered
HTTP/1.1 200 OK
Content-Type: text/xml
Server: Microsoft-IIS/7.5
X-Powered-By: PHP/5.4.15
Date: Tue, 29 Sep 2015 10:23:44 GMT
Content-Length: 98
SetError() £13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 98
header_load_cookies() entered
recvdoc(): entered
SetError() £0:
<?xml version="1.0"?>
<return><message>Errore l'offerta non
esiste.</message><xml></xml></return>
http_close(): entered
Please help me, i would like to make all the work from Iseries and
dont'use third part software outside from iseries.
thank you
Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
Inviato da: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
29/09/2015 01:10
Per favore, rispondere a HTTPAPI and FTPAPI Projects
Per: HTTPAPI and FTPAPI Projects
<ftpapi@xxxxxxxxxxxxxxxxxxxxxx>,
Cc:
Oggetto: RE: Problem with POST on a REST web service
Even though you can GET no problem...
Even though your XML appears to be good...
Even though your request does not appear to have any variant
characters...
I see variant characters in your debug listing and ...
It appears you might be on an Italian server...
So I would check the CCSID of the job and the file you are sending.
And if possible, dump the request from the server to see what is being
received by the web service.
Or try changing to use http_url_post_xml (EXAMPLE16) to eliminate the
file usage.
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[[2]mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
federico.forsi@xxxxxxxxxxx
Sent: Monday, September 28, 2015 3:22 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Problem with POST on a REST web service
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[3]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
I dati da lei conferiti sono trattati elettronicamente e manualmente
dagli incaricati e comunicati a terzi per la gestione dell' attivita'
economica e per l' invio di materiale pubblicitario; un eventuale
rifiuto al trattamento non consente la sua corretta esecuzione. Ha
diritto di accesso ai suoi dati ed altri diritti, come da art. 7 -
D.Lgs.196/03.
L' informativa privacy, ai sensi e per gli effetti di cui all'art. 13
del D.lgs 196/03, e' consultabile all' indirizzo web
[4]www.franzini.it/informativa.htm.
The informations provided will be processed manually and electronically
by the data manager and will be disclosed to third parties for the
management of economic and sending promotional materials; any refusal
to treatment does not allow its proper implementation. You have access
to these datas and other rights in accordance with art. 7 -
D.Lgs.196/03. The privacy policy, in accordance with and for purposes
of Art. 13 of Legislative Decree 196/03, is available at website
[5]www.franzini.it/informativa.htm.
Le informazioni contenute nella presente comunicazione e i relativi
allegati possono essere riservate e sono, comunque, destinate
esclusivamente alle persone o alla Societ� sopraindicati. La
diffusione, distribuzione e/o copiatura del documento trasmesso da
parte di qualsiasi soggetto diverso dal destinatario è proibita, sia
ai sensi dell�t. 616 c.p. , che ai sensi del D.Lgs. n. 196/2003. Se
avete ricevuto questo messaggio per errore, vi preghiamo di
distruggerlo e di informarci immediatamente per telefono allo
0522.929411 o inviando un messaggio all�dirizzo e-mail
[6]mbox@xxxxxxxxxxx . Inoltre, il messaggio da Voi ricevuto è di
natura non personale e le risposte al presente, potranno essere
conosciute nell�ganizzazione di appartenenza del mittente.
The information in this e-mail (which includes any files transmitted
with it) is confidential and may also be legally privileged. It is
intended for the addressee only. Access to this e-mail by anyone else
is unauthorised. It is not to be relied upon by any person other than
the addressee, except with our prior written approval. If no such
approval is given, we will not accept any liability (in negligence or
otherwise) arising from any third party acting, or refraining from
acting on such information. Unauthorised recipients are required to
maintain confidentiality. If you have received this e-mail in error
please notify us immediately, destroy any copies and delete it from
your computer system. Any use, dissemination, forwarding, printing or
copying of this e-mail is prohibited. Copyright in this e-mail and any
document created by us will be and remain vested in us and will not be
transferred to you. We assert the right to be identified as the author
of and to object to any misuses of the contents of this e-mail or such
documents.
References
1. http://develop.ferritalia.it/personal/ws/offerte_in.php
2. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
3. http://www.scottklement.com/mailman/listinfo/ftpapi
4. http://www.franzini.it/informativa.htm
5. http://www.franzini.it/informativa.htm
6. mailto:mbox@xxxxxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------