wsdl at:

http://nrs.eskom.co.za/xmlvend/docs/Specification/November2005/XMLVend20.asp

command line:

java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2Java -p expertron_client -d xmlbeans -uri xmlvend-full-2.0.wsdl -ss -t -sd

Example soap request (no response yet) (please forgive the formatting - ripped from tcpdump):

POST./axis2/
services/XMLVend
Service2.0.HTTP/
1.1..User-Agent:
.Axis/2.0..SOAPA
ction:.ConfirmCu
stomerRequest..C
onnection:.Keep-
Alive..Host:.192
.168.1.245:8080.
.Transfer-Encodi
ng:.chunked..Con
tent-Type:.text/
xml;.charset=UTF-8

<?xml.versio
n='1.0'.encoding
='UTF-8'?><soape
nv:Envelope.xmln
s:soapenv="http:
//schemas.xmlsoa
p.org/soap/envel
ope/".xmlns:wsa=
"http://schemas.
xmlsoap.org/ws/2
004/08/addressin
g"><soapenv:Head
er><wsa:To.xmlns
:wsa="http://sch
emas.xmlsoap.org
/ws/2004/08/addr
essing">http://1
92.168.1.245:808
0/axis2/services
/XMLVendService2
.0</wsa:To><wsa:
ReplyTo.xmlns:ws
a="http://schema
s.xmlsoap.org/ws
/2004/08/address
ing"><wsa:Addres
s>http://schemas
.xmlsoap.org/ws/
2004/08/addressi
ng/role/anonymou
s</wsa:Address><
/wsa:ReplyTo><ws
a:MessageID.xmln
s:wsa="http://sc
hemas.xmlsoap.or
g/ws/2004/08/add
ressing">A36AABD
A7EA449102611407
772597641</wsa:M
essageID></soape
nv:Header><soape
nv:Body><confirm
CustomerReq.xmln
s="http://www.nr
s.eskom.co.za/xm
lvend/revenue/2.
0/schema"><clien
tID.xmlns="http:
//www.nrs.eskom.
co.za/xmlvend/ba
se/2.0/schema".x
mlns:sch="http:/
/www.nrs.eskom.c
o.za/xmlvend/bas
e/2.0/schema".ty
pe="sch:GenericD
eviceID".id="255
255010"./><termi
nalID.xmlns="htt
p://www.nrs.esko
m.co.za/xmlvend/
base/2.0/schema"
.xmlns:sch="http
://www.nrs.eskom
.co.za/xmlvend/b
ase/2.0/schema".
type="sch:Generi
cDeviceID".id="1
"./><msgID.xmlns
="http://www.nrs
.eskom.co.za/xml
vend/base/2.0/sc
hema".dateTime="
java.util.Gregor
ianCalendar[time
=1140777259494,a
reFieldsSet=true
,areAllFieldsSet
=true,lenient=tr
ue,zone=sun.util
.calendar.ZoneIn
fo[id=&quot;Afri
ca/Johannesburg&
quot;,offset=720
0000,dstSavings=
0,useDaylight=fa
lse,transitions=
7,lastRule=null]
,firstDayOfWeek=
2,minimalDaysInF
....RA=1,YEAR=20
06,MONTH=1,WEEK_
OF_YEAR=9,WEEK_O
F_MONTH=4,DAY_OF
_MONTH=24,DAY_OF
_YEAR=55,DAY_OF_
WEEK=6,DAY_OF_WE
EK_IN_MONTH=4,AM
_PM=1,HOUR=0,HOU
R_OF_DAY=12,MINU
TE=34,SECOND=19,
MILLISECOND=494,
ZONE_OFFSET=7200
000,DST_OFFSET=0
]".uniqueNumber=
"34"./><idMethod
.xmlns:sch="http
://www.nrs.eskom
.co.za/xmlvend/b
ase/2.0/schema".
type="sch:VendID
Method"><sch:met
erIdentifier.xml
ns:sch="http://w
ww.nrs.eskom.co.
za/xmlvend/base/
2.0/schema".type
="sch:MeterCard"
><sch:track2Data
>;00000000010180
9705===990000000
0000?</sch:track
2Data></sch:mete
rIdentifier></id
Method></confirm
CustomerReq></so
apenv:Body></soa
penv:Envelope>


Example request envelope
Rodrigo Ruiz wrote:
Mmm, I guess I'm not seeing the whole picture :-/

Could you send the wsdl, and an example of the full request/response envelopes you are getting? I think it would help me to understand what is happening :-)

Rodrigo Ruiz

Justin Schoeman wrote:

Rodrigo Ruiz wrote:

Justin,

Starting from a WSDL file that uses inheritance, I have successfully generated the beans, and they keep their hierarchy relationship, using Axis 1.2.1 (from within a Eclipse with WST). It only re-generates the beans if they are not in the classpath, so I am able to customize them, and keep the changes.


No sign of any duplicate classes. All the class names match the expected names and namespaces.

Perhaps your problem is that wsdl2java is generating a parallel bean hierarchy on another package. Try to print the class name of your bean's parent class.


Done that - names are correct.

It seems as though the deserialiser creates the object at the level of the hierarchy as specified in the WSDL document, NOT as specified in the type attribute in the message...

-justin


Reply via email to