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

    SOAP response not parsing into Java objects

    dnhanson

      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.

        • 1. Re: SOAP response not parsing into Java objects
          jimdwyer

          I am seeing similar issues using the same JBossWS, app server and JDK. I played around with the SOAP annotation elements and got lots of different results. That was when I went home for the weekend. ;-) I will bang on it some more but am also a bit baffled.

          • 2. Re: SOAP response not parsing into Java objects
            dnhanson

            Okay, I solved my problem. Sort of. Basically, it was an annotation thing. We're trying to use the same package to evaluate SOAP and REST alternatives for a service layer, and some of the REST stuff was screwing up our namespaces. So now I have that problem to deal with, but that's beyond the scope of this forum.

            Thanks for the help.