I've created the client using JBossTools to consume such a webservice http://cert.webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/OTA_TravelItineraryReadLLS1.11.1RQ.xsd
The following code if (response.getErrors() != null) { System.out.println("error message:: " + response.getErrors().getError().getErrorMessage()); System.out.println("error info:: " + response.getErrors().getError().getErrorInfo() .getMessage()); System.out.println("severity:: " + response.getErrors().getError().getSeverity()); } snippet gives: error message:: JBXE:cat:201 2010-02-08 08:37:12 error info:: org.jibx.runtime.JiBXException: Expected "{http://webservices.sabre.com/sabreXML/2003/07}MessagingDetails" end tag, found "{http://webservices.sabre.com/sabreXML/2003/07}ApplicationID" end tag (line 1, col 430) severity:: High I'm attaching the file with the generated description [Otatravelitinerary.java]. What's wrong with Sabre Web Service and how to solve this problem?__________ Information from ESET Smart Security, version of virus signature database 4841 (20100206) __________
The message was checked by ESET Smart Security. http://www.eset.com __________ Information from ESET Smart Security, version of virus signature database 4841 (20100206) __________ The message was checked by ESET Smart Security. http://www.eset.com
package com.sabre.webservices.websvc; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="POS" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Source" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="PseudoCityCode"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <minLength value="1"/> * <maxLength value="16"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="TPA_Extensions" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="MessagingDetails" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="MDRSubset" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="ApplicationID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="UniqueID"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="TPA_Extensions" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Transaction" maxOccurs="unbounded" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * <attribute name="ID"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <minLength value="1"/> * <maxLength value="32"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * <attribute name="EchoToken"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <minLength value="1"/> * <maxLength value="64"/> * </restriction> * </simpleType> * </attribute> * <attribute name="TimeStamp" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="Target" type="{http://www.w3.org/2001/XMLSchema}string" default="Production" /> * <attribute name="Version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="SequenceNmbr" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" /> * <attribute name="PrimaryLangID" type="{http://www.w3.org/2001/XMLSchema}language" /> * <attribute name="AltLangID" type="{http://www.w3.org/2001/XMLSchema}language" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "pos", "tpaExtensions", "uniqueID" }) @XmlRootElement(name = "OTA_TravelItineraryReadRQ", namespace = "http://webservices.sabre.com/sabreXML/2003/07") public class OTATravelItineraryReadRQ { @XmlElement(name = "POS", namespace = "http://webservices.sabre.com/sabreXML/2003/07") protected OTATravelItineraryReadRQ.POS pos; @XmlElement(name = "TPA_Extensions", namespace = "http://webservices.sabre.com/sabreXML/2003/07") protected OTATravelItineraryReadRQ.TPAExtensions tpaExtensions; @XmlElement(name = "UniqueID", namespace = "http://webservices.sabre.com/sabreXML/2003/07", required = true) protected OTATravelItineraryReadRQ.UniqueID uniqueID; @XmlAttribute(name = "EchoToken") protected String echoToken; @XmlAttribute(name = "TimeStamp") protected String timeStamp; @XmlAttribute(name = "Target") protected String target; @XmlAttribute(name = "Version", required = true) protected String version; @XmlAttribute(name = "SequenceNmbr") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger sequenceNmbr; @XmlAttribute(name = "PrimaryLangID") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") protected String primaryLangID; @XmlAttribute(name = "AltLangID") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") protected String altLangID; /** * Gets the value of the pos property. * * @return * possible object is * {...@link OTATravelItineraryReadRQ.POS } * */ public OTATravelItineraryReadRQ.POS getPOS() { return pos; } /** * Sets the value of the pos property. * * @param value * allowed object is * {...@link OTATravelItineraryReadRQ.POS } * */ public void setPOS(OTATravelItineraryReadRQ.POS value) { this.pos = value; } /** * Gets the value of the tpaExtensions property. * * @return * possible object is * {...@link OTATravelItineraryReadRQ.TPAExtensions } * */ public OTATravelItineraryReadRQ.TPAExtensions getTPAExtensions() { return tpaExtensions; } /** * Sets the value of the tpaExtensions property. * * @param value * allowed object is * {...@link OTATravelItineraryReadRQ.TPAExtensions } * */ public void setTPAExtensions(OTATravelItineraryReadRQ.TPAExtensions value) { this.tpaExtensions = value; } /** * Gets the value of the uniqueID property. * * @return * possible object is * {...@link OTATravelItineraryReadRQ.UniqueID } * */ public OTATravelItineraryReadRQ.UniqueID getUniqueID() { return uniqueID; } /** * Sets the value of the uniqueID property. * * @param value * allowed object is * {...@link OTATravelItineraryReadRQ.UniqueID } * */ public void setUniqueID(OTATravelItineraryReadRQ.UniqueID value) { this.uniqueID = value; } /** * Gets the value of the echoToken property. * * @return * possible object is * {...@link String } * */ public String getEchoToken() { return echoToken; } /** * Sets the value of the echoToken property. * * @param value * allowed object is * {...@link String } * */ public void setEchoToken(String value) { this.echoToken = value; } /** * Gets the value of the timeStamp property. * * @return * possible object is * {...@link String } * */ public String getTimeStamp() { return timeStamp; } /** * Sets the value of the timeStamp property. * * @param value * allowed object is * {...@link String } * */ public void setTimeStamp(String value) { this.timeStamp = value; } /** * Gets the value of the target property. * * @return * possible object is * {...@link String } * */ public String getTarget() { if (target == null) { return "Production"; } else { return target; } } /** * Sets the value of the target property. * * @param value * allowed object is * {...@link String } * */ public void setTarget(String value) { this.target = value; } /** * Gets the value of the version property. * * @return * possible object is * {...@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {...@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the sequenceNmbr property. * * @return * possible object is * {...@link BigInteger } * */ public BigInteger getSequenceNmbr() { return sequenceNmbr; } /** * Sets the value of the sequenceNmbr property. * * @param value * allowed object is * {...@link BigInteger } * */ public void setSequenceNmbr(BigInteger value) { this.sequenceNmbr = value; } /** * Gets the value of the primaryLangID property. * * @return * possible object is * {...@link String } * */ public String getPrimaryLangID() { return primaryLangID; } /** * Sets the value of the primaryLangID property. * * @param value * allowed object is * {...@link String } * */ public void setPrimaryLangID(String value) { this.primaryLangID = value; } /** * Gets the value of the altLangID property. * * @return * possible object is * {...@link String } * */ public String getAltLangID() { return altLangID; } /** * Sets the value of the altLangID property. * * @param value * allowed object is * {...@link String } * */ public void setAltLangID(String value) { this.altLangID = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Source" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="PseudoCityCode"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <minLength value="1"/> * <maxLength value="16"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "source" }) public static class POS { @XmlElement(name = "Source", namespace = "http://webservices.sabre.com/sabreXML/2003/07") protected OTATravelItineraryReadRQ.POS.Source source; /** * Gets the value of the source property. * * @return * possible object is * {...@link OTATravelItineraryReadRQ.POS.Source } * */ public OTATravelItineraryReadRQ.POS.Source getSource() { return source; } /** * Sets the value of the source property. * * @param value * allowed object is * {...@link OTATravelItineraryReadRQ.POS.Source } * */ public void setSource(OTATravelItineraryReadRQ.POS.Source value) { this.source = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="PseudoCityCode"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <minLength value="1"/> * <maxLength value="16"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Source { @XmlAttribute(name = "PseudoCityCode") protected String pseudoCityCode; /** * Gets the value of the pseudoCityCode property. * * @return * possible object is * {...@link String } * */ public String getPseudoCityCode() { return pseudoCityCode; } /** * Sets the value of the pseudoCityCode property. * * @param value * allowed object is * {...@link String } * */ public void setPseudoCityCode(String value) { this.pseudoCityCode = value; } } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="MessagingDetails" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="MDRSubset" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="ApplicationID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "messagingDetails" }) public static class TPAExtensions { @XmlElement(name = "MessagingDetails", namespace = "http://webservices.sabre.com/sabreXML/2003/07") protected OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails messagingDetails; /** * Gets the value of the messagingDetails property. * * @return * possible object is * {...@link OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails } * */ public OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails getMessagingDetails() { return messagingDetails; } /** * Sets the value of the messagingDetails property. * * @param value * allowed object is * {...@link OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails } * */ public void setMessagingDetails(OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails value) { this.messagingDetails = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="MDRSubset" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="ApplicationID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "mdrSubset", "applicationID" }) public static class MessagingDetails { @XmlElement(name = "MDRSubset", namespace = "http://webservices.sabre.com/sabreXML/2003/07") protected OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails.MDRSubset mdrSubset; @XmlElement(name = "ApplicationID", namespace = "http://webservices.sabre.com/sabreXML/2003/07") protected String applicationID; /** * Gets the value of the mdrSubset property. * * @return * possible object is * {...@link OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails.MDRSubset } * */ public OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails.MDRSubset getMDRSubset() { return mdrSubset; } /** * Sets the value of the mdrSubset property. * * @param value * allowed object is * {...@link OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails.MDRSubset } * */ public void setMDRSubset(OTATravelItineraryReadRQ.TPAExtensions.MessagingDetails.MDRSubset value) { this.mdrSubset = value; } /** * Gets the value of the applicationID property. * * @return * possible object is * {...@link String } * */ public String getApplicationID() { return applicationID; } /** * Sets the value of the applicationID property. * * @param value * allowed object is * {...@link String } * */ public void setApplicationID(String value) { this.applicationID = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class MDRSubset { @XmlAttribute(name = "Code") protected String code; /** * Gets the value of the code property. * * @return * possible object is * {...@link String } * */ public String getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {...@link String } * */ public void setCode(String value) { this.code = value; } } } } /** * An identifier used to uniquely reference an object in a system (e.g. an airline reservation reference, customer profile reference, booking confirmation number, or a reference to a previous availability quote). * * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="TPA_Extensions" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Transaction" maxOccurs="unbounded" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * <attribute name="ID"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <minLength value="1"/> * <maxLength value="32"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tpaExtensions" }) public static class UniqueID { @XmlElement(name = "TPA_Extensions", namespace = "http://webservices.sabre.com/sabreXML/2003/07") protected OTATravelItineraryReadRQ.UniqueID.TPAExtensions tpaExtensions; @XmlAttribute(name = "ID") protected String id; /** * Gets the value of the tpaExtensions property. * * @return * possible object is * {...@link OTATravelItineraryReadRQ.UniqueID.TPAExtensions } * */ public OTATravelItineraryReadRQ.UniqueID.TPAExtensions getTPAExtensions() { return tpaExtensions; } /** * Sets the value of the tpaExtensions property. * * @param value * allowed object is * {...@link OTATravelItineraryReadRQ.UniqueID.TPAExtensions } * */ public void setTPAExtensions(OTATravelItineraryReadRQ.UniqueID.TPAExtensions value) { this.tpaExtensions = value; } /** * Gets the value of the id property. * * @return * possible object is * {...@link String } * */ public String getID() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {...@link String } * */ public void setID(String value) { this.id = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Transaction" maxOccurs="unbounded" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "transaction" }) public static class TPAExtensions { @XmlElement(name = "Transaction", namespace = "http://webservices.sabre.com/sabreXML/2003/07") protected List<OTATravelItineraryReadRQ.UniqueID.TPAExtensions.Transaction> transaction; /** * Gets the value of the transaction property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the transaction property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTransaction().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {...@link OTATravelItineraryReadRQ.UniqueID.TPAExtensions.Transaction } * * */ public List<OTATravelItineraryReadRQ.UniqueID.TPAExtensions.Transaction> getTransaction() { if (transaction == null) { transaction = new ArrayList<OTATravelItineraryReadRQ.UniqueID.TPAExtensions.Transaction>(); } return this.transaction; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Transaction { @XmlAttribute(name = "Code") protected String code; /** * Gets the value of the code property. * * @return * possible object is * {...@link String } * */ public String getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {...@link String } * */ public void setCode(String value) { this.code = value; } } } } }
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users