You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2012/08/15 10:28:38 UTC

[jira] [Created] (SYNAPSE-906) Sample 158 sends POX instead of SOAP

Andreas Veithen created SYNAPSE-906:
---------------------------------------

             Summary: Sample 158 sends POX instead of SOAP
                 Key: SYNAPSE-906
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-906
             Project: Synapse
          Issue Type: Bug
          Components: Documentation
            Reporter: Andreas Veithen
            Priority: Minor


Sample 158 is expected to show how to exposing a SOAP service over JSON. However, the mediation sends POX (application/xml) instead of SOAP to the target service, as shown in the following capture:

10:08:57.038488 IP 127.0.0.1.54720 > 127.0.0.1.9000: Flags [P.], seq 4114502400:4114502611, ack 1752768016, win 65535, options [nop,nop,TS val 348985985 ecr 348985797], length 211
	0x0000:  4500 0107 9f5e 4000 4006 0000 7f00 0001  E....^@.@.......
	0x0010:  7f00 0001 d5c0 2328 f53e 5300 6879 1e10  ......#(.>S.hy..
	0x0020:  8018 ffff fefb 0000 0101 080a 14cd 1a81  ................
	0x0030:  14cd 19c5 504f 5354 202f 7365 7276 6963  ....POST./servic
	0x0040:  6573 2f53 696d 706c 6553 746f 636b 5175  es/SimpleStockQu
	0x0050:  6f74 6553 6572 7669 6365 2048 5454 502f  oteService.HTTP/
	0x0060:  312e 310d 0a43 6f6e 7465 6e74 2d54 7970  1.1..Content-Typ
	0x0070:  653a 2061 7070 6c69 6361 7469 6f6e 2f78  e:.application/x
	0x0080:  6d6c 3b20 6368 6172 7365 743d 5554 462d  ml;.charset=UTF-
	0x0090:  380d 0a54 7261 6e73 6665 722d 456e 636f  8..Transfer-Enco
	0x00a0:  6469 6e67 3a20 6368 756e 6b65 640d 0a48  ding:.chunked..H
	0x00b0:  6f73 743a 206c 6f63 616c 686f 7374 3a39  ost:.localhost:9
	0x00c0:  3030 300d 0a43 6f6e 6e65 6374 696f 6e3a  000..Connection:
	0x00d0:  204b 6565 702d 416c 6976 650d 0a55 7365  .Keep-Alive..Use
	0x00e0:  722d 4167 656e 743a 2053 796e 6170 7365  r-Agent:.Synapse
	0x00f0:  2d48 7474 7043 6f6d 706f 6e65 6e74 732d  -HttpComponents-
	0x0100:  4e49 4f0d 0a0d 0a                        NIO....
10:08:57.038537 IP 127.0.0.1.9000 > 127.0.0.1.54720: Flags [.], ack 211, win 65535, options [nop,nop,TS val 348985985 ecr 348985985], length 0
	0x0000:  4500 0034 a32d 4000 4006 0000 7f00 0001  E..4.-@.@.......
	0x0010:  7f00 0001 2328 d5c0 6879 1e10 f53e 53d3  ....#(..hy...>S.
	0x0020:  8010 ffff fe28 0000 0101 080a 14cd 1a81  .....(..........
	0x0030:  14cd 1a81                                ....
10:08:57.038676 IP 127.0.0.1.54720 > 127.0.0.1.9000: Flags [P.], seq 211:418, ack 1, win 65535, options [nop,nop,TS val 348985985 ecr 348985985], length 207
	0x0000:  4500 0103 d632 4000 4006 0000 7f00 0001  E....2@.@.......
	0x0010:  7f00 0001 d5c0 2328 f53e 53d3 6879 1e10  ......#(.>S.hy..
	0x0020:  8018 ffff fef7 0000 0101 080a 14cd 1a81  ................
	0x0030:  14cd 1a81 6334 0d0a 3c6e 7336 3a67 6574  ....c4..<ns6:get
	0x0040:  5175 6f74 6520 786d 6c6e 733a 6e73 363d  Quote.xmlns:ns6=
	0x0050:  2268 7474 703a 2f2f 7365 7276 6963 6573  "http://services
	0x0060:  2e73 616d 706c 6573 223e 0a3c 6e73 373a  .samples">.<ns7:
	0x0070:  7265 7175 6573 7420 786d 6c6e 733a 6e73  request.xmlns:ns
	0x0080:  373d 2268 7474 703a 2f2f 7365 7276 6963  7="http://servic
	0x0090:  6573 2e73 616d 706c 6573 223e 0a3c 6e73  es.samples">.<ns
	0x00a0:  383a 7379 6d62 6f6c 2078 6d6c 6e73 3a6e  8:symbol.xmlns:n
	0x00b0:  7338 3d22 6874 7470 3a2f 2f73 6572 7669  s8="http://servi
	0x00c0:  6365 732e 7361 6d70 6c65 7322 3e49 424d  ces.samples">IBM
	0x00d0:  3c2f 6e73 383a 7379 6d62 6f6c 3e0a 3c2f  </ns8:symbol>.</
	0x00e0:  6e73 373a 7265 7175 6573 743e 0a3c 2f6e  ns7:request>.</n
	0x00f0:  7336 3a67 6574 5175 6f74 653e 0d0a 300d  s6:getQuote>..0.
	0x0100:  0a0d 0a                                  ...


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] [Resolved] (SYNAPSE-906) Sample 158 sends POX instead of SOAP

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved SYNAPSE-906.
-------------------------------------

    Resolution: Fixed
      Assignee: Andreas Veithen
    
> Sample 158 sends POX instead of SOAP
> ------------------------------------
>
>                 Key: SYNAPSE-906
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-906
>             Project: Synapse
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
>
> Sample 158 is expected to show how to exposing a SOAP service over JSON. However, the mediation sends POX (application/xml) instead of SOAP to the target service, as shown in the following capture:
> 10:08:57.038488 IP 127.0.0.1.54720 > 127.0.0.1.9000: Flags [P.], seq 4114502400:4114502611, ack 1752768016, win 65535, options [nop,nop,TS val 348985985 ecr 348985797], length 211
> 	0x0000:  4500 0107 9f5e 4000 4006 0000 7f00 0001  E....^@.@.......
> 	0x0010:  7f00 0001 d5c0 2328 f53e 5300 6879 1e10  ......#(.>S.hy..
> 	0x0020:  8018 ffff fefb 0000 0101 080a 14cd 1a81  ................
> 	0x0030:  14cd 19c5 504f 5354 202f 7365 7276 6963  ....POST./servic
> 	0x0040:  6573 2f53 696d 706c 6553 746f 636b 5175  es/SimpleStockQu
> 	0x0050:  6f74 6553 6572 7669 6365 2048 5454 502f  oteService.HTTP/
> 	0x0060:  312e 310d 0a43 6f6e 7465 6e74 2d54 7970  1.1..Content-Typ
> 	0x0070:  653a 2061 7070 6c69 6361 7469 6f6e 2f78  e:.application/x
> 	0x0080:  6d6c 3b20 6368 6172 7365 743d 5554 462d  ml;.charset=UTF-
> 	0x0090:  380d 0a54 7261 6e73 6665 722d 456e 636f  8..Transfer-Enco
> 	0x00a0:  6469 6e67 3a20 6368 756e 6b65 640d 0a48  ding:.chunked..H
> 	0x00b0:  6f73 743a 206c 6f63 616c 686f 7374 3a39  ost:.localhost:9
> 	0x00c0:  3030 300d 0a43 6f6e 6e65 6374 696f 6e3a  000..Connection:
> 	0x00d0:  204b 6565 702d 416c 6976 650d 0a55 7365  .Keep-Alive..Use
> 	0x00e0:  722d 4167 656e 743a 2053 796e 6170 7365  r-Agent:.Synapse
> 	0x00f0:  2d48 7474 7043 6f6d 706f 6e65 6e74 732d  -HttpComponents-
> 	0x0100:  4e49 4f0d 0a0d 0a                        NIO....
> 10:08:57.038537 IP 127.0.0.1.9000 > 127.0.0.1.54720: Flags [.], ack 211, win 65535, options [nop,nop,TS val 348985985 ecr 348985985], length 0
> 	0x0000:  4500 0034 a32d 4000 4006 0000 7f00 0001  E..4.-@.@.......
> 	0x0010:  7f00 0001 2328 d5c0 6879 1e10 f53e 53d3  ....#(..hy...>S.
> 	0x0020:  8010 ffff fe28 0000 0101 080a 14cd 1a81  .....(..........
> 	0x0030:  14cd 1a81                                ....
> 10:08:57.038676 IP 127.0.0.1.54720 > 127.0.0.1.9000: Flags [P.], seq 211:418, ack 1, win 65535, options [nop,nop,TS val 348985985 ecr 348985985], length 207
> 	0x0000:  4500 0103 d632 4000 4006 0000 7f00 0001  E....2@.@.......
> 	0x0010:  7f00 0001 d5c0 2328 f53e 53d3 6879 1e10  ......#(.>S.hy..
> 	0x0020:  8018 ffff fef7 0000 0101 080a 14cd 1a81  ................
> 	0x0030:  14cd 1a81 6334 0d0a 3c6e 7336 3a67 6574  ....c4..<ns6:get
> 	0x0040:  5175 6f74 6520 786d 6c6e 733a 6e73 363d  Quote.xmlns:ns6=
> 	0x0050:  2268 7474 703a 2f2f 7365 7276 6963 6573  "http://services
> 	0x0060:  2e73 616d 706c 6573 223e 0a3c 6e73 373a  .samples">.<ns7:
> 	0x0070:  7265 7175 6573 7420 786d 6c6e 733a 6e73  request.xmlns:ns
> 	0x0080:  373d 2268 7474 703a 2f2f 7365 7276 6963  7="http://servic
> 	0x0090:  6573 2e73 616d 706c 6573 223e 0a3c 6e73  es.samples">.<ns
> 	0x00a0:  383a 7379 6d62 6f6c 2078 6d6c 6e73 3a6e  8:symbol.xmlns:n
> 	0x00b0:  7338 3d22 6874 7470 3a2f 2f73 6572 7669  s8="http://servi
> 	0x00c0:  6365 732e 7361 6d70 6c65 7322 3e49 424d  ces.samples">IBM
> 	0x00d0:  3c2f 6e73 383a 7379 6d62 6f6c 3e0a 3c2f  </ns8:symbol>.</
> 	0x00e0:  6e73 373a 7265 7175 6573 743e 0a3c 2f6e  ns7:request>.</n
> 	0x00f0:  7336 3a67 6574 5175 6f74 653e 0d0a 300d  s6:getQuote>..0.
> 	0x0100:  0a0d 0a                                  ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] [Commented] (SYNAPSE-906) Sample 158 sends POX instead of SOAP

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435488#comment-13435488 ] 

Hudson commented on SYNAPSE-906:
--------------------------------

Integrated in Synapse - Trunk #4388 (See [https://builds.apache.org/job/Synapse%20-%20Trunk/4388/])
    SYNAPSE-906: Fixed sample 158 so that it actually sends SOAP (not POX) to the target service. (Revision 1373590)

     Result = SUCCESS
veithen : 
Files : 
* /synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/samples/sample158.xml
* /synapse/trunk/java/repository/conf/sample/synapse_sample_158.xml

                
> Sample 158 sends POX instead of SOAP
> ------------------------------------
>
>                 Key: SYNAPSE-906
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-906
>             Project: Synapse
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Andreas Veithen
>            Priority: Minor
>
> Sample 158 is expected to show how to exposing a SOAP service over JSON. However, the mediation sends POX (application/xml) instead of SOAP to the target service, as shown in the following capture:
> 10:08:57.038488 IP 127.0.0.1.54720 > 127.0.0.1.9000: Flags [P.], seq 4114502400:4114502611, ack 1752768016, win 65535, options [nop,nop,TS val 348985985 ecr 348985797], length 211
> 	0x0000:  4500 0107 9f5e 4000 4006 0000 7f00 0001  E....^@.@.......
> 	0x0010:  7f00 0001 d5c0 2328 f53e 5300 6879 1e10  ......#(.>S.hy..
> 	0x0020:  8018 ffff fefb 0000 0101 080a 14cd 1a81  ................
> 	0x0030:  14cd 19c5 504f 5354 202f 7365 7276 6963  ....POST./servic
> 	0x0040:  6573 2f53 696d 706c 6553 746f 636b 5175  es/SimpleStockQu
> 	0x0050:  6f74 6553 6572 7669 6365 2048 5454 502f  oteService.HTTP/
> 	0x0060:  312e 310d 0a43 6f6e 7465 6e74 2d54 7970  1.1..Content-Typ
> 	0x0070:  653a 2061 7070 6c69 6361 7469 6f6e 2f78  e:.application/x
> 	0x0080:  6d6c 3b20 6368 6172 7365 743d 5554 462d  ml;.charset=UTF-
> 	0x0090:  380d 0a54 7261 6e73 6665 722d 456e 636f  8..Transfer-Enco
> 	0x00a0:  6469 6e67 3a20 6368 756e 6b65 640d 0a48  ding:.chunked..H
> 	0x00b0:  6f73 743a 206c 6f63 616c 686f 7374 3a39  ost:.localhost:9
> 	0x00c0:  3030 300d 0a43 6f6e 6e65 6374 696f 6e3a  000..Connection:
> 	0x00d0:  204b 6565 702d 416c 6976 650d 0a55 7365  .Keep-Alive..Use
> 	0x00e0:  722d 4167 656e 743a 2053 796e 6170 7365  r-Agent:.Synapse
> 	0x00f0:  2d48 7474 7043 6f6d 706f 6e65 6e74 732d  -HttpComponents-
> 	0x0100:  4e49 4f0d 0a0d 0a                        NIO....
> 10:08:57.038537 IP 127.0.0.1.9000 > 127.0.0.1.54720: Flags [.], ack 211, win 65535, options [nop,nop,TS val 348985985 ecr 348985985], length 0
> 	0x0000:  4500 0034 a32d 4000 4006 0000 7f00 0001  E..4.-@.@.......
> 	0x0010:  7f00 0001 2328 d5c0 6879 1e10 f53e 53d3  ....#(..hy...>S.
> 	0x0020:  8010 ffff fe28 0000 0101 080a 14cd 1a81  .....(..........
> 	0x0030:  14cd 1a81                                ....
> 10:08:57.038676 IP 127.0.0.1.54720 > 127.0.0.1.9000: Flags [P.], seq 211:418, ack 1, win 65535, options [nop,nop,TS val 348985985 ecr 348985985], length 207
> 	0x0000:  4500 0103 d632 4000 4006 0000 7f00 0001  E....2@.@.......
> 	0x0010:  7f00 0001 d5c0 2328 f53e 53d3 6879 1e10  ......#(.>S.hy..
> 	0x0020:  8018 ffff fef7 0000 0101 080a 14cd 1a81  ................
> 	0x0030:  14cd 1a81 6334 0d0a 3c6e 7336 3a67 6574  ....c4..<ns6:get
> 	0x0040:  5175 6f74 6520 786d 6c6e 733a 6e73 363d  Quote.xmlns:ns6=
> 	0x0050:  2268 7474 703a 2f2f 7365 7276 6963 6573  "http://services
> 	0x0060:  2e73 616d 706c 6573 223e 0a3c 6e73 373a  .samples">.<ns7:
> 	0x0070:  7265 7175 6573 7420 786d 6c6e 733a 6e73  request.xmlns:ns
> 	0x0080:  373d 2268 7474 703a 2f2f 7365 7276 6963  7="http://servic
> 	0x0090:  6573 2e73 616d 706c 6573 223e 0a3c 6e73  es.samples">.<ns
> 	0x00a0:  383a 7379 6d62 6f6c 2078 6d6c 6e73 3a6e  8:symbol.xmlns:n
> 	0x00b0:  7338 3d22 6874 7470 3a2f 2f73 6572 7669  s8="http://servi
> 	0x00c0:  6365 732e 7361 6d70 6c65 7322 3e49 424d  ces.samples">IBM
> 	0x00d0:  3c2f 6e73 383a 7379 6d62 6f6c 3e0a 3c2f  </ns8:symbol>.</
> 	0x00e0:  6e73 373a 7265 7175 6573 743e 0a3c 2f6e  ns7:request>.</n
> 	0x00f0:  7336 3a67 6574 5175 6f74 653e 0d0a 300d  s6:getQuote>..0.
> 	0x0100:  0a0d 0a                                  ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org