writing the request and response to a log file

View: New views
3 Messages — Rating Filter:   Alert me  

writing the request and response to a log file

by Steel City Phantom-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

im working on creating a soap client to a VERY poorly written web service.  im fairly certain that the reason its not working is because the headers or namespaces are wrong but i can't see whats going back and forth between my dev machine and the server.  is there a way to get jibx/ws to write all requests and responses to a log file so i can see whats going on?

--
You want it fast, cheap, or right.  Pick two!!

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users

Re: writing the request and response to a log file

by jcaristi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

You can look at the request and response with TCPMon :

 

http://ws.apache.org/commons/tcpmon/

 

You could also use SoapUI to manually interact with the service:

 

http://www.soapui.org/

 


From: Steel City Phantom [mailto:scphantm@...]
Sent: Friday, October 30, 2009 11:29 AM
To: jibx-users@...
Subject: [jibx-users] writing the request and response to a log file

 

im working on creating a soap client to a VERY poorly written web service.  im fairly certain that the reason its not working is because the headers or namespaces are wrong but i can't see whats going back and forth between my dev machine and the server.  is there a way to get jibx/ws to write all requests and responses to a log file so i can see whats going on?

--
You want it fast, cheap, or right.  Pick two!!



STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at gc@...,
and destroy all copies of this message and any attachments.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users

Re: writing the request and response to a log file

by Nigel Charman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can use interceptors to log the request and response.  The interceptor example includes logging on the client side [1].  For now, JiBX/WS only includes transport interceptors for the HTTP transport.  XML Stream interceptors are planned for a future release, which will intercept just the payload and be transport independent.

nigel.

[1] http://jibx.svn.sourceforge.net/viewvc/jibx/jibxws/trunk/examples/http-servlet-interceptor/build/src/org/jibx/ws/example/interceptor/client/HelloClient.java?revision=322&view=markup

Steel City Phantom wrote:
im working on creating a soap client to a VERY poorly written web service.  im fairly certain that the reason its not working is because the headers or namespaces are wrong but i can't see whats going back and forth between my dev machine and the server.  is there a way to get jibx/ws to write all requests and responses to a log file so i can see whats going on?

--
You want it fast, cheap, or right.  Pick two!!

------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference

_______________________________________________ jibx-users mailing list jibx-users@... https://lists.sourceforge.net/lists/listinfo/jibx-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users