facebook

intercept SOAP messages

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #269339 Reply

    d_pavel
    Member

    I know we can use the Web Services Explorer to access incoming and outgoing SOAP messages but only when having methods for which we can provide basic data type’s. But this is not useful in my case because we feed in complex objects as params; I can use this tool with simple parameter types (string, int, etc) but for
    providing complex object types at run time I can not so I have to nill it out…; so far I don’t have a way to intercept the outgoing SOAP when providing complex object types as parameters in the method.

    I am using JBoss. Can I enable SOAP tracing in the application server logs? One can do that if using JBossWS but if using XFire I don’t know. Anyway I have a wird error from the log4j upon startup of the JBoss AS:

    20:44:10,039 ERROR [STDERR] log4j:ERROR A “org.jboss.logging.util.OnlyOnceErrorHandler” object is not assignable to a “org.apache.log4j.spi.ErrorHandler” variable.
    20:44:10,039 ERROR [STDERR] log4j:ERROR The class “org.apache.log4j.spi.ErrorHandler” was loaded by
    20:44:10,040 ERROR [STDERR] log4j:ERROR [WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ———-> Parent Classloader:
    java.net.FactoryURLClassLoader@406c7e
    ] whereas object of type
    20:44:10,040 ERROR [STDERR] log4j:ERROR “org.jboss.logging.util.OnlyOnceErrorHandler” was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@b166b5].
    20:44:10,084 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
    20:44:10,084 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
    20:44:10,086 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165)

    Everything is still working but I can not fix this log4j error. JBoss’es log4j is using a DailyRollingFileAppender as it is configured. I don’t know what component is trying to load a org.apache.log4j.spi.ErrorHandler . Can you help me with this please ?

    #269358 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    This is a JBoss/Logging specific question, and unfortunately I just don’t know the answer.

    #269360 Reply

    d_pavel
    Member

    Hi,

    Sorry but my post was not only a JBoss/logging question, it’s regarding also XFire SOAP traffic tracing.

    OK let’s put it this way: how can one trace the SOAP messages when using XFire to develop web services ???

    Any suggestions are greatly appreciated,
    Thanks in advance.

    #269361 Reply

    tomeksz
    Member

    You can use TCPMON ( the one build in MyEclipse or from https://tcpmon.dev.java.net/ ).
    You can also tell XFire to log all traffic to file, see http://xfire.codehaus.org/Logging

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: intercept SOAP messages

You must be logged in to post in the forum log in