2 Replies Latest reply on May 27, 2008 12:15 PM by Dylan Hanson

    SOAP response not parsing into Java objects

    Dylan Hanson Newbie

      Good morning all.

      I am running JBossWs 3.0.1 (about 95% sure of the version) on JBoss App Server 4.2.2 on the service side. The JDK over there is 1.6.0_03.

      When I send a request to my service using SOAPui, I get back the expected XML in the SOAP message. When I send a request using the client stubs I generated using wsconsume, the outgoing and incoming messages look good, and the proper objects get created by the XML parser (this service returns a custom object), but all fields are populated to their default values (null for strings, 0 for ints).

      When I turn Wireshark on, all the data is definitely there to create the objects and populate them. The XML within the envelope appears to be well-formed. I don't get any exceptions until the bad objects percolate through my code. I assume that this is a jaxb problem, but I'm honestly at a loss as to how to fix it. Does anyone have any ideas?

      I'll keep looking for answers and will post what I did wrong if I find it. If anyone else has seen this or thinks they have and want more information, please let me know.

      And thanks for the help, all who read this.