RE: Unexpected subelement while parsing nilled response

2009-02-06 Thread Phil Davies
Ah, thank you for that observation.

 

I am a little confused as to how it happened that way, because this wsdl
and the service itself were both created using axis2's java2wsdl
utility.

 

I will play around with switches to see if I can get the responses to
match the namespaces.

 

-Phil

According the wsdl the namespace of the erroMessage element is
http://webservices.basic.wrapper.authentisec.fod.com/xsd. but at the
response it is http://webservices.basic.wrapper.authentisec.fod.com
http://webservices.basic.wrapper.authentisec.fod.com/ 

thanks,
Amila.

 



Unexpected subelement while parsing nilled response

2009-02-05 Thread Phil Davies
I have used axis2 to build client stubs using:
wsdl2java -s -u -uw -or -uri wsdl-jimbo.wsdl

and when I hit the server I got a response which looked fine, but my
client rejects it with the error:

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement errorMessage

I have no idea why - it looks like it should be completely happy with
this kind of element here. Any help would be greatly appreciated.

Thanks,
Phil
-SOAP response, then WSDL file--
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
  ns:loginResponse
xmlns:ns=http://webservices.basic.wrapper.authentisec.fod.com;
 ns:return
type=com.fod.authentisec.wrapper.basic.webservices.WsResponse
ns:errorMessage xsi:nil=true
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance/
 
ns:sessionId186311778900720554061472776531421868378/ns:sessionId
ns:statusSUCCESS/ns:status
ns:tins xsi:nil=true
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance/
ns:tokenDetail xsi:nil=true
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance/
ns:wsTokenDataResponse xsi:nil=true
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance/
 /ns:return
  /ns:loginResponse
   /soapenv:Body
/soapenv:Envelope
-
wsdl:definitions
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;

xmlns:thisNs=http://webservices.basic.wrapper.authentisec.fod.com;
xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl;
xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;

xmlns:xsdNs=http://webservices.basic.wrapper.authentisec.fod.com/xsd;
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/;

targetNamespace=http://webservices.basic.wrapper.authentisec.fod.com;
wsdl:documentation
Please Type your service description here
/wsdl:documentation
wsdl:types
xs:schema
 
xmlns:ax21=http://webservices.basic.wrapper.authentisec.fod.com/xsd;
attributeFormDefault=qualified
elementFormDefault=qualified
 
targetNamespace=http://webservices.basic.wrapper.authentisec.fod.com/xs
d
xs:complexType name=WsResponse
xs:sequence
xs:element minOccurs=0 maxOccurs=1
name=errorMessage type=xs:string/
xs:element minOccurs=0 name=sessionId
nillable=true type=xs:string/
xs:element minOccurs=1 name=status
type=xs:string/
xs:element maxOccurs=unbounded minOccurs=0
name=tins nillable=true type=xs:string/
xs:element minOccurs=0 name=tokenDetail
nillable=true type=ax21:WsTokenDetails/
xs:element maxOccurs=unbounded minOccurs=0
name=wsTokenDataResponse nillable=true type=ax21:WsTokenData/
/xs:sequence
/xs:complexType
xs:complexType name=WsTokenDetails
xs:sequence
xs:element minOccurs=0 name=additionalPayload
nillable=true type=xs:string/
xs:element minOccurs=0 name=embeddedPayload
nillable=true type=xs:string/
xs:element minOccurs=0 name=endDate
nillable=true type=xs:dateTime/
xs:element minOccurs=0 name=exported
nillable=true type=xs:boolean/
xs:element minOccurs=0 name=pin nillable=true
type=xs:string/
xs:element minOccurs=0 name=pinSecured
nillable=true type=xs:boolean/
xs:element minOccurs=0 name=redemptionCount
nillable=true type=xs:long/
xs:element minOccurs=0 name=redemptionLimit
nillable=true type=xs:long/
xs:element minOccurs=0 name=startDate
nillable=true type=xs:dateTime/
xs:element minOccurs=0 name=suspended
nillable=true type=xs:boolean/
xs:element minOccurs=0 name=tin nillable=true
type=xs:string/
xs:element minOccurs=0 name=tokenStatusName
nillable=true type=xs:string/
xs:element minOccurs=0 name=tokenTypeName
nillable=true type=xs:string/
/xs:sequence
/xs:complexType
xs:complexType name=WsTokenData
xs:sequence
xs:element minOccurs=0 name=errorMessage
nillable=true type=xs:string/
xs:element minOccurs=0 name=status
nillable=true type=xs:string/
xs:element minOccurs=0 name=tin nillable=true
type=xs:string/
xs:element minOccurs=0 name=tokenData
nillable=true type=xs:string/
/xs:sequence
/xs:complexType
xs:complexType name=WsKeyStringPair
xs:sequence