asolfre / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
0 stars 0 forks source link

Exception in thread "main" javax.xml.bind.UnmarshalException: unexpected element #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I had created client files for wsdl using xpc command
2. then i converted in to jar then i wrote a generic client program
3. i ma getting the below error ..please help

Exception in thread "main" javax.xml.bind.UnmarshalException: unexpected 
element (uri:"http://schemas.xmlsoap.org/soap/envelope/", local:"Envelope"). 
Expected elements are 
<{urn:Core.service.livelink.opentext.com}AuthenticateApplication>,<{urn:Core.ser
vice.livelink.opentext.com}AuthenticateApplicationResponse>,<{urn:Core.service.l
ivelink.opentext.com}AuthenticateUser>,<{urn:Core.service.livelink.opentext.com}
AuthenticateUserResponse>,<{urn:Core.service.livelink.opentext.com}AuthenticateU
serWithApplicationToken>,<{urn:Core.service.livelink.opentext.com}AuthenticateUs
erWithApplicationTokenResponse>,<{urn:Core.service.livelink.opentext.com}Combine
ApplicationToken>,<{urn:Core.service.livelink.opentext.com}CombineApplicationTok
enResponse>,<{urn:Core.service.livelink.opentext.com}ImpersonateApplication>,<{u
rn:Core.service.livelink.opentext.com}ImpersonateApplicationResponse>,<{urn:Core
.service.livelink.opentext.com}ImpersonateUser>,<{urn:Core.service.livelink.open
text.com}ImpersonateUserResponse>,<{urn:api.ecm.opentext.com}OTAuthentication>,<
{urn:Core.service.livelink.opentext.com}ValidateUser>,<{urn:Core.service.livelin
k.opentext.com}ValidateUserResponse>
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:258)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:253)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:120)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1063)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:498)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:480)
    at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:150)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:217)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:189)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
    at com.project.research.Test1.parser(Test1.java:80)
    at com.project.research.Test1.main(Test1.java:37)

Original issue reported on code.google.com by harimani...@gmail.com on 12 Oct 2011 at 8:39

GoogleCodeExporter commented 9 years ago
i am using JAX , since i need to send the request as XML and response as XML

Original comment by harimani...@gmail.com on 12 Oct 2011 at 8:43