Re: Invalid element Sax Exception on complex type
Miguel Angel Gomez Zotano <miguel_angel.gomez.zotano-01M8Xu7eaTTQT0dZR+AlfA@public.gmane.org> Thu, 16 Mar 2006 16:18:06 +0100
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <OF7A98131A.04141CDB-ONC1257133.0053F840-C1257133.00540523@es.ibm.com> |
Pay attention in class ArrayOftContinent because is not serializable.
"Mary Halfmann"
<mhalfmann@supply To: <[email protected]>
scape.com> cc:
Subject: Invalid element Sax Exception on complex type
16/03/2006 13:18
Please respond to
wsif-user
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?WSDL
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(
CountryInfoService.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.invokeAXISDocStyle(Unknown
Source)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(Unknown
Source)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(Unknown
Source)
at com.supplyscape.eauth.test.WSDLBAD.CountryInfoService.main(
CountryInfoService.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(
BeanDeserializer.java:252)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(
DeserializationContextImpl.java:893)
at org.apache.axis.message.SAX2EventRecorder.replay(
SAX2EventRecorder.java:200)
at org.apache.axis.message.MessageElement.publishToHandler(
MessageElement.java: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 has been removed from this note on
March 16 2006 by Miguel Angel Gomez Zotano
#### ArrayOftContinent.java has been removed from this note on March 16
2006 by Miguel Angel Gomez Zotano
#### CountryInfoService.java has been removed from this note on March 16
2006 by Miguel Angel Gomez Zotano