in Education by
I'm getting below error while fetching a response from SOAP service from a java client: [javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.carefirst.com/Enterprise/DAC/AddressRetrievalSchema", local:"AddressInfoResponse"). Expected elements are (none)] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:447) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:372) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:342) But I was able to successfully connect to the service from Eclipse but when deployed the jar to my webshere server i am getting this error. There are no service end, it was able to successfully send the below response: <?xml version="1.0" encoding="UTF-8"?> true 222EOB222 103 North Washington Street Suitland 103 N WASHINGTON ST BRYANS ROAD mailed WSDL <?xml version="1.0" encoding="UTF-8"?> <!--Created by TIBCO WSDL--> Could anyone please help me this JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The namespace of AddressInfoResponse in the shared response is according to WSDL but the unmarshaller is not expecting AddressInfoResponse element to be in namespace http://www.carefirst.com/Enterprise/DAC/AddressRetrievalSchema. It means the namespace is incorrect or empty in the java object against which the unmarshaller is trying to unmarshal. Please check the namespace against AddressInfoResponse object in your soap client. You need to check package-info class if you have auto generated the objects. In case you have created the client manually using SAAJ then you probably have missed the namespace for this element.

Related questions

0 votes
    How response is sent in XML-RPC?...
asked Nov 7, 2020 in Education by Editorial Staff
0 votes
    The client expects a timely response from the service and might even block while it waits. This represents the _________ client ... B. One to one C. One to many D. Synchronous...
asked Jan 10, 2023 in Technology by JackTerrance
0 votes
0 votes
    I've got a problem similar to this question: SAXParseException localized I'm trying to parse a XML file ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    I have googled a lot about pagination of importing XML data into InDesign CS5, but problems are still ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    I have googled a lot about pagination of importing XML data into InDesign CS5, but problems are still ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    Which method to use while working with XML fragments, instead of XML()? (a) XMLInterface() (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    I have two tables in my database which are relevant for this problem: exercise_state with following fields: ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 3, 2022 in Education by JackTerrance
0 votes
    I am trying to decrypt some data from a DB and have run into some AEADBadTagExceptions, but not always. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    Calling javax.persistence.criteria.Path.get(String name) fails for the simple class hierarchy detailed below. The ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 15, 2022 in Education by JackTerrance
0 votes
    Attackers commonly target ____________ for fetching IP address of a target or victim user. (a) websites (b) web ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 4, 2021 in Education by JackTerrance
0 votes
    I am trying to bind the value of a property (MyTitle) of a class (MainWindow) that derives from ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 19, 2022 in Education by JackTerrance
0 votes
    I have a json file contains a icons object like this: "icons" : { "logo" : "fa fa-caret-down ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I've got a Core Data application that has an Event class, which has a start date and a finish ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I've installed VisualSVN on my Windows Server 2008. I have several IP addresses on this server, but I ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
...