javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

View: New views
11 Messages — Rating Filter:   Alert me  

javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

by LeRoy Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I was wondering if anyone has ever encountered this exception:

 

javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

 

From what I can find on the internet it seems to be coming out of the SAAJMessage class as the result of a SOAPException, but I have found no known causes of the Exception. 

 

Here's the SOAP response that caused the exception:

 

HTTP/1.1 200 OK
Content-Type: text/xml;charset=UTF-8
Content-Length: 733
Date: Wed, 16 Jul 2008 18:29:14 GMT
Server: Tracteur Turbo

 

<?xml version="1.0" encoding="UTF-8"?>
   <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> 
      <S:Header>   
         <wsp:authentication xmlns:wsp="http://xmlota.wspan.com/webservice/">     
            <wsp:userid>***</wsp:userid>     
            <wsp:password>***</wsp:password>     
            <wsp:payloadVersion>2007B</wsp:payloadVersion>   
         </wsp:authentication> 
      </S:Header> 
      <S:Body>   
         <OTA_HotelAvailRS xmlns="http://www.opentravel.org/OTA/2003/05" TimeStamp="2008-07-16T20:29:14.014+02:00" Version="1.006" PrimaryLangID="en" Target="Test" EchoToken="AV">     
            <Errors>       
               <Error Type="3" Code="400">HOTEL NOT IN THE DATA BASE</Error>     
            </Errors>   
         </OTA_HotelAvailRS> 
      </S:Body>
   </S:Envelope>



Re: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

by LeRoy Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FYI - I am using JAX-WS RI 2.1.3-b02. 

 

Also, I am running my client with schema validation turned on.  When I turn it off, I don't get this exception.  Also, the client is a stand alone Java app running as a windows service.

 

Any ideas?

 



--- On Wed, 7/16/08, LeRoy Hall <leroy_e_hall@...> wrote:

From: LeRoy Hall <leroy_e_hall@...>
Subject: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
To: "jax-ws forum" <dev@...>
Date: Wednesday, July 16, 2008, 1:34 PM

I was wondering if anyone has ever encountered this exception:

 

javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

 

From what I can find on the internet it seems to be coming out of the SAAJMessage class as the result of a SOAPException, but I have found no known causes of the Exception. 

 

Here's the SOAP response that caused the exception:

 

HTTP/1.1 200 OK
Content-Type: text/xml;charset=UTF-8
Content-Length: 733
Date: Wed, 16 Jul 2008 18:29:14 GMT
Server: Tracteur Turbo

 

<?xml version="1.0" encoding="UTF-8"?>
   <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> 
      <S:Header>   
         <wsp:authentication xmlns:wsp="http://xmlota.wspan.com/webservice/">     
            <wsp:userid>***</wsp:userid>     
            <wsp:password>***</wsp:password>     
            <wsp:payloadVersion>2007B</wsp:payloadVersion>   
         </wsp:authentication> 
      </S:Header> 
      <S:Body>   
         <OTA_HotelAvailRS xmlns="http://www.opentravel.org/OTA/2003/05" TimeStamp="2008-07-16T20:29:14.014+02:00" Version="1.006" PrimaryLangID="en" Target="Test" EchoToken="AV">     
            <Errors>       
               <Error Type="3" Code="400">HOTEL NOT IN THE DATA BASE</Error>     
            </Errors>   
         </OTA_HotelAvailRS> 
      </S:Body>
   </S:Envelope>




Re: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

by Jitendra Kotamraju :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When the client receives the exception, did you print stack trace ? Does
the exception has a cause ? Can you see the client exception in debugger.

XMLStreamException doesn't chain the exceptions, hence we use
XMLStreamException2.

thanks,
Jitu

LeRoy Hall wrote:

>
> FYI - I am using JAX-WS RI 2.1.3-b02.
>
>  
>
> Also, I am running my client with schema validation turned on.  When I
> turn it off, I don't get this exception.  Also, the client is a stand
> alone Java app running as a windows service.
>
>  
>
> Any ideas?
>
>  
>
>
>
> --- On *Wed, 7/16/08, LeRoy Hall /<leroy_e_hall@...>/* wrote:
>
>     From: LeRoy Hall <leroy_e_hall@...>
>     Subject: javax.xml.ws.WebServiceException:
>     com.sun.istack.XMLStreamException2
>     To: "jax-ws forum" <dev@...>
>     Date: Wednesday, July 16, 2008, 1:34 PM
>
>     I was wondering if anyone has ever encountered this exception:
>
>      
>
>     javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
>
>      
>
>     From what I can find on the internet it seems to be coming out of
>     the SAAJMessage class as the result of a SOAPException, but I have
>     found no known causes of the Exception.
>
>      
>
>     Here's the SOAP response that caused the exception:
>
>      
>
>     HTTP/1.1 200 OK
>     Content-Type: text/xml;charset=UTF-8
>     Content-Length: 733
>     Date: Wed, 16 Jul 2008 18:29:14 GMT
>     Server: Tracteur Turbo
>
>      
>
>     <?xml version="1.0" encoding="UTF-8"?>
>        <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
>           <S:Header>  
>              <wsp:authentication
>     xmlns:wsp="http://xmlota.wspan.com/webservice/">    
>                 <wsp:userid>***</wsp:userid>    
>                 <wsp:password>***</wsp:password>    
>                 <wsp:payloadVersion>2007B</wsp:payloadVersion>  
>              </wsp:authentication>
>           </S:Header>
>           <S:Body>  
>              <OTA_HotelAvailRS
>     xmlns="http://www.opentravel.org/OTA/2003/05"
>     TimeStamp="2008-07-16T20:29:14.014+02:00" Version="1.006"
>     PrimaryLangID="en" Target="Test" EchoToken="AV">    
>                 <Errors>      
>                    <Error Type="3" Code="400">HOTEL NOT IN THE DATA
>     BASE</Error>    
>                 </Errors>  
>              </OTA_HotelAvailRS>
>           </S:Body>
>        </S:Envelope>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

by LeRoy Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Below is the stack trace. Looks like it's caused by the following though:

 

Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'OTA_HotelAvailRS'.

 

INFO   | jvm 1    | 2008/07/20 14:49:17 | javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.doProcess(AbstractSchemaValidationTube.java:206)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.processResponse(AbstractSchemaValidationTube.java:184)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:605)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.client.Stub.process(Stub.java:248)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at $Proxy39.otaHotelAvail(Unknown Source)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.travelport.imb.Accor.map.AvailRequest.invokeWS(AvailRequest.java:205)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.worldspan.imb.handlers.AccorHandler.SendRecvVendor(AccorHandler.java:245)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.worldspan.imb.handlers.MessageHandler.Process(MessageHandler.java:110)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.worldspan.imb.handlers.MQMessageHandler.onMessage(MQMessageHandler.java:119)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2812)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406)
INFO   | jvm 1    | 2008/07/20 14:49:17 |  at java.lang.Thread.run(Thread.java:595)
INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by: com.sun.istack.XMLStreamException2
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:185)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:170)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:147)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at javax.xml.validation.Validator.validate(Validator.java:82)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.doProcess(AbstractSchemaValidationTube.java:204)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 18 more
INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by: com.sun.istack.XMLStreamException2
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:270)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.istack.XMLStreamReaderToContentHandler.bridge(XMLStreamReaderToContentHandler.java:109)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:182)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 23 more
INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'OTA_HotelAvailRS'.
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1944)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:264)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 25 more
INFO   | jvm 1    | 2008/07/20 14:49:18 | java.lang.StringIndexOutOfBoundsException: String index out of range: -24
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at java.lang.String.substring(String.java:1768)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.worldspan.imb.util.HTL4JAppender.append(HTL4JAppender.java:58)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at org.apache.log4j.Category.callAppenders(Category.java:194)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at org.apache.log4j.Category.forcedLog(Category.java:379)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at org.apache.log4j.Category.warn(Category.java:999)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.travelport.imb.Accor.map.AvailRequest.invokeWS(AvailRequest.java:221)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.worldspan.imb.handlers.AccorHandler.SendRecvVendor(AccorHandler.java:245)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.worldspan.imb.handlers.MessageHandler.Process(MessageHandler.java:110)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.worldspan.imb.handlers.MQMessageHandler.onMessage(MQMessageHandler.java:119)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2812)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406)
INFO   | jvm 1    | 2008/07/20 14:49:18 |  at java.lang.Thread.run(Thread.java:595)

--- On Thu, 7/17/08, Jitendra Kotamraju <Jitendra.Kotamraju@...> wrote:

From: Jitendra Kotamraju <Jitendra.Kotamraju@...>
Subject: Re: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
To: dev@...
Date: Thursday, July 17, 2008, 4:22 PM

When the client receives the exception, did you print stack trace ? Does 
the exception has a cause ? Can you see the client exception in debugger.

XMLStreamException doesn't chain the exceptions, hence we use 
XMLStreamException2.

thanks,
Jitu

LeRoy Hall wrote:
>
> FYI - I am using JAX-WS RI 2.1.3-b02. 
>
>  
>
> Also, I am running my client with schema validation turned on.  When I 
> turn it off, I don't get this exception.  Also, the client is a stand 
> alone Java app running as a windows service.
>
>  
>
> Any ideas?
>
>  
>
>
>
> --- On *Wed, 7/16/08, LeRoy Hall /<leroy_e_hall@...>/* wrote:
>
>     From: LeRoy Hall <leroy_e_hall@...>
>     Subject: javax.xml.ws.WebServiceException:
>     com.sun.istack.XMLStreamException2
>     To: "jax-ws forum" <dev@...>
>     Date: Wednesday, July 16, 2008, 1:34 PM
>
>     I was wondering if anyone has ever encountered this exception:
>
>      
>
>     javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
>
>      
>
>     From what I can find on the internet it seems to be coming out of
>     the SAAJMessage class as the result of a SOAPException, but I have
>     found no known causes of the Exception. 
>
>      
>
>     Here's the SOAP response that caused the exception:
>
>      
>
>     HTTP/1.1 200 OK
>     Content-Type: text/xml;charset=UTF-8
>     Content-Length: 733
>     Date: Wed, 16 Jul 2008 18:29:14 GMT
>     Server: Tracteur Turbo
>
>      
>
>     <?xml version="1.0" encoding="UTF-8"?>
>        <S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> 
>           <S:Header>   
>              <wsp:authentication
>     xmlns:wsp="http://xmlota.wspan.com/webservice/">     
>                 <wsp:userid>***</wsp:userid>     
>                 <wsp:password>***</wsp:password>     
>                 <wsp:payloadVersion>2007B</wsp:payloadVersion>
  
>              </wsp:authentication> 
>           </S:Header> 
>           <S:Body>   
>              <OTA_HotelAvailRS
>     xmlns="http://www.opentravel.org/OTA/2003/05"
>     TimeStamp="2008-07-16T20:29:14.014+02:00"
Version="1.006"
>     PrimaryLangID="en" Target="Test"
EchoToken="AV">     
>                 <Errors>       
>                    <Error Type="3"
Code="400">HOTEL NOT IN THE DATA
>     BASE</Error>     
>                 </Errors>   
>              </OTA_HotelAvailRS> 
>           </S:Body>
>        </S:Envelope>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

by Jitendra Kotamraju :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you find this element "OTA_HotelAvailRS" in the schema ? I think I
need to see the schema. If you can create test case, that would be great.

Jitu

LeRoy Hall wrote:

>
> Below is the stack trace. Looks like it's caused by the following though:
>
>  
>
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the
> declaration of element 'OTA_HotelAvailRS'.
>
>  
>
> INFO   | jvm 1    | 2008/07/20 14:49:17 |
> javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.doProcess(AbstractSchemaValidationTube.java:206)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.processResponse(AbstractSchemaValidationTube.java:184)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:605)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.client.Stub.process(Stub.java:248)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> $Proxy39.otaHotelAvail(Unknown Source)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.travelport.imb.Accor.map.AvailRequest.invokeWS(AvailRequest.java:205)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.worldspan.imb.handlers.AccorHandler.SendRecvVendor(AccorHandler.java:245)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.worldspan.imb.handlers.MessageHandler.Process(MessageHandler.java:110)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.worldspan.imb.handlers.MQMessageHandler.onMessage(MQMessageHandler.java:119)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2812)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at
> java.lang.Thread.run(Thread.java:595)
> INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by:
> com.sun.istack.XMLStreamException2
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:185)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:170)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:147)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> javax.xml.validation.Validator.validate(Validator.java:82)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.doProcess(AbstractSchemaValidationTube.java:204)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 18 more
> INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by:
> com.sun.istack.XMLStreamException2
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:270)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.istack.XMLStreamReaderToContentHandler.bridge(XMLStreamReaderToContentHandler.java:109)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:182)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 23 more
> INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by:
> org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration
> of element 'OTA_HotelAvailRS'.
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1944)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:264)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 25 more
> INFO   | jvm 1    | 2008/07/20 14:49:18 |
> java.lang.StringIndexOutOfBoundsException: String index out of range: -24
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> java.lang.String.substring(String.java:1768)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.worldspan.imb.util.HTL4JAppender.append(HTL4JAppender.java:58)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> org.apache.log4j.Category.callAppenders(Category.java:194)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> org.apache.log4j.Category.forcedLog(Category.java:379)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> org.apache.log4j.Category.warn(Category.java:999)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.travelport.imb.Accor.map.AvailRequest.invokeWS(AvailRequest.java:221)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.worldspan.imb.handlers.AccorHandler.SendRecvVendor(AccorHandler.java:245)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.worldspan.imb.handlers.MessageHandler.Process(MessageHandler.java:110)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.worldspan.imb.handlers.MQMessageHandler.onMessage(MQMessageHandler.java:119)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2812)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at
> java.lang.Thread.run(Thread.java:595)
>
> --- On *Thu, 7/17/08, Jitendra Kotamraju
> /<Jitendra.Kotamraju@...>/* wrote:
>
>     From: Jitendra Kotamraju <Jitendra.Kotamraju@...>
>     Subject: Re: javax.xml.ws.WebServiceException:
>     com.sun.istack.XMLStreamException2
>     To: dev@...
>     Date: Thursday, July 17, 2008, 4:22 PM
>
>     When the client receives the exception, did you print stack trace ? Does
>     the exception has a cause ? Can you see the client exception in debugger.
>
>     XMLStreamException doesn't chain the exceptions, hence we use
>     XMLStreamException2.
>
>     thanks,
>     Jitu
>
>     LeRoy Hall wrote:
>     >
>     > FYI - I am using JAX-WS RI 2.1.3-b02.
>     >
>     >  
>     >
>     > Also, I am running my client with schema validation turned on.  When I
>     > turn it off, I don't get this exception.  Also, the client is a stand
>     > alone Java app running as a windows service.
>     >
>     >  
>     >
>     > Any ideas?
>     >
>     >  
>     >
>     >
>     >
>     > --- On *Wed, 7/16/08, LeRoy Hall /<leroy_e_hall@...>/* wrote:
>     >
>     >     From: LeRoy Hall <leroy_e_hall@...>
>     >     Subject: javax.xml.ws.WebServiceException:
>     >     com.sun.istack.XMLStreamException2
>     >     To: "jax-ws forum" <dev@...>
>     >     Date: Wednesday, July 16, 2008, 1:34 PM
>     >
>     >     I was wondering if anyone has ever encountered this exception:
>     >
>     >      
>     >
>     >     javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
>     >
>     >      
>     >
>     >     From what I can find on the internet it seems to be coming out of
>     >     the SAAJMessage class as the result of a SOAPException, but I have
>     >     found no known causes of the Exception.
>     >
>     >      
>     >
>     >     Here's the SOAP response that caused the exception:
>     >
>     >      
>     >
>     >     HTTP/1.1 200 OK
>     >     Content-Type: text/xml;charset=UTF-8
>     >     Content-Length: 733
>     >     Date: Wed, 16 Jul 2008 18:29:14 GMT
>     >     Server: Tracteur Turbo
>     >
>     >      
>     >
>     >     <?xml version="1.0" encoding="UTF-8"?>
>     >        <S:Envelope
>     xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
>     >           <S:Header>  
>     >              <wsp:authentication
>     >     xmlns:wsp="http://xmlota.wspan.com/webservice/">    
>     >                 <wsp:userid>***</wsp:userid>    
>     >                 <wsp:password>***</wsp:password>    
>     >                 <wsp:payloadVersion>2007B</wsp:payloadVersion>
>      
>     >              </wsp:authentication>
>     >           </S:Header>
>     >           <S:Body>  
>     >              <OTA_HotelAvailRS
>     >     xmlns="http://www.opentravel.org/OTA/2003/05"
>     >     TimeStamp="2008-07-16T20:29:14.014+02:00"
>     Version="1.006"
>     >     PrimaryLangID="en" Target="Test"
>     EchoToken="AV">    
>     >                 <Errors>      
>     >                    <Error Type="3"
>     Code="400">HOTEL NOT IN THE DATA
>     >     BASE</Error>    
>     >                 </Errors>  
>     >              </OTA_HotelAvailRS>
>     >           </S:Body>
>     >        </S:Envelope>
>     >
>     >
>     >
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: dev-unsubscribe@...
>     For additional commands, e-mail: dev-help@...
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2

by LeRoy Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We're using the 2007B schema published by the Open Travel Alliance.  http://www.opentravel.org/

These schema are used to generate the beans with wsimport. 

The schema for this particular message is attached.

 



--- On Mon, 7/21/08, Jitendra Kotamraju <Jitendra.Kotamraju@...> wrote:

From: Jitendra Kotamraju <Jitendra.Kotamraju@...>
Subject: Re: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
To: dev@...
Date: Monday, July 21, 2008, 1:15 AM

Do you find this element "OTA_HotelAvailRS" in the schema ? I think I 
need to see the schema. If you can create test case, that would be great.

Jitu

LeRoy Hall wrote:
>
> Below is the stack trace. Looks like it's caused by the following
though:
>
>  
>
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the 
> declaration of element 'OTA_HotelAvailRS'.
>
>  
>
> INFO   | jvm 1    | 2008/07/20 14:49:17 | 
> javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
>
com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.doProcess(AbstractSchemaValidationTube.java:206)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
>
com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.processResponse(AbstractSchemaValidationTube.java:184)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:605)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.sun.xml.ws.client.Stub.process(Stub.java:248)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
>
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
>
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> $Proxy39.otaHotelAvail(Unknown Source)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.travelport.imb.Accor.map.AvailRequest.invokeWS(AvailRequest.java:205)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
>
com.worldspan.imb.handlers.AccorHandler.SendRecvVendor(AccorHandler.java:245)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.worldspan.imb.handlers.MessageHandler.Process(MessageHandler.java:110)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
>
com.worldspan.imb.handlers.MQMessageHandler.onMessage(MQMessageHandler.java:119)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2812)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406)
> INFO   | jvm 1    | 2008/07/20 14:49:17 |  at 
> java.lang.Thread.run(Thread.java:595)
> INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by: 
> com.sun.istack.XMLStreamException2
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:185)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:170)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:147)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> javax.xml.validation.Validator.validate(Validator.java:82)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.doProcess(AbstractSchemaValidationTube.java:204)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 18 more
> INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by: 
> com.sun.istack.XMLStreamException2
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:270)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.istack.XMLStreamReaderToContentHandler.bridge(XMLStreamReaderToContentHandler.java:109)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:182)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 23 more
> INFO   | jvm 1    | 2008/07/20 14:49:18 | Caused by: 
> org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration 
> of element 'OTA_HotelAvailRS'.
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1944)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:264)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  ... 25 more
> INFO   | jvm 1    | 2008/07/20 14:49:18 | 
> java.lang.StringIndexOutOfBoundsException: String index out of range: -24
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> java.lang.String.substring(String.java:1768)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> com.worldspan.imb.util.HTL4JAppender.append(HTL4JAppender.java:58)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> org.apache.log4j.Category.callAppenders(Category.java:194)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> org.apache.log4j.Category.forcedLog(Category.java:379)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> org.apache.log4j.Category.warn(Category.java:999)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> com.travelport.imb.Accor.map.AvailRequest.invokeWS(AvailRequest.java:221)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.worldspan.imb.handlers.AccorHandler.SendRecvVendor(AccorHandler.java:245)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> com.worldspan.imb.handlers.MessageHandler.Process(MessageHandler.java:110)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
>
com.worldspan.imb.handlers.MQMessageHandler.onMessage(MQMessageHandler.java:119)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2812)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406)
> INFO   | jvm 1    | 2008/07/20 14:49:18 |  at 
> java.lang.Thread.run(Thread.java:595)
>
> --- On *Thu, 7/17/08, Jitendra Kotamraju 
> /<Jitendra.Kotamraju@...>/* wrote:
>
>     From: Jitendra Kotamraju <Jitendra.Kotamraju@...>
>     Subject: Re: javax.xml.ws.WebServiceException:
>     com.sun.istack.XMLStreamException2
>     To: dev@...
>     Date: Thursday, July 17, 2008, 4:22 PM
>
>     When the client receives the exception, did you print stack trace ?
Does 
>     the exception has a cause ? Can you see the client exception in
debugger.
>
>     XMLStreamException doesn't chain the exceptions, hence we use 
>     XMLStreamException2.
>
>     thanks,
>     Jitu
>
>     LeRoy Hall wrote:
>     >
>     > FYI - I am using JAX-WS RI 2.1.3-b02. 
>     >
>     >  
>     >
>     > Also, I am running my client with schema validation turned on. 
When I 
>     > turn it off, I don't get this exception.  Also, the client is
a stand 
>     > alone Java app running as a windows service.
>     >
>     >  
>     >
>     > Any ideas?
>     >
>     >  
>     >
>     >
>     >
>     > --- On *Wed, 7/16/08, LeRoy Hall
/<leroy_e_hall@...>/* wrote:
>     >
>     >     From: LeRoy Hall <leroy_e_hall@...>
>     >     Subject: javax.xml.ws.WebServiceException:
>     >     com.sun.istack.XMLStreamException2
>     >     To: "jax-ws forum" <dev@...>
>     >     Date: Wednesday, July 16, 2008, 1:34 PM
>     >
>     >     I was wondering if anyone has ever encountered this
exception:
>     >
>     >      
>     >
>     >     javax.xml.ws.WebServiceException:
com.sun.istack.XMLStreamException2
>     >
>     >      
>     >
>     >     From what I can find on the internet it seems to be coming
out of
>     >     the SAAJMessage class as the result of a SOAPException, but I
have
>     >     found no known causes of the Exception. 
>     >
>     >      
>     >
>     >     Here's the SOAP response that caused the exception:
>     >
>     >      
>     >
>     >     HTTP/1.1 200 OK
>     >     Content-Type: text/xml;charset=UTF-8
>     >     Content-Length: 733
>     >     Date: Wed, 16 Jul 2008 18:29:14 GMT
>     >     Server: Tracteur Turbo
>     >
>     >      
>     >
>     >     <?xml version="1.0"
encoding="UTF-8"?>
>     >        <S:Envelope
>     xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> 
>     >           <S:Header>   
>     >              <wsp:authentication
>     >     xmlns:wsp="http://xmlota.wspan.com/webservice/">
    
>     >                 <wsp:userid>***</wsp:userid>     
>     >                 <wsp:password>***</wsp:password>     
>     >                
<wsp:payloadVersion>2007B</wsp:payloadVersion>
>       
>     >              </wsp:authentication> 
>     >           </S:Header> 
>     >           <S:Body>   
>     >              <OTA_HotelAvailRS
>     >     xmlns="http://www.opentravel.org/OTA/2003/05"
>     >     TimeStamp="2008-07-16T20:29:14.014+02:00"
>     Version="1.006"
>     >     PrimaryLangID="en" Target="Test"
>     EchoToken="AV">     
>     >                 <Errors>       
>     >                    <Error Type="3"
>     Code="400">HOTEL NOT IN THE DATA
>     >     BASE</Error>     
>     >                 </Errors>   
>     >              </OTA_HotelAvailRS> 
>     >           </S:Body>
>     >        </S:Envelope>
>     >
>     >
>     >
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: dev-unsubscribe@...
>     For additional commands, e-mail: dev-help@...
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.opentravel.org/OTA/2003/05" targetNamespace="http://www.opentravel.org/OTA/2003/05" elementFormDefault="qualified" version="4.002" id="OTA2007B">
       
        <xs:annotation>
                <xs:documentation xml:lang="en">All Schema files in the OTA specification are made available according to the terms defined by the OTA License Agreement at http://www.opentravel.org/ota_downloads_form.cfm</xs:documentation>
        </xs:annotation>
        <xs:element name="OTA_HotelAvailRS">
                <xs:annotation>
                        <xs:documentation xml:lang="en">Returns information about hotel properties that meet the requested criteria, indicating whether the requested service, rate, room stay, etc. is available within the date(s) specified. The response message may include Warnings from business processing rules, or Errors if the request did not succeed.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                        <xs:sequence>
                                <xs:element name="POS" type="POS_Type" minOccurs="0"/>
                                <xs:choice>
                                        <xs:sequence>
                                                <xs:element name="Success" type="SuccessType"/>
                                                <xs:element name="Warnings" type="WarningsType" minOccurs="0"/>
                                                <xs:element name="Profiles" type="ProfilesType" minOccurs="0"/>
                                                <xs:element name="HotelStays" minOccurs="0">
                                                        <xs:complexType>
                                                                <xs:sequence>
                                                                        <xs:element name="HotelStay" maxOccurs="unbounded">
                                                                                <xs:annotation>
                                                                                        <xs:documentation xml:lang="en">A quick view of the requested hotels' general availability for each day in the requested range.</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Availability" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation xml:lang="en">Details on the hotel stay including the type of availabilty and the date range for which it applies.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:sequence>
                                                                                                                        <xs:element name="Restriction" minOccurs="0" maxOccurs="5">
                                                                                                                                <xs:annotation>
                                                                                                                                        <xs:documentation xml:lang="en">Restrictions pertaining to the availability.</xs:documentation>
                                                                                                                                </xs:annotation>
                                                                                                                                <xs:complexType>
                                                                                                                                        <xs:attribute name="RestrictionType" use="optional">
                                                                                                                                                <xs:annotation>
                                                                                                                                                        <xs:documentation xml:lang="en">Stay restriction that applies to the availability.</xs:documentation>
                                                                                                                                                </xs:annotation>
                                                                                                                                                <xs:simpleType>
                                                                                                                                                        <xs:restriction base="xs:NMTOKEN">
                                                                                                                                                                <xs:enumeration value="MinLOS">
                                                                                                                                                                        <xs:annotation>
                                                                                                                                                                                <xs:documentation xml:lang="en">minimum length of stay restriction</xs:documentation>
                                                                                                                                                                        </xs:annotation>
                                                                                                                                                                </xs:enumeration>
                                                                                                                                                                <xs:enumeration value="MaxLOS">
                                                                                                                                                                        <xs:annotation>
                                                                                                                                                                                <xs:documentation xml:lang="en">maximum length of stay restriction</xs:documentation>
                                                                                                                                                                        </xs:annotation>
                                                                                                                                                                </xs:enumeration>
                                                                                                                                                                <xs:enumeration value="FixedLOS">
                                                                                                                                                                        <xs:annotation>
                                                                                                                                                                                <xs:documentation xml:lang="en">fixed length of stay restriction</xs:documentation>
                                                                                                                                                                        </xs:annotation>
                                                                                                                                                                </xs:enumeration>
                                                                                                                                                        </xs:restriction>
                                                                                                                                                </xs:simpleType>
                                                                                                                                        </xs:attribute>
                                                                                                                                        <xs:attribute name="Time" type="xs:integer" use="optional">
                                                                                                                                                <xs:annotation>
                                                                                                                                                        <xs:documentation xml:lang="en">Used in conjunction with the RestrictionType and the TimeUnit to define the restriction length.</xs:documentation>
                                                                                                                                                </xs:annotation>
                                                                                                                                        </xs:attribute>
                                                                                                                                        <xs:attribute name="TimeUnit" type="TimeUnitType" use="optional">
                                                                                                                                                <xs:annotation>
                                                                                                                                                        <xs:documentation xml:lang="en">A time unit used to apply this status message to other inventory, and with more granularity than daily. Values:  Year, Month, Week, Day, Hour, Minute, Second.</xs:documentation>
                                                                                                                                                </xs:annotation>
                                                                                                                                        </xs:attribute>