[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
why a:ActionNotSupported ???
I am a new user of HTTPAPI.
From the examples and tests seem spectacular but I can not run the web
service that I need ...
Can anyone help me?
why a:ActionNotSupported ???
======================================================================
==================================================
HTTPAPI Ver 1.24beta10 released 2010-06-01
OS/400 Ver V5R4M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819.
ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: UNIFARM.IT
WARNING: No name servers are configured for DNS resolution! You will
not be able to contact Internet hosts! See
http://www.scottklement.com/httpapi/dns.html for more information.
http_persist_post(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /FrontEndService/Farmaclick2005001FCKLogin HTTP/1.1
Host: fe2.unifarm.it:8080
User-Agent: http-api/1.24
Content-Type: text/xml
Content-Length: 1168
senddoc(): entered
<soapenv:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:api="http://api.farmaclick.infarma.it"><soapenv:Header/><soapenv
:Body><api:FCKLogin
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><lib
xsi:type="urn:LoginInputBean"
xmlns:urn="urn:BeanService"><arrayCodiciFornitori
xsi:type="far:ArrayOf_soapenc_string"
soapenc:arrayType="soapenc:string[]"
xmlns:far="http://nagios.infarmanet.it:8080/farmaclick_public_server/f
armaclick/Farmaclick2005001FCKLogin"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/><nomeTermin
ale xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">01</nomeTerm
inale><password xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">davide</pass
word><userName xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">feltrin@sfdm
</userName></lib></api:FCKLogin></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Content-Length: 854
Content-Type: text/xml; charset=utf-8
Server: Microsoft-HTTPAPI/1.0
Date: Tue, 31 Aug 2010 17:50:50 GMT
SetError() #13: HTTP/1.1 500 Internal Server Error
recvresp(): end with 500
recvdoc parms: identity 854
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><
faultcode
xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:Ac
tionNotSupported</faultcode><faultstring xml:lang="en-US">The message
with Action '' cannot be processed at the receiver, due to a
ContractFilter mismatch at the EndpointDispatcher. This may be because
of either a contract mismatch (mismatched Actions between sender and
receiver) or a binding/security mismatch between the sender and the
receiver. Check that sender and receiver have the same contract and
the same binding (including security requirements, e.g. Message,
Transport, None).</faultstring><detail><z:anyType i:nil="true"
xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/></detail></s:Faul
t></s:Body></s:Envelope>
SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered
======================================================================
==================================================
/copy LIBHTTP/qrpglesrc,httpapi_h
?*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
D StartOfElement PR
D UserData * value
D depth 10I 0 value
D name 1024A varying const
D path 24576A varying const
D attrs * dim(32767)
?*
----------------------------------------------------------------------
*
D EndOfElement PR
D UserData * value
D depth 10I 0 value
D name 1024A varying const
D path 24576A varying const
D value 65535A varying const
D attrs * dim(32767)
D const options(*varsize)
?*
----------------------------------------------------------------------
*
D wwUserID C 'feltrin@sfdm'
D wwPasswd C 'davide'
D wwTerminale C '01'
d act s 10I 0
d activity ds qualified
d array dim(100)
d wwEsitoServizio...
d 8A overlay(array)
d wwNewPassword...
d 6A overlay(array:*next)
D rc s 10I 0
***********D postData s 1168A varying
D postData s 1168A
D RRN s 4 0
D tempDate s D
D tempTime s T
?*
----------------------------------------------------------------------
*
D wwIndirizzo S 200A
D wwErroreHTTP S 100A
?*
/free
//?*******************************************************************
***
//?INIZIO
//?*******************************************************************
***
http_debug(*ON);
exsr srComponiChiamata;
wwIndirizzo =
'http://fe2.unifarm.it:8080/FrontEndService/Farmaclick2005001FCKLogin'
;
rc = http_url_post_xml( wwIndirizzo
: %addr(postData)
: %len(postData)
: %paddr(StartOfElement)
: %paddr(EndOfElement)
: *NULL );
if (rc <> 1);
wwErroreHTTP = http_error();
// FIXME: REPORT ERROR TO USER
endif;
*inlr = *on;
//?*******************************************************************
***
//? srComponiChiamata: "COMPONE XML" RICHIAMO WEB SERVICE
//?*******************************************************************
***
Begsr srComponiChiamata;
//?------------------------------------- //
postData =
'<soapenv:Envelope xmlns:xsi='+
'"http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd='
+
'"http://www.w3.org/2001/XMLSchema" xmlns:soapenv='
+
'"http://schemas.xmlsoap.org/soap/envelope/" xmlns:api='
+
'"http://api.farmaclick.infarma.it">'
+
'<soapenv:Header/>'
+
'<soapenv:Body>'
+
'<api:FCKLogin soapenv:encodingStyle='+
'"http://schemas.xmlsoap.org/soap/encoding/">' +
'<lib xsi:type="urn:LoginInputBean"'+
' xmlns:urn="urn:BeanService">'
+
//
--------------------------------------------------------------- //
'<arrayCodiciFornitori '+
'xsi:type="far:ArrayOf_soapenc_string"' +
' soapenc:arrayType="soapenc:string[]"'+
' xmlns:far="http://nagios.infarmanet.it:8080'+
'/farmaclick_public_server/farmaclick/'+
'Farmaclick2005001FCKLogin" xmlns:soapenc='+
'"http://schemas.xmlsoap.org/soap/encoding/"/>'
+
//
--------------------------------------------------------------- //
'<nomeTerminale '+
'xsi:type="soapenc:string" xmlns:soapenc='+
'"http://schemas.xmlsoap.org/soap/encoding/'+
'">' + wwTerminale + '<'+
'/nomeTerminale>'
+
//
--------------------------------------------------------------- //
'<password '+
'xsi:type="soapenc:string" xmlns:soapenc='+
'"http://schemas.xmlsoap.org/soap/encoding/'+
//************'">davide<'+
'">' + wwPasswd + '<'+
'/password>'
+
//
--------------------------------------------------------------- //
'<userName '+
'xsi:type="soapenc:string" xmlns:soapenc='+
'"http://schemas.xmlsoap.org/soap/encoding/'+
//************'">feltrin@sfdm<'+
'">' + wwUserID + '<'+
'/userName>'
+
//
--------------------------------------------------------------- //
'</lib>'
+
'</api:FCKLogin>'
+
'</soapenv:Body>'
+
'</soapenv:Envelope>';
//'</soapenv:Envelope>' + X'00';
//?------------------------------------- //
endsr;
//?*******************************************************************
***
/end-free
P StartOfElement B
D StartOfElement PI
D UserData * value
D depth 10I 0 value
D name 1024A varying const
D path 24576A varying const
D attrs * dim(32767)
D*********************************** const options(*varsize)
/free
if path = '/s:Envelope/s:Body/s:Fault' or
path = '/s:Envelope/s:Body/s:Fault/detail';
act = act + 1;
endif;
if path = '/FCKLoginReturn href="#id1"/';
act = act + 1;
endif;
/end-free
P E
P EndOfElement B
D EndOfElement PI
D UserData * value
D depth 10I 0 value
D name 1024A varying const
D path 24576A varying const
D value 65535A varying const
D attrs * dim(32767)
D const options(*varsize)
/free
select;
when path = '/s:Envelope/s:Body/s:Fault';
select;
when name = 'faultcode';
activity.wwEsitoServizio(act) = value;
when name = 'faultstring';
activity.wwNewPassword(act) = value;
when name = 'detail';
activity.wwNewPassword(act) = value;
endsl;
when path = '/s:Envelope/s:Body/q2:LoginOutputBean';
select;
when name = 'esitoServizio';
activity.wwEsitoServizio(act) = value;
when name = 'newPassword';
activity.wwNewPassword(act) = value;
endsl;
when path = '/s:Envelope/s:Body/q1:FCKLoginResponse';
select;
when name = 'FCKLoginReturn href="#id1"/';
endsl;
endsl;
/end-free
P E
======================================================================
==================================================
________________________________
Davide Feltrin
Unifarm S.p.A.
via Provina, 3
38123 Ravina (TN)
Tel: +39 0461 901111
AVVISO DI RISERVATEZZA
Il testo e gli eventuali documenti trasmessi contengono informazioni
riservate al destinatario indicato. La seguente e-mail è confidenziale
e la sua riservatezza è tutelata legalmente dalle normative vigenti.
La lettura, copia od altro uso non autorizzato o qualsiasi altra
azione derivante dalla conoscenza di queste informazioni sono
rigorosamente vietate. Se si ritiene di non essere il destinatario di
questa mail, o se si è ricevuto questa mail per errore, si prega di
darne immediata comunicazione al mittente e di provvedere
immediatamente alla sua distruzione.
PRIVACY NOTICE
The information contained in this transmittal, including any
attachments hereto, are confidential and privileged, and intended
solely for the specified addressee(s). This e-mail has a confidential
nature which is protected by the Italian law. Moreover, the
recipient(s) may not disclose, forward, or copy this e-mail or
attachments, or any portion thereof, or permit the use of this
information, by anyone not entitled to it, or in a way that may be
damaging to the sender. If you are not the intended addressee, or if
you receive this message by error, please notify the sender and delete
this information from your computer.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------