Dear LeRoy,
I need to expose web services.I got a SOAP request xml structure and a SOAP
response xml. By seeing the SOAP xmls structure, i am not able to identify,
which kind of web service (rpc/encodec or doc/literal or wrapped/literal) i
have to expose. Which tools, i need to use to expose the services.
SOAP Request xml -
<S:Envelope>
<S:Header>
<authentication>
<userid>UserName</userid>
<password>Password</password>
</authentication>
</S:Header>
<S:Body>
<OTA_TestAvailRQ EchoToken="LI" Target="Production"
Version="1.0">
.......................................
</OTA_TestAvailRQ>
</S:Body>
</S:Envelope>
--------------------------------------------------------------
SOAP response xml -
<S:Envelope>
<S:Header>
<wsp:authentication>
<wsp:userid>XXUserName</wsp:userid>
<wsp:password>XXPassword</wsp:password>
<wsp:payloadVersion>2007B</wsp:payloadVersion>
</wsp:authentication>
</S:Header>
<S:Body>
<OTA_TestAvailRS EchoToken="LI" PrimaryLangID="en"
Target="Production"
TimeStamp="2009-03-24T20:26:37.058+01:00" Version="1.006">
................
</OTA_TestAvailRS>
</S:Body>
</S:Envelope>
Can i use Axis for exposing services ? Please advise which kind of web
services i have to use ? I am not getting any clue to start on this.
Our current configuration is JDK 1.5 and Tomcat-5.0.28 and Eclipse.
Regards,
Santosh Sharma
LeRoy Hall wrote:
>
> 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>
>
>
>
>
--
View this message in context: http://www.nabble.com/javax.xml.ws.WebServiceException%3A-com.sun.istack.XMLStreamException2-tp18493882p25531083.html
Sent from the JAX-WS Development mailing list archive at Nabble.com.