dev@jax-ws.java.net

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

From: LeRoy Hall <leroy_e_hall_at_yahoo.com>
Date: Wed, 16 Jul 2008 13:12:02 -0700 (PDT)

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_at_yahoo.com> wrote:

From: LeRoy Hall <leroy_e_hall_at_yahoo.com>
Subject: javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
To: "jax-ws forum" <dev_at_jax-ws.dev.java.net>
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>