This is the first time that I am working with axis and I must now
migrate someone else's
code
from axis to axis2, so I'm a little
clueless...
I just have
a few simple questions concerning what
WSDL2Java generated:
In ye olden xsd and
wsdl:
- He declared a simple type
(xs:long), " SessionId " .
- He also added
restrictions (minInclusive and maxInclusive)
to that type
- He also
declared that one of the responses that I send, uses that type as a field .
- From what I've learned, all of this looks right and it worked on
the previous version of axis
- I then
used WSDL2Java to generate code:
it generated com.company.product.webservice.types.SessionId
it also generated the Document that uses this type
- In the generated document, the following methods are
available (well, there are others:):
- int
getSessionId();
- com.company.product.webservice.types.SessionId xgetSessionId();
- com.company.product.webservice.types.SessionId xgetSessionId();
NOW (these questions apply to both getters and
setters)
What is the difference between the two
methods?
Are the restrictions imposed on both of them?
Why does the one method return an
int, when SessionId was defined
as a long?
If I were to go send this Document
off as a SOAP message, what will
I be sending? I mean, if I say
went and set both values or just the one? Will I
be sending both values that I set,
cause that doesn't really make sense
to me.
Thanks,
Marius
