[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTP/1.1 202 Accepted
hi Erica,
The web service is sending you a response of "202 Accepted", which
indicates that it accepted your message.
As near as I can tell, HTTPAPI is working perfectly, here. If you were
expecting more than just "Accepted" in response, then perhaps you are
using the web service incorrectly? Please understand that there are
millions of web services on the Internet, and they all work
differently. I can only provide support for HTTPAPI, not the web
services.
-SK
On 12/7/2012 1:00 PM, Erica Rosales Sánchez wrote:
This is my first time working with API and I have an issue with my
program where I'm receiving a HTTP/1.1 202 Accepted.
I am not able to find what is causing the issue.
This is mi WSDL:
<soapenv:Envelope
xmlns:soapenv=[1]"http://schemas.xmlsoap.org/soap/envelope/"
xmlns:cif=[2]"http://CifrasLibrary/com/consupago/cifras/bo/CifrasBO">
<soapenv:Header/>
<soapenv:Body>
<cif:sendMessage>
<data>
<!--Optional:-->
<input>CC120605170459590050010060000000000000000000000001|003/100000;00
4/50000|</input>
</data>
</cif:sendMessage>
</soapenv:Body>
</soapenv:Envelope>
My RPG program:
http_debug(*ON);
http_XmlStripCRLF(*ON);
SOAP
=
'<?xml version="1.0" encoding="UTF-8"
standalone="no"?>'
+'<soapenv:Envelope'
+'
xmlns:soapenv=[3]"http://schemas.xmlsoap.org/soap/envelope/"'
+'
xmlns:cif=[4]"http://CifrasLibrary/com/consupago/cifras/bo/CifrasBO">'
+'<soapenv:Header/>'
+' <soapenv:Body>'
+'
<cif:sendMessage>'
+'
<data>'
+' <!--Optional:-->'
+' <input>' + CADENA +
'</input>'
+'
</data>'
+'
</cif:sendMessage>'
+'
</soapenv:Body>'
+'</soapenv:Envelope>';
http_debug(*ON);
ENDPOINT = '[5]http://192.168.201.141:9080/CifrasControlServiceWeb/'+
'sca/CifrasControlService';
rc = http_url_post_xml( ENDPOINT
: %addr(SOAP) + 2
: %len(SOAP)
: *NULL
: %paddr(MapXmlData)
: %addr(CountryName)
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'text/xml'
: '""' );
This is the log:
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V5R4M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: consupago.com
DNS server found: 192.168.201.84
DNS server found: 200.77.227.157
DNS server found: 10.129.1.12
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL():
entered
do_oper(POST):
entered
There are 0 cookies in the
cache
POST /CifrasControlServiceWeb/sca/CifrasControlService
HTTP/1.1
Host:
192.168.201.141:9080
User-Agent:
http-api/1.24
Content-Type: text/xml;
charset=UTF-8
SOAPAction:
""
Content-Length:
368
senddoc():
entered
<soapenv:Envelope
xmlns:soapenv=[6]"http://schemas.xmlsoap.org/soap/envelope/"
xmlns:cif=[7]"http://CifrasLibrary/com/consupago/cifras/
bo/CifrasBO"> <soapenv:Header/> <soapenv:Body> <cif:sendMessage> <data>
<!--Optional:--> <input>CC1206051704595900300200500000000
00000000000000001|003/100000;004/50000|</input> </data>
</cif:sendMessage> </soapenv:Body> </soapenv:Envelope>
recvresp():
entered
HTTP/1.1 202
Accepted
Content-Type: text/xml;
charset=UTF-8
Content-Length:
0
Connection:
close
Content-Language:
en-US
Date: Wed, 05 Dec 2012 18:51:17
GMT
Server: WebSphere Application
Server/6.1
SetError() Ñ13: HTTP/1.1 202
Accepted
recvresp(): end with
202
recvdoc parms: identity
0
header_load_cookies()
entered
recvdoc():
entered
SetError() Ñ0:
SetError() Ñ13: HTTP/1.1 202
Accepted
http_close(): entered
In the server applications this is the error when consume the service:
------Start of DE processing------ = [12/6/12 18:24:06:649 CST] , key =
javax.xml.ws.WebServiceException
sca.webservice.provider.CifrasControlService 001
Exception = javax.xml.ws.WebServiceException
Source = sca.webservice.provider.CifrasControlService
probeid = 001
Stack Dump = javax.xml.ws.WebServiceException:
org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException:
The content of elements must consist of well-formed character data or
markup.
at
com.ibm.ws.sca.internal.jaxws.handler.JaxWsExportHandler.processMessage
(JaxWsExportHandler.java:302)
at
com.ibm.wsspi.sca.jaxws.service.WsExtensionProvider.invoke(WsExtensionP
rovider.java:104)
at
sca.webservice.provider.CifrasControlService.invoke(CifrasControlServic
e.java:48)
Thanks!
Erica Rosales
Junior Programmer
Descripción: Descripción: [8]cid:image002.png@01CBD8D3.82C3A4F0
I.C. Erica Gpe. Rosales Sánchez
Tel..(222) 4310117
Advertencia Legal: La información contenida en este e-mail es
confidencial y sólo puede ser utilizada por el individuo o la compañía
a la cual está dirigido. Esta información es de carácter provisional y
referencial, no debe ser distribuida ni copiada total o parcialmente
por ningún medio sin la autorización de M-Finis Soluciones y Servicios
Financieros S. A. de C. V. La Empresa no asume responsabilidad sobre
información, opiniones o criterios contenidos en este e-mail.
Disclaimer: The information contained in this e-mail is confidential
and intended only for the use of the person or company to which it is
addressed. This information is considered provisional and referential;
it can not be totally or partially distributed nor copied by any media
without the authorization from M-Finis Soluciones y Servicios
Financieros S. A. de C. V. The Company does not assume responsibility
about this information, opinions or criteria contained in this e-mail.
Descripción:
Descripción: [9]cid:image003.png@01CBD8D3.82C3A4F0 Por favor
considere el impacto en el medio ambiente antes de imprimir este e-mail
M FINIS Please
consider the environment before printing this e-mail.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[10]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. http://schemas.xmlsoap.org/soap/envelope/
2. http://CifrasLibrary/com/consupago/cifras/bo/CifrasBO
3. http://schemas.xmlsoap.org/soap/envelope/
4. http://CifrasLibrary/com/consupago/cifras/bo/CifrasBO
5. http://192.168.201.141:9080/CifrasControlServiceWeb/'+
6. http://schemas.xmlsoap.org/soap/envelope/
7. http://CifrasLibrary/com/consupago/cifras/bo/CifrasBO
8. cid:image002.png@01CBD8D3.82C3A4F0
9. cid:image003.png@01CBD8D3.82C3A4F0
10. 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
-----------------------------------------------------------------------