I am new to both Java programming and Axis2 so forgive me if this is covered
somewhere that I was not able to find. I have the following base class:

Public class Base {
                Private String id;
                Private String name;
                <appropriate getters and setters>
}

And an extension

Public class ExtendedBase extends Base {
                Private String username;
                Private String password;
                Private String ipAddress;
                <appropriate getters and setters>
}
 
I have a 3 stage function that will fill in certain parts of this class
based on which stage is called:
 
Public class Service {
                Public ExtendedBase[] findObjs(String type, Range range,
ExtendedBase[] extendedObjs) {
                                If (ExtendedBase.length > 0) {
        
Logger.print(ExtendedBase[0].getIpAddress());
                                }
                                <code to call stage 1 or 2 fill in depending
on what the "type" is>
        
Logger.print(ExtendedBase[0].getIpAddress());
                                Return filledInBaseArray;
                }
}
 
My internal JUnit tests work just fine, however when I try to go through the
Axis2SimpleServer to test the entire stack (either with a .NET or gSoap/C++
client) some weird things happen.
 
My first stage properly fills in the ip address only for each ExtendedBase
object in the Range (IP address range) that was passed, and returns the
array of found objects. I can see in my client that the correct number of
array elements are returned and the IP address property is set correctly. In
my client code I then set the username and password and then pass that array
is the 3rd parameter to the findObjs function. I can see the soap message on
the wire (via WireShark), however when it gets to the findObjs function, all
of the properties of every element of the array are null EXCEPT the username
and password that I set in the client. All of the properties that were
returned from the 1st stage find never make it past Axis2 into my POJO
function.
 
Is there something I am doing wrong? I have enabled every debug flag I can
think of in my log4j.properties file, but can't see the raw soap message
that Axis2's Simple Server gets and what it passes to the POJO method.
 
Neil



Reply via email to