This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I am developing an application to send a query from one database to another. I am wondering if it is possible to use an API to capture XML messages.

asked 07 Jun '11, 06:27

mbands2's gravatar image

mbands2
1222
accept rate: 0%


Why do you want to use an API? I would use Wireshark to capture the communication and then look through the decode. If your XML messages are plain ASCII you should also be able to spot it when using "Follow TCP stream" on a packet of the communication flow.

permanent link

answered 07 Jun '11, 06:31

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

I am trying to show it in a user-friendly way to prove that there is actually information going across. I am afraid that your suggestion might not be user-friendly enough.

converted to comment due to the Q&A nature of this forum

(07 Jun '11, 06:39) mbands2

Correct, it's not exactly user friendly, but if you're required to prove that your solution works its the most exact way to do that. Why do you need it to be "user friendly"? Proving that something works usually doesn't require a user to check.

(07 Jun '11, 06:53) Jasper ♦♦

I need to display it in a way that non-computer savy people would be able to understand it, if that makes sense?

(07 Jun '11, 06:56) mbands2

Okay, for that you'd probably need to write a program that uses WinPCAP/LibPCAP and parses the incoming frames for the XML structures you're sending. That way you can present it whichever way you think is best for your users. Unfortunately I haven't written a progam like that myself yet, so my expertise in that area is slim at best. Maybe someone of the developers around here can help you out.

(07 Jun '11, 06:59) Jasper ♦♦

Thanks a lot!

(07 Jun '11, 07:26) mbands2

Do you know anything about JPcap? it is a java library for capturing and sending network packets. I'm not sure if it is customizable.

(07 Jun '11, 07:42) mbands2
showing 5 of 6 show 1 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×12

question asked: 07 Jun '11, 06:27

question was seen: 2,477 times

last updated: 07 Jun '11, 07:42

p​o​w​e​r​e​d by O​S​Q​A