Invalid element Sax Exception on complex type

"Mary Halfmann" <mhalfmann-/PjRIdhhhskztatW0fm/[email protected]> Thu, 16 Mar 2006 07:18:36 -0500
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <[email protected]>
Hi,

 

I'm new to both WSDL and WSIF.  I have successfully ran the samples
(both simple and complex)

That come with WSIF and have managed to create similar scenarios to
other

Publicly available WSDL locations.

 

I am now attempting to use WSIF to the following WSDL location:

http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?W
SDL

 

The particular functionality I'm attempting to perform is the
ListOfContinentsByName

This involves mapping complex data types.

 

The datatypes I'm mapping were created using AXIS WSDL2Java.  The error
I'm getting 

Is as follows:

 

===============================================

 

 

at
com.supplyscape.eauth.test.WSDLBAD.CountryInfoService.main(CountryInfoSe
rvice.java:94)

org.apache.wsif.WSIFException: exception on AXIS invoke: ; nested
exception is: 

      org.xml.sax.SAXException: Invalid element in
com.supplyscape.eauth.test.WSDLBAD.TContinent - tContinent; nested
exception is: 

      org.xml.sax.SAXException: Invalid element in
com.supplyscape.eauth.test.WSDLBAD.TContinent - tContinent

      at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invok
eAXISDocStyle(Unknown Source)

      at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invok
eRequestResponseOperation(Unknown Source)

      at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.execu
teRequestResponseOperation(Unknown Source)

      at
com.supplyscape.eauth.test.WSDLBAD.CountryInfoService.main(CountryInfoSe
rvice.java:94)

Caused by: org.xml.sax.SAXException: Invalid element in
com.supplyscape.eauth.test.WSDLBAD.TContinent - tContinent

      at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)

      at org.apache.axis.client.Call.invoke(Call.java:1874)

      at org.apache.axis.client.Call.invoke(Call.java:1777)

      at org.apache.axis.client.Call.invoke(Call.java:1315)

      ... 4 more

Caused by: org.xml.sax.SAXException: Invalid element in
com.supplyscape.eauth.test.WSDLBAD.TContinent - tContinent

      at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeseriali
zer.java:252)

      at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:893)

      at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
200)

      at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:684)

      at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)

      at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)

      at org.apache.axis.client.Call.invoke(Call.java:1871)

 

====================================================================

 

I am attaching my main program CountryInfoService.java, and my two data
type objects,

tContinent.java and ListOfContinentsByNameResponse.java.

 

I have parsed through the message board entries going back several years
and have

Found a lot of useful and helpful information to get me this far but
I've 

Not found anything similar to this problem, and I'm afraid this is all
too new to me to have a clear understanding

Where I'm going awry.

 

If anyone could give me some guidance it would be greatly appreciated.

 

 

Best Regards,

Mary
ListOfContinentsByNameResponse.java (application/octet-stream, 4.9 KB) - not displayed
ArrayOftContinent.java (application/octet-stream, 2.5 KB) - not displayed
CountryInfoService.java (application/octet-stream, 4 KB) - not displayed