[
https://issues.apache.org/jira/browse/SYNAPSE-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536744
]
Paul Anderson commented on SYNAPSE-150:
---------------------------------------
The POX from PHP passes through the Synapse filter, gets SOAP headers added,
goes to Geronimo, gets processed by a web service, and the reply comes back:-
This log is from tcpmon between Synapse and the backend Geronimo.
POST http://server:10082/smscontractservice/services HTTP/1.1
Authorization: Basic xxyyzzy=
Host: 127.0.0.1:10082
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: Keep-Alive
User-Agent: Synapse-HttpComponents-NIO
169
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<vas:ContractConsumptionSendRequest
xmlns:vas="http://www.wta.dz/schema/vas"
xmlns:telco="http://www.wta.dz/schema/telco">
<telco:MSISDN>213xxxxyyyy</telco:MSISDN>
</vas:ContractConsumptionSendRequest>
</soapenv:Body>
</soapenv:Envelope>0
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Type: text/xml;charset=utf-8
Content-Length: 269
Date: Mon, 22 Oct 2007 16:41:08 GMT
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns3:ContractConsumptionSendResponse
xmlns:ns2="http://www.wta.dz/schema/telco"
xmlns:ns3="http://www.wta.dz/schema/vas"/>
</SOAP-ENV:Body></SOAP-ENV:Envelope>
After the last outgoing message gets logged by Synapse, the payload doesn't
come back to PHP, the connection ends after the http headers - and you see the
SSL debug lines I described.
2007-10-22 18:03:34,592 [server] [I/O dispatcher 1] DEBUG headers << HTTP/1.1
200 OK
2007-10-22 18:03:34,592 [server] [I/O dispatcher 1] DEBUG headers << Server:
Apache-Coyote/1.1
2007-10-22 18:03:34,593 [server] [I/O dispatcher 1] DEBUG headers << Accept:
text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
2007-10-22 18:03:34,593 [server] [I/O dispatcher 1] DEBUG headers <<
Content-Type: text/xml;charset=utf-8
2007-10-22 18:03:34,593 [server] [I/O dispatcher 1] DEBUG headers <<
Content-Length: 269
2007-10-22 18:03:34,593 [server] [I/O dispatcher 1] DEBUG headers << Date: Mon,
22 Oct 2007 17:03:34 GMT
2007-10-22 18:03:34,593 [server] [I/O dispatcher 1] DEBUG IOSessionImpl I/O
session 2 [interested ops: [r]; ready ops: [r]]: 269 bytes read
2007-10-22 18:03:34,605 [server] [HttpClientWorker-1] INFO Axis2MessageContext
To: http://www.w3.org/2005/08/addressing/anonymous, MessageID:
urn:uuid:623ABD3C74BF9644BF11930726144187820011006578058, Direction: response,
Envelope: <?xml version='1.0' encoding='utf-8'?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><ns3:ContractConsumptionSendResponse
xmlns:ns3="http://www.wta.dz/schema/vas"
xmlns:ns2="http://www.wta.dz/schema/telco"
/></SOAP-ENV:Body></SOAP-ENV:Envelope>
2007-10-22 18:03:34,605 [server] [HttpClientWorker-1] INFO LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, MessageID:
urn:uuid:623ABD3C74BF9644BF11930726144187820011006578058, Direction: response,
Envelope: <?xml version='1.0' encoding='utf-8'?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><ns3:ContractConsumptionSendResponse
xmlns:ns3="http://www.wta.dz/schema/vas"
xmlns:ns2="http://www.wta.dz/schema/telco"
/></SOAP-ENV:Body></SOAP-ENV:Envelope>
2007-10-22 18:03:34,609 [server] [HttpClientWorker-1] DEBUG SSLIOSession I/O
session 1 [interested ops: [r]; ready ops: [r]][SSL handshake status:
NOT_HANDSHAKING][0][0][0][0]: Set event [w]
I/O dispatcher 4, WRITE: TLSv1 Application Data, length = 229
2007-10-22 18:03:34,611 [server] [I/O dispatcher 4] DEBUG SSLIOSession I/O
session 1 [interested ops: [rw]; ready ops: [w]][SSL handshake status:
NOT_HANDSHAKING][0][0][261][0]: 229 bytes written
2007-10-22 18:03:34,612 [server] [I/O dispatcher 4] DEBUG SSLIOSession I/O
session 1 [interested ops: [rw]; ready ops: [w]][SSL handshake status:
NOT_HANDSHAKING][0][0][261][0]: 0 bytes written
2007-10-22 18:03:34,612 [server] [I/O dispatcher 4] DEBUG SSLIOSession I/O
session 1 [interested ops: [rw]; ready ops: [w]][SSL handshake status:
NOT_HANDSHAKING][0][0][0][0]: Close
I/O dispatcher 4, called closeOutbound()
I/O dispatcher 4, closeOutboundInternal()
I/O dispatcher 4, SEND TLSv1 ALERT: warning, description = close_notify
I/O dispatcher 4, WRITE: TLSv1 Alert, length = 32
2007-10-22 18:03:34,613 [server] [I/O dispatcher 4] DEBUG SSLIOSession I/O
session 1 [interested ops: [rw]; ready ops: [w]][SSL handshake status:
NEED_WRAP][0][0][0][0]: Clear event [w]
I/O dispatcher 4, READ: TLSv1 Alert, length = 32
I/O dispatcher 4, RECV TLSv1 ALERT: warning, close_notify
I/O dispatcher 4, closeInboundInternal()
I/O dispatcher 4, closeOutboundInternal()
2007-10-22 18:03:44,287 [server] [I/O dispatcher 4] DEBUG SSLIOSession I/O
session 1 [interested ops: [r]; ready ops: [r]][SSL handshake status:
NOT_HANDSHAKING][0][0][0][0]: Clear event [r]
^[[5~^[[5~2007-10-22 18:03:54,587 [server] [I/O dispatcher 1] DEBUG
IOSessionImpl I/O session 2 [interested ops: [r]; ready ops: [r]]: -1 bytes read
2007-10-22 18:03:54,587 [server] [I/O dispatcher 1] DEBUG IOSessionImpl I/O
session 2 [interested ops: [r]; ready ops: [r]]: Close
> SSL returns headers but no response XML for POX POST from PHP. From Java, OK.
> http POST from PHP, OK. SSL POST from PHP to Tomcat, OK
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SYNAPSE-150
> URL: https://issues.apache.org/jira/browse/SYNAPSE-150
> Project: Synapse
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: JDK6 on RHEL3.
> Reporter: Paul Anderson
> Assignee: Upul Godage
>
> When I use PHP to POST an http 1.0 POX request to Synapse by SSL, Synapse
> replies with http response code and headers only, and then closes the
> connection. No XML is returned.
> Exactly the same PHP POST with plain http receives the XML.
> A Java command line SSL POST receives the XML.
> And PHP POSTing the data to a Tomcat JSP page over SSL works fine - it simply
> receives HTML instead of XML.
> Seems to be something in the Synapse SSL code that is doing the wrong thing,
> and silently.
> I tried setting non-blocking to false - no difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]