Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-906

Sample 158 sends POX instead of SOAP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Documentation
    • None

    Description

      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 ...

      Attachments

        Activity

          People

            veithen Andreas Veithen
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: