You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Pradeepta Bhattacharya <pr...@bsil.com> on 2006/07/12 07:53:58 UTC

AXIS2::Serialization of conplex type throws NPE

When trying to invoke a RPC based service, Axis throws an exception when 
trying to serialize a response of hierarchic bean structure to response SOAP

request. I have attached the service jar deployed on JBoss 4.0.4 and I have 
tested the simple response sayHello but when it comes to complex structure 
axis throws NPE. Any help on what might be wrong is highly appreciated. 
Thanks a lot.
 
/////////////////////////////////////////////////////////////////
////////////////////////// REQUEST  /////////////////////////////
/////////////////////////////////////////////////////////////////
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
               <soapenv:Header/>
               <soapenv:Body>
                               <airAvailability 
xmlns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types"
>
                                              <param0>
 
<originDestination 
xmlns="http://air.airtrade.project.bsil.com/xsd">
 
<departureDate>2006-08-
28T00:22:08.968+05:30</departureDate>
 
<destination>MIA</destination>
 
<origin>CDG</origin>
 
</originDestination>
                                                             <tripType 
xmlns="http://air.airtrade.project.bsil.com/xsd">1</tripType>
                                              </param0>
                               </airAvailability>
               </soapenv:Body>
</soapenv:Envelope>
 
 
/////////////////////////////////////////////////////////////////
////////////////////////// RESPONSE /////////////////////////////
/////////////////////////////////////////////////////////////////
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
               <soapenv:Header/>
               <soapenv:Body>
                               <soapenv:Fault>
 
<faultcode>soapenv:Client</faultcode>
                               
               <faultstring>java.lang.NullPointerException</faultstring>
                                              <detail>
 
<Exception>org.apache.axis2.AxisFault: 
java.lang.NullPointerException; nested exception is: 
               org.apache.axiom.om.OMException:
java.lang.NullPointerException&#13;
               at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)&#13;
               at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:150)&#13;
               at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive
(AbstractInOutSyncMessageReceiver.java:37)&#13;
               at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
&#13;
               at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
(HTTPTransportUtils.java:284)&#13;
               at org.apache.axis2.transport.http.AxisServlet.doPost
(AxisServlet.java:144)&#13;
               at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#13;
               at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)&#13;
               at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)&#13;
               at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)&#13;
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
(ReplyHeaderFilter.java:96)&#13;
               at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:202)&#13;
               at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)&#13;
               at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)&#13;
               at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)&#13;
               at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
(SecurityAssociationValve.java:175)&#13;
               at org.jboss.web.tomcat.security.JaccContextValve.invoke
(JaccContextValve.java:74)&#13;
               at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)&#13;
               at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)&#13;
               at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)&#13;
               at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)&#13;
               at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)&#13;
               at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
o
nnection(Http11BaseProtocol.java:664)&#13;
               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)&#13;
               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
(MasterSlaveWorkerThread.java:112)&#13;
               at java.lang.Thread.run(Thread.java:534)&#13;
Caused by: org.apache.axiom.om.OMException: 
java.lang.NullPointerException&#13;
               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
(StAXOMBuilder.java:206)&#13;
               at org.apache.axiom.om.impl.llom.OMNodeImpl.build
(OMNodeImpl.java:298)&#13;
               at org.apache.axiom.om.impl.llom.OMElementImpl.detach
(OMElementImpl.java:586)&#13;
               at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent
(OMNodeImpl.java:118)&#13;
               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
(OMElementImpl.java:241)&#13;
               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
(OMElementImpl.java:198)&#13;
               at org.apache.axis2.rpc.receivers.RPCUtil.processResponse
(RPCUtil.java:72)&#13;
               at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:141)&#13;
               ... 24 more&#13;
Caused by: java.lang.NullPointerException&#13;
               at org.apache.axis2.databinding.utils.BeanUtil.getPullParser
(BeanUtil.java:95)&#13;
               at 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProp
e
rties(ADBXMLStreamReaderImpl.java:953)&#13;
               at 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next
(ADBXMLStreamReaderImpl.java:807)&#13;
               at
org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
&#13;
               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
(StAXOMBuilder.java:123)&#13;
               ... 31 more&#13;
</Exception>
                                              </detail>
                               </soapenv:Fault>
               </soapenv:Body>
</soapenv:Envelope>
 

 


Re: AXIS2::Serialization of conplex type throws NPE

Posted by Anne Thomas Manes <at...@gmail.com>.
One more note: I think you need to use a later build.

When using Document style, the <soap:body> definition in the WSDL
binding must not specify a namespace attribute. I believe this problem
is fixed in the latest build.

Anne



On 7/12/06, Pradeepta Bhattacharya <pr...@bsil.com> wrote:
> Do you mean that to use the Receiver class that is generated. But it will be
> internally making call to the ShoppingServiceSkeleton interface resulting in
> an NotSupportedException. Could you please explain a bit in brief the
> procedure what you meant in the solution. Thanks a lot.
>
> Pradeepta
>
> -----Original Message-----
> From: Deepal Jayasinghe [mailto:deepal@opensource.lk]
> Sent: Wednesday, July 12, 2006 11:41 AM
> To: axis-dev@ws.apache.org
> Subject: Re: AXIS2::Serialization of conplex type throws NPE
>
> Hi Pradeepta;
> Since you have the wsdl why dont you code generate rather than using
> RPCMessage receiver , I think that is the best way.
> Any way can you pls send me the service impl class as well (if possible)
>
> Pradeepta Bhattacharya wrote:
>
> >When trying to invoke a RPC based service, Axis throws an exception when
> >
> >trying to serialize a response of hierarchic bean structure to response
> SOAP
> >
> >request. I have attached the service jar deployed on JBoss 4.0.4 and I have
>
> >
> >tested the simple response sayHello but when it comes to complex structure
> >
> >axis throws NPE. Any help on what might be wrong is highly appreciated.
> >
> >Thanks a lot.
> >
> >
> >
> >/////////////////////////////////////////////////////////////////
> >
> >////////////////////////// REQUEST  /////////////////////////////
> >
> >/////////////////////////////////////////////////////////////////
> >
> >
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> >
> ><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> >
> >               <soapenv:Header/>
> >
> >               <soapenv:Body>
> >
> >                               <airAvailability
> >
> >xmlns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types
> ">
> >
> >                                              <param0>
> >
> >
> <originDestination
> >
> >xmlns="http://air.airtrade.project.bsil.com/xsd">
> >
> >
> <departureDate>2006-08-
> >
> >28T00:22:08.968+05:30</departureDate>
> >
> >
> <destination>MIA</destination>
> >
> >
> <origin>CDG</origin>
> >
> >
> </originDestination>
> >
> >                                                             <tripType
> >
> >xmlns="http://air.airtrade.project.bsil.com/xsd">1</tripType>
> >
> >                                              </param0>
> >
> >                               </airAvailability>
> >
> >               </soapenv:Body>
> >
> ></soapenv:Envelope>
> >
> >
> >
> >
> >
> >/////////////////////////////////////////////////////////////////
> >
> >////////////////////////// RESPONSE /////////////////////////////
> >
> >/////////////////////////////////////////////////////////////////
> >
> >
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> >
> ><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> >
> >               <soapenv:Header/>
> >
> >               <soapenv:Body>
> >
> >                               <soapenv:Fault>
> >
> >
> <faultcode>soapenv:Client</faultcode>
> >
> >
> >
> >               <faultstring>java.lang.NullPointerException</faultstring>
> >
> >                                              <detail>
> >
> >
> <Exception>org.apache.axis2.AxisFault:
> >
> >java.lang.NullPointerException; nested exception is:
> >
> >               org.apache.axiom.om.OMException:
> java.lang.NullPointerException&#13;
> >
> >               at
> org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)&#13;
> >
> >               at
> >
> >org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
> >
> >(RPCMessageReceiver.java:150)&#13;
> >
> >               at
> >
> >org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive
> >
> >(AbstractInOutSyncMessageReceiver.java:37)&#13;
> >
> >               at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
> >
> >&#13;
> >
> >               at
> >
> >org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
> >
> >(HTTPTransportUtils.java:284)&#13;
> >
> >               at org.apache.axis2.transport.http.AxisServlet.doPost
> >
> >(AxisServlet.java:144)&#13;
> >
> >               at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#13;
> >
> >               at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)&#13;
> >
> >               at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >
> >(ApplicationFilterChain.java:252)&#13;
> >
> >               at org.apache.catalina.core.ApplicationFilterChain.doFilter
> >
> >(ApplicationFilterChain.java:173)&#13;
> >
> >               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
> >
> >(ReplyHeaderFilter.java:96)&#13;
> >
> >               at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >
> >(ApplicationFilterChain.java:202)&#13;
> >
> >               at org.apache.catalina.core.ApplicationFilterChain.doFilter
> >
> >(ApplicationFilterChain.java:173)&#13;
> >
> >               at org.apache.catalina.core.StandardWrapperValve.invoke
> >
> >(StandardWrapperValve.java:213)&#13;
> >
> >               at org.apache.catalina.core.StandardContextValve.invoke
> >
> >(StandardContextValve.java:178)&#13;
> >
> >               at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
> >
> >(SecurityAssociationValve.java:175)&#13;
> >
> >               at org.jboss.web.tomcat.security.JaccContextValve.invoke
> >
> >(JaccContextValve.java:74)&#13;
> >
> >               at org.apache.catalina.core.StandardHostValve.invoke
> >
> >(StandardHostValve.java:126)&#13;
> >
> >               at org.apache.catalina.valves.ErrorReportValve.invoke
> >
> >(ErrorReportValve.java:105)&#13;
> >
> >               at org.apache.catalina.core.StandardEngineValve.invoke
> >
> >(StandardEngineValve.java:107)&#13;
> >
> >               at org.apache.catalina.connector.CoyoteAdapter.service
> >
> >(CoyoteAdapter.java:148)&#13;
> >
> >               at org.apache.coyote.http11.Http11Processor.process
> >
> >(Http11Processor.java:869)&#13;
> >
> >               at
> >
> >org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
> Co
> >
> >nnection(Http11BaseProtocol.java:664)&#13;
> >
> >               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> >
> >(PoolTcpEndpoint.java:527)&#13;
> >
> >               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
> >
> >(MasterSlaveWorkerThread.java:112)&#13;
> >
> >               at java.lang.Thread.run(Thread.java:534)&#13;
> >
> >Caused by: org.apache.axiom.om.OMException:
> >
> >java.lang.NullPointerException&#13;
> >
> >               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
> >
> >(StAXOMBuilder.java:206)&#13;
> >
> >               at org.apache.axiom.om.impl.llom.OMNodeImpl.build
> >
> >(OMNodeImpl.java:298)&#13;
> >
> >               at org.apache.axiom.om.impl.llom.OMElementImpl.detach
> >
> >(OMElementImpl.java:586)&#13;
> >
> >               at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent
> >
> >(OMNodeImpl.java:118)&#13;
> >
> >               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
> >
> >(OMElementImpl.java:241)&#13;
> >
> >               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
> >
> >(OMElementImpl.java:198)&#13;
> >
> >               at org.apache.axis2.rpc.receivers.RPCUtil.processResponse
> >
> >(RPCUtil.java:72)&#13;
> >
> >               at
> >
> >org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
> >
> >(RPCMessageReceiver.java:141)&#13;
> >
> >               ... 24 more&#13;
> >
> >Caused by: java.lang.NullPointerException&#13;
> >
> >               at org.apache.axis2.databinding.utils.BeanUtil.getPullParser
> >
> >(BeanUtil.java:95)&#13;
> >
> >               at
> >
> >org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processPro
> pe
> >
> >rties(ADBXMLStreamReaderImpl.java:953)&#13;
> >
> >               at
> >
> >org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next
> >
> >(ADBXMLStreamReaderImpl.java:807)&#13;
> >
> >               at
> org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
> >
> >&#13;
> >
> >               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
> >
> >(StAXOMBuilder.java:123)&#13;
> >
> >               ... 31 more&#13;
> >
> ></Exception>
> >
> >                                              </detail>
> >
> >                               </soapenv:Fault>
> >
> >               </soapenv:Body>
> >
> ></soapenv:Envelope>
> >
> >
> >
> >
> >
> >------------------------------------------------------------------------
> >
> ><serviceGroup>
> >       <service name="ShoppingEngine">
> >               <parameter locked="false"
> name="ServiceClass">com.bsil.project.airtrade.shoppingengine.ShoppingEngineS
> ervice</parameter>
> >               <operation name="flightInformation">
> >                   <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> >                       <actionMapping>urn:flightInformation</actionMapping>
> >               </operation>
> >               <operation name="airAvailability">
> >                       <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> >                       <actionMapping>urn:airAvailability</actionMapping>
> >               </operation>
> >               <operation name="airFareRules">
> >                       <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> >                       <actionMapping>urn:airFareRules</actionMapping>
> >               </operation>
> >               <operation name="sayHello">
> >                       <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> >                       <actionMapping>urn:sayHello</actionMapping>
> >               </operation>
> >       </service>
> ></serviceGroup>
> >
> >
> >------------------------------------------------------------------------
> >
> ><wsdl:definitions name="ShoppingEngineService"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:ns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> xmlns:ns2="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/ty
> pes" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> targetNamespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.
> com">
> >       <wsdl:types>
> >               <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:stn_12="http://air.airtrade.project.bsil.com/xsd"
> targetNamespace="http://air.airtrade.project.bsil.com/xsd"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
> >                       <xs:element type="stn_12:AirAvailabilityRequest"
> name="AirAvailabilityRequest"/>
> >                       <xs:complexType name="AirAvailabilityRequest">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:OriginDestination" name="originDestination"
> maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:string"
> name="cabinClass"/>
> >                                       <xs:element type="xs:string"
> name="carrierPreferences"/>
> >                                       <xs:element type="xs:int"
> name="numAdults"/>
> >                                       <xs:element type="xs:int"
> name="numChildren"/>
> >                                       <xs:element type="xs:int"
> name="numInfants"/>
> >                                       <xs:element type="xs:int"
> name="numSeniors"/>
> >                                       <xs:element type="xs:int"
> name="tripType"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:OriginDestination"
> name="OriginDestination"/>
> >                       <xs:complexType name="OriginDestination">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:dateTime"
> name="departureDate"/>
> >                                       <xs:element minOccurs="0"
> type="stn_12:Flight" name="flightInformation" maxOccurs="unbounded"/>
> >                                       <xs:element minOccurs="0"
> type="stn_12:Flight" name="flight" maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:int"
> name="numOfStops"/>
> >                                       <xs:element type="xs:string"
> name="source"/>
> >                                       <xs:element type="xs:string"
> name="destination"/>
> >                                       <xs:element type="xs:string"
> name="origin"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:Flight" name="Flight"/>
> >                       <xs:complexType name="Flight">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:FlightSegment" name="segments" maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:string"
> name="journeyTime"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:FlightSegment"
> name="FlightSegment"/>
> >                       <xs:complexType name="FlightSegment">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:string"
> name="arrAirport"/>
> >                                       <xs:element type="xs:string"
> name="arrAirportName"/>
> >                                       <xs:element type="xs:string"
> name="arrDate"/>
> >                                       <xs:element type="xs:string"
> name="arrTerminal"/>
> >                                       <xs:element type="xs:string"
> name="arrTime"/>
> >                                       <xs:element type="xs:string"
> name="carrierCode"/>
> >                                       <xs:element type="xs:string"
> name="carrierName"/>
> >                                       <xs:element type="xs:string"
> name="depAirport"/>
> >                                       <xs:element type="xs:string"
> name="depAirportName"/>
> >                                       <xs:element type="xs:string"
> name="depDate"/>
> >                                       <xs:element type="xs:string"
> name="depTerminal"/>
> >                                       <xs:element type="xs:string"
> name="depTime"/>
> >                                       <xs:element type="xs:string"
> name="equipmentCode"/>
> >                                       <xs:element type="xs:string"
> name="equipmentName"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:AirAvailabilityResponse"
> name="AirAvailabilityResponse"/>
> >                       <xs:complexType name="AirAvailabilityResponse">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:OriginDestination" name="originDestination"
> maxOccurs="unbounded"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:FlightInfo"
> name="FlightInfo"/>
> >                       <xs:complexType name="FlightInfo">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:CityInfo" name="cityInfo" maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:string"
> name="codeSharingAirlineCode"/>
> >                                       <xs:element type="xs:string"
> name="codeSharingAirlineName"/>
> >                                       <xs:element type="xs:string"
> name="flightAirlineName"/>
> >                                       <xs:element type="xs:string"
> name="flightDate"/>
> >                                       <xs:element type="xs:string"
> name="flightNumber"/>
> >                                       <xs:element type="xs:string"
> name="flightNumberSuffix"/>
> >                                       <xs:element type="xs:string"
> name="flightSource"/>
> >                                       <xs:element type="xs:string"
> name="messageText"/>
> >                                       <xs:element type="xs:string"
> name="numberOfStops"/>
> >                                       <xs:element type="xs:string"
> name="smoking"/>
> >                                       <xs:element type="xs:string"
> name="flightAirlineCode"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:CityInfo" name="CityInfo"/>
> >                       <xs:complexType name="CityInfo">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:string"
> name="fromCity"/>
> >                                       <xs:element type="xs:string"
> name="toCity"/>
> >                                       <xs:element type="xs:string"
> name="text"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:FareIdentification"
> name="FareIdentification"/>
> >                       <xs:complexType name="FareIdentification">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:string"
> name="airlineCode"/>
> >                                       <xs:element type="xs:string"
> name="arrivalCity"/>
> >                                       <xs:element type="xs:string"
> name="departureCity"/>
> >                                       <xs:element type="xs:dateTime"
> name="departureDate"/>
> >                                       <xs:element type="xs:string"
> name="fareBasisCode"/>
> >                                       <xs:element type="xs:string"
> name="fareBasisCodeSource"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:FareRules"
> name="FareRules"/>
> >                       <xs:complexType name="FareRules">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:Rule" name="rules" maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:string"
> name="airlineCode"/>
> >                                       <xs:element type="xs:string"
> name="arrivalCity"/>
> >                                       <xs:element type="xs:string"
> name="departureCity"/>
> >                                       <xs:element type="xs:string"
> name="departureDate"/>
> >                                       <xs:element type="xs:string"
> name="fareBasisCode"/>
> >                                       <xs:element type="xs:string"
> name="fareBasisCodeSource"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:element type="stn_12:Rule" name="Rule"/>
> >                       <xs:complexType name="Rule">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:string"
> name="category"/>
> >                                       <xs:element minOccurs="0"
> type="xs:string" name="ruleText" maxOccurs="unbounded"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <!--xs:complexType name="FareRules">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:Rule" name="rules" maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:string"
> name="airlineCode"/>
> >                                       <xs:element type="xs:string"
> name="arrivalCity"/>
> >                                       <xs:element type="xs:string"
> name="departureCity"/>
> >                                       <xs:element type="xs:string"
> name="departureDate"/>
> >                                       <xs:element type="xs:string"
> name="fareBasisCode"/>
> >                                       <xs:element type="xs:string"
> name="fareBasisCodeSource"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="Rule">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:string"
> name="category"/>
> >                                       <xs:element minOccurs="0"
> type="xs:string" name="ruleText" maxOccurs="unbounded"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="FlightSegment">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:string"
> name="arrAirport"/>
> >                                       <xs:element type="xs:string"
> name="arrAirportName"/>
> >                                       <xs:element type="xs:string"
> name="arrDate"/>
> >                                       <xs:element type="xs:string"
> name="arrTerminal"/>
> >                                       <xs:element type="xs:string"
> name="arrTime"/>
> >                                       <xs:element type="xs:string"
> name="carrierCode"/>
> >                                       <xs:element type="xs:string"
> name="carrierName"/>
> >                                       <xs:element type="xs:string"
> name="depAirport"/>
> >                                       <xs:element type="xs:string"
> name="depAirportName"/>
> >                                       <xs:element type="xs:string"
> name="depDate"/>
> >                                       <xs:element type="xs:string"
> name="depTerminal"/>
> >                                       <xs:element type="xs:string"
> name="depTime"/>
> >                                       <xs:element type="xs:string"
> name="equipmentCode"/>
> >                                       <xs:element type="xs:string"
> name="equipmentName"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="Flight">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:FlightSegment" name="segments" maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:string"
> name="journeyTime"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="FlightInfo">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:CityInfo" name="cityInfo" maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:string"
> name="codeSharingAirlineCode"/>
> >                                       <xs:element type="xs:string"
> name="codeSharingAirlineName"/>
> >                                       <xs:element type="xs:string"
> name="flightAirlineName"/>
> >                                       <xs:element type="xs:string"
> name="flightDate"/>
> >                                       <xs:element type="xs:string"
> name="flightNumber"/>
> >                                       <xs:element type="xs:string"
> name="flightNumberSuffix"/>
> >                                       <xs:element type="xs:string"
> name="flightSource"/>
> >                                       <xs:element type="xs:string"
> name="messageText"/>
> >                                       <xs:element type="xs:string"
> name="numberOfStops"/>
> >                                       <xs:element type="xs:string"
> name="smoking"/>
> >                                       <xs:element type="xs:string"
> name="flightAirlineCode"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="FareIdentification">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:string"
> name="airlineCode"/>
> >                                       <xs:element type="xs:string"
> name="arrivalCity"/>
> >                                       <xs:element type="xs:string"
> name="departureCity"/>
> >                                       <xs:element type="xs:dateTime"
> name="departureDate"/>
> >                                       <xs:element type="xs:string"
> name="fareBasisCode"/>
> >                                       <xs:element type="xs:string"
> name="fareBasisCodeSource"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="AirAvailabilityResponse">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:OriginDestination" name="originDestination"
> maxOccurs="unbounded"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="OriginDestination">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:dateTime"
> name="departureDate"/>
> >                                       <xs:element minOccurs="0"
> type="stn_12:Flight" name="flightInformation" maxOccurs="unbounded"/>
> >                                       <xs:element minOccurs="0"
> type="stn_12:Flight" name="flight" maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:int"
> name="numOfStops"/>
> >                                       <xs:element type="xs:string"
> name="source"/>
> >                                       <xs:element type="xs:string"
> name="destination"/>
> >                                       <xs:element type="xs:string"
> name="origin"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="AirAvailabilityRequest">
> >                               <xs:sequence>
> >                                       <xs:element minOccurs="0"
> type="stn_12:OriginDestination" name="originDestination"
> maxOccurs="unbounded"/>
> >                                       <xs:element type="xs:string"
> name="cabinClass"/>
> >                                       <xs:element type="xs:string"
> name="carrierPreferences"/>
> >                                       <xs:element type="xs:int"
> name="numAdults"/>
> >                                       <xs:element type="xs:int"
> name="numChildren"/>
> >                                       <xs:element type="xs:int"
> name="numInfants"/>
> >                                       <xs:element type="xs:int"
> name="numSeniors"/>
> >                                       <xs:element type="xs:int"
> name="tripType"/>
> >                               </xs:sequence>
> >                       </xs:complexType>
> >                       <xs:complexType name="CityInfo">
> >                               <xs:sequence>
> >                                       <xs:element type="xs:string"
> name="fromCity"/>
> >                                       <xs:element type="xs:string"
> name="toCity"/>
> >                                       <xs:element type="xs:string"
> name="text"/>
> >                               </xs:sequence>
> >                       </xs:complexType-->
> >               </xs:schema>
> >               <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:stn_22="http://air.airtrade.project.bsil.com/xsd"
> targetNamespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.
> com/types" elementFormDefault="qualified"
> attributeFormDefault="unqualified">
> >                       <xs:import
> namespace="http://air.airtrade.project.bsil.com/xsd"/>
> >                       <xs:element name="airAvailability">
> >                               <xs:complexType>
> >                                       <xs:sequence>
> >                                               <xs:element
> type="stn_22:AirAvailabilityRequest" name="param0"/>
> >                                       </xs:sequence>
> >                               </xs:complexType>
> >                       </xs:element>
> >                       <xs:element name="airAvailabilityResponse">
> >                               <xs:complexType>
> >                                       <xs:sequence>
> >                                               <xs:element
> type="stn_22:AirAvailabilityResponse" name="return"/>
> >                                       </xs:sequence>
> >                               </xs:complexType>
> >                       </xs:element>
> >                       <xs:element name="flightInformation">
> >                               <xs:complexType>
> >                                       <xs:sequence>
> >                                               <xs:element type="xs:string"
> name="param0"/>
> >                                               <xs:element type="xs:string"
> name="param1"/>
> >                                               <xs:element type="xs:string"
> name="param2"/>
> >                                               <xs:element type="xs:string"
> name="param3"/>
> >                                               <xs:element type="xs:string"
> name="param4"/>
> >                                       </xs:sequence>
> >                               </xs:complexType>
> >                       </xs:element>
> >                       <xs:element name="flightInformationResponse">
> >                               <xs:complexType>
> >                                       <xs:sequence>
> >                                               <xs:element
> type="stn_22:FlightInfo" name="return"/>
> >                                       </xs:sequence>
> >                               </xs:complexType>
> >                       </xs:element>
> >                       <xs:element name="airFareRules">
> >                               <xs:complexType>
> >                                       <xs:sequence>
> >                                               <xs:element
> type="stn_22:FareIdentification" name="param0"/>
> >                                       </xs:sequence>
> >                               </xs:complexType>
> >                       </xs:element>
> >                       <xs:element name="airFareRulesResponse">
> >                               <xs:complexType>
> >                                       <xs:sequence>
> >                                               <xs:element
> type="stn_22:FareRules" name="return"/>
> >                                       </xs:sequence>
> >                               </xs:complexType>
> >                       </xs:element>
> >                       <xs:element name="sayHello">
> >                               <xs:complexType>
> >                                       <xs:sequence>
> >                                               <xs:element type="xs:string"
> name="param0"/>
> >                                       </xs:sequence>
> >                               </xs:complexType>
> >                       </xs:element>
> >                       <xs:element name="sayHelloResponse">
> >                               <xs:complexType>
> >                                       <xs:sequence>
> >                                               <xs:element type="xs:string"
> name="return"/>
> >                                       </xs:sequence>
> >                               </xs:complexType>
> >                       </xs:element>
> >               </xs:schema>
> >       </wsdl:types>
> >       <wsdl:message name="airAvailabilityMessage">
> >               <wsdl:part element="ns2:airAvailability" name="part1"/>
> >       </wsdl:message>
> >       <wsdl:message name="airAvailabilityResponseMessage">
> >               <wsdl:part element="ns2:airAvailabilityResponse"
> name="part1"/>
> >       </wsdl:message>
> >       <wsdl:message name="flightInformationMessage">
> >               <wsdl:part element="ns2:flightInformation" name="part1"/>
> >       </wsdl:message>
> >       <wsdl:message name="flightInformationResponseMessage">
> >               <wsdl:part element="ns2:flightInformationResponse"
> name="part1"/>
> >       </wsdl:message>
> >       <wsdl:message name="airFareRulesMessage">
> >               <wsdl:part element="ns2:airFareRules" name="part1"/>
> >       </wsdl:message>
> >       <wsdl:message name="airFareRulesResponseMessage">
> >               <wsdl:part element="ns2:airFareRulesResponse" name="part1"/>
> >       </wsdl:message>
> >       <wsdl:message name="sayHelloMessage">
> >               <wsdl:part element="ns2:sayHello" name="part1"/>
> >       </wsdl:message>
> >       <wsdl:message name="sayHelloResponseMessage">
> >               <wsdl:part element="ns2:sayHelloResponse" name="part1"/>
> >       </wsdl:message>
> >       <wsdl:portType name="ShoppingEnginePortType">
> >               <wsdl:operation name="airAvailability">
> >                       <wsdl:input message="ns:airAvailabilityMessage"/>
> >                       <wsdl:output
> message="ns:airAvailabilityResponseMessage"/>
> >               </wsdl:operation>
> >               <wsdl:operation name="flightInformation">
> >                       <wsdl:input message="ns:flightInformationMessage"/>
> >                       <wsdl:output
> message="ns:flightInformationResponseMessage"/>
> >               </wsdl:operation>
> >               <wsdl:operation name="airFareRules">
> >                       <wsdl:input message="ns:airFareRulesMessage"/>
> >                       <wsdl:output
> message="ns:airFareRulesResponseMessage"/>
> >               </wsdl:operation>
> >               <wsdl:operation name="sayHello">
> >                       <wsdl:input message="ns:sayHelloMessage"/>
> >                       <wsdl:output message="ns:sayHelloResponseMessage"/>
> >               </wsdl:operation>
> >       </wsdl:portType>
> >       <wsdl:binding type="ns:ShoppingEnginePortType"
> name="ShoppingEngineSOAP11Binding">
> >               <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> >               <wsdl:operation name="airAvailability">
> >                       <soap:operation style="document"
> soapAction="urn:airAvailability"/>
> >                       <wsdl:input>
> >                               <soap:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:input>
> >                       <wsdl:output>
> >                               <soap:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:output>
> >               </wsdl:operation>
> >               <wsdl:operation name="flightInformation">
> >                       <soap:operation style="document"
> soapAction="urn:flightInformation"/>
> >                       <wsdl:input>
> >                               <soap:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:input>
> >                       <wsdl:output>
> >                               <soap:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:output>
> >               </wsdl:operation>
> >               <wsdl:operation name="airFareRules">
> >                       <soap:operation style="document"
> soapAction="urn:airFareRules"/>
> >                       <wsdl:input>
> >                               <soap:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:input>
> >                       <wsdl:output>
> >                               <soap:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:output>
> >               </wsdl:operation>
> >               <wsdl:operation name="sayHello">
> >                       <soap:operation style="document"
> soapAction="urn:sayHello"/>
> >                       <wsdl:input>
> >                               <soap:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:input>
> >                       <wsdl:output>
> >                               <soap:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:output>
> >               </wsdl:operation>
> >       </wsdl:binding>
> >       <wsdl:binding type="ns:ShoppingEnginePortType"
> name="ShoppingEngineSOAP12Binding">
> >               <soap12:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> >               <wsdl:operation name="airAvailability">
> >                       <soap12:operation style="document"
> soapAction="urn:airAvailability"/>
> >                       <wsdl:input>
> >                               <soap12:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:input>
> >                       <wsdl:output>
> >                               <soap12:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:output>
> >               </wsdl:operation>
> >               <wsdl:operation name="flightInformation">
> >                       <soap12:operation style="document"
> soapAction="urn:flightInformation"/>
> >                       <wsdl:input>
> >                               <soap12:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:input>
> >                       <wsdl:output>
> >                               <soap12:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:output>
> >               </wsdl:operation>
> >               <wsdl:operation name="airFareRules">
> >                       <soap12:operation style="document"
> soapAction="urn:airFareRules"/>
> >                       <wsdl:input>
> >                               <soap12:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:input>
> >                       <wsdl:output>
> >                               <soap12:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:output>
> >               </wsdl:operation>
> >               <wsdl:operation name="sayHello">
> >                       <soap12:operation style="document"
> soapAction="urn:sayHello"/>
> >                       <wsdl:input>
> >                               <soap12:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:input>
> >                       <wsdl:output>
> >                               <soap12:body
> namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
> use="literal"/>
> >                       </wsdl:output>
> >               </wsdl:operation>
> >       </wsdl:binding>
> >       <wsdl:service name="ShoppingEngine">
> >               <wsdl:port binding="ns:ShoppingEngineSOAP11Binding"
> name="ShoppingEngineSOAP11port">
> >                       <soap:address
> location="http://localhost:8080/axis2/services/ShoppingEngine"/>
> >               </wsdl:port>
> >               <wsdl:port binding="ns:ShoppingEngineSOAP12Binding"
> name="ShoppingEngineSOAP12port">
> >                       <soap12:address
> location="http://localhost:8080/axis2/services/ShoppingEngine"/>
> >               </wsdl:port>
> >       </wsdl:service>
> ></wsdl:definitions>
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
>
> --
>
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


RE: AXIS2::Serialization of conplex type throws NPE

Posted by Pradeepta Bhattacharya <pr...@bsil.com>.
Do you mean that to use the Receiver class that is generated. But it will be
internally making call to the ShoppingServiceSkeleton interface resulting in
an NotSupportedException. Could you please explain a bit in brief the
procedure what you meant in the solution. Thanks a lot.

Pradeepta

-----Original Message-----
From: Deepal Jayasinghe [mailto:deepal@opensource.lk] 
Sent: Wednesday, July 12, 2006 11:41 AM
To: axis-dev@ws.apache.org
Subject: Re: AXIS2::Serialization of conplex type throws NPE

Hi Pradeepta;
Since you have the wsdl why dont you code generate rather than using
RPCMessage receiver , I think that is the best way.
Any way can you pls send me the service impl class as well (if possible)

Pradeepta Bhattacharya wrote:

>When trying to invoke a RPC based service, Axis throws an exception when 
>
>trying to serialize a response of hierarchic bean structure to response
SOAP 
>
>request. I have attached the service jar deployed on JBoss 4.0.4 and I have

>
>tested the simple response sayHello but when it comes to complex structure 
>
>axis throws NPE. Any help on what might be wrong is highly appreciated. 
>
>Thanks a lot.
>
> 
>
>/////////////////////////////////////////////////////////////////
>
>////////////////////////// REQUEST  /////////////////////////////
>
>/////////////////////////////////////////////////////////////////
>
> 
>
><?xml version="1.0" encoding="UTF-8"?>
>
><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>
>               <soapenv:Header/>
>
>               <soapenv:Body>
>
>                               <airAvailability 
>
>xmlns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types
">
>
>                                              <param0>
>
>
<originDestination 
>
>xmlns="http://air.airtrade.project.bsil.com/xsd">
>
>
<departureDate>2006-08-
>
>28T00:22:08.968+05:30</departureDate>
>
>
<destination>MIA</destination>
>
>
<origin>CDG</origin>
>
>
</originDestination>
>
>                                                             <tripType 
>
>xmlns="http://air.airtrade.project.bsil.com/xsd">1</tripType>
>
>                                              </param0>
>
>                               </airAvailability>
>
>               </soapenv:Body>
>
></soapenv:Envelope>
>
> 
>
> 
>
>/////////////////////////////////////////////////////////////////
>
>////////////////////////// RESPONSE /////////////////////////////
>
>/////////////////////////////////////////////////////////////////
>
> 
>
><?xml version="1.0" encoding="UTF-8"?>
>
><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>
>               <soapenv:Header/>
>
>               <soapenv:Body>
>
>                               <soapenv:Fault>
>
>
<faultcode>soapenv:Client</faultcode>
>
>                               
>
>               <faultstring>java.lang.NullPointerException</faultstring>
>
>                                              <detail>
>
>
<Exception>org.apache.axis2.AxisFault: 
>
>java.lang.NullPointerException; nested exception is: 
>
>               org.apache.axiom.om.OMException:
java.lang.NullPointerException&#13;
>
>               at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)&#13;
>
>               at 
>
>org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
>
>(RPCMessageReceiver.java:150)&#13;
>
>               at 
>
>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive
>
>(AbstractInOutSyncMessageReceiver.java:37)&#13;
>
>               at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
>
>&#13;
>
>               at 
>
>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
>
>(HTTPTransportUtils.java:284)&#13;
>
>               at org.apache.axis2.transport.http.AxisServlet.doPost
>
>(AxisServlet.java:144)&#13;
>
>               at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#13;
>
>               at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)&#13;
>
>               at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>
>(ApplicationFilterChain.java:252)&#13;
>
>               at org.apache.catalina.core.ApplicationFilterChain.doFilter
>
>(ApplicationFilterChain.java:173)&#13;
>
>               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
>
>(ReplyHeaderFilter.java:96)&#13;
>
>               at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>
>(ApplicationFilterChain.java:202)&#13;
>
>               at org.apache.catalina.core.ApplicationFilterChain.doFilter
>
>(ApplicationFilterChain.java:173)&#13;
>
>               at org.apache.catalina.core.StandardWrapperValve.invoke
>
>(StandardWrapperValve.java:213)&#13;
>
>               at org.apache.catalina.core.StandardContextValve.invoke
>
>(StandardContextValve.java:178)&#13;
>
>               at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
>
>(SecurityAssociationValve.java:175)&#13;
>
>               at org.jboss.web.tomcat.security.JaccContextValve.invoke
>
>(JaccContextValve.java:74)&#13;
>
>               at org.apache.catalina.core.StandardHostValve.invoke
>
>(StandardHostValve.java:126)&#13;
>
>               at org.apache.catalina.valves.ErrorReportValve.invoke
>
>(ErrorReportValve.java:105)&#13;
>
>               at org.apache.catalina.core.StandardEngineValve.invoke
>
>(StandardEngineValve.java:107)&#13;
>
>               at org.apache.catalina.connector.CoyoteAdapter.service
>
>(CoyoteAdapter.java:148)&#13;
>
>               at org.apache.coyote.http11.Http11Processor.process
>
>(Http11Processor.java:869)&#13;
>
>               at 
>
>org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
Co
>
>nnection(Http11BaseProtocol.java:664)&#13;
>
>               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>
>(PoolTcpEndpoint.java:527)&#13;
>
>               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
>
>(MasterSlaveWorkerThread.java:112)&#13;
>
>               at java.lang.Thread.run(Thread.java:534)&#13;
>
>Caused by: org.apache.axiom.om.OMException: 
>
>java.lang.NullPointerException&#13;
>
>               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
>
>(StAXOMBuilder.java:206)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMNodeImpl.build
>
>(OMNodeImpl.java:298)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.detach
>
>(OMElementImpl.java:586)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent
>
>(OMNodeImpl.java:118)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
>
>(OMElementImpl.java:241)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
>
>(OMElementImpl.java:198)&#13;
>
>               at org.apache.axis2.rpc.receivers.RPCUtil.processResponse
>
>(RPCUtil.java:72)&#13;
>
>               at 
>
>org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
>
>(RPCMessageReceiver.java:141)&#13;
>
>               ... 24 more&#13;
>
>Caused by: java.lang.NullPointerException&#13;
>
>               at org.apache.axis2.databinding.utils.BeanUtil.getPullParser
>
>(BeanUtil.java:95)&#13;
>
>               at 
>
>org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processPro
pe
>
>rties(ADBXMLStreamReaderImpl.java:953)&#13;
>
>               at 
>
>org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next
>
>(ADBXMLStreamReaderImpl.java:807)&#13;
>
>               at
org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
>
>&#13;
>
>               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
>
>(StAXOMBuilder.java:123)&#13;
>
>               ... 31 more&#13;
>
></Exception>
>
>                                              </detail>
>
>                               </soapenv:Fault>
>
>               </soapenv:Body>
>
></soapenv:Envelope>
>
> 
>
>  
>
>------------------------------------------------------------------------
>
><serviceGroup>
>	<service name="ShoppingEngine">
>		<parameter locked="false"
name="ServiceClass">com.bsil.project.airtrade.shoppingengine.ShoppingEngineS
ervice</parameter>
>		<operation name="flightInformation">
>		    <messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:flightInformation</actionMapping>
>		</operation>
>		<operation name="airAvailability">
>			<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:airAvailability</actionMapping>
>		</operation>
>		<operation name="airFareRules">
>			<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:airFareRules</actionMapping>
>		</operation>
>		<operation name="sayHello">
>			<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:sayHello</actionMapping>
>		</operation>
>	</service>
></serviceGroup>
>  
>
>------------------------------------------------------------------------
>
><wsdl:definitions name="ShoppingEngineService"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
xmlns:ns2="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/ty
pes" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.
com">
>	<wsdl:types>
>		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:stn_12="http://air.airtrade.project.bsil.com/xsd"
targetNamespace="http://air.airtrade.project.bsil.com/xsd"
elementFormDefault="qualified" attributeFormDefault="unqualified">
>			<xs:element type="stn_12:AirAvailabilityRequest"
name="AirAvailabilityRequest"/>
>			<xs:complexType name="AirAvailabilityRequest">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:OriginDestination" name="originDestination"
maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="cabinClass"/>
>					<xs:element type="xs:string"
name="carrierPreferences"/>
>					<xs:element type="xs:int"
name="numAdults"/>
>					<xs:element type="xs:int"
name="numChildren"/>
>					<xs:element type="xs:int"
name="numInfants"/>
>					<xs:element type="xs:int"
name="numSeniors"/>
>					<xs:element type="xs:int"
name="tripType"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:OriginDestination"
name="OriginDestination"/>
>			<xs:complexType name="OriginDestination">
>				<xs:sequence>
>					<xs:element type="xs:dateTime"
name="departureDate"/>
>					<xs:element minOccurs="0"
type="stn_12:Flight" name="flightInformation" maxOccurs="unbounded"/>
>					<xs:element minOccurs="0"
type="stn_12:Flight" name="flight" maxOccurs="unbounded"/>
>					<xs:element type="xs:int"
name="numOfStops"/>
>					<xs:element type="xs:string"
name="source"/>
>					<xs:element type="xs:string"
name="destination"/>
>					<xs:element type="xs:string"
name="origin"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:Flight" name="Flight"/>
>			<xs:complexType name="Flight">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:FlightSegment" name="segments" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="journeyTime"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FlightSegment"
name="FlightSegment"/>
>			<xs:complexType name="FlightSegment">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="arrAirport"/>
>					<xs:element type="xs:string"
name="arrAirportName"/>
>					<xs:element type="xs:string"
name="arrDate"/>
>					<xs:element type="xs:string"
name="arrTerminal"/>
>					<xs:element type="xs:string"
name="arrTime"/>
>					<xs:element type="xs:string"
name="carrierCode"/>
>					<xs:element type="xs:string"
name="carrierName"/>
>					<xs:element type="xs:string"
name="depAirport"/>
>					<xs:element type="xs:string"
name="depAirportName"/>
>					<xs:element type="xs:string"
name="depDate"/>
>					<xs:element type="xs:string"
name="depTerminal"/>
>					<xs:element type="xs:string"
name="depTime"/>
>					<xs:element type="xs:string"
name="equipmentCode"/>
>					<xs:element type="xs:string"
name="equipmentName"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:AirAvailabilityResponse"
name="AirAvailabilityResponse"/>
>			<xs:complexType name="AirAvailabilityResponse">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:OriginDestination" name="originDestination"
maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FlightInfo"
name="FlightInfo"/>
>			<xs:complexType name="FlightInfo">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:CityInfo" name="cityInfo" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="codeSharingAirlineCode"/>
>					<xs:element type="xs:string"
name="codeSharingAirlineName"/>
>					<xs:element type="xs:string"
name="flightAirlineName"/>
>					<xs:element type="xs:string"
name="flightDate"/>
>					<xs:element type="xs:string"
name="flightNumber"/>
>					<xs:element type="xs:string"
name="flightNumberSuffix"/>
>					<xs:element type="xs:string"
name="flightSource"/>
>					<xs:element type="xs:string"
name="messageText"/>
>					<xs:element type="xs:string"
name="numberOfStops"/>
>					<xs:element type="xs:string"
name="smoking"/>
>					<xs:element type="xs:string"
name="flightAirlineCode"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:CityInfo" name="CityInfo"/>
>			<xs:complexType name="CityInfo">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="fromCity"/>
>					<xs:element type="xs:string"
name="toCity"/>
>					<xs:element type="xs:string"
name="text"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FareIdentification"
name="FareIdentification"/>
>			<xs:complexType name="FareIdentification">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="airlineCode"/>
>					<xs:element type="xs:string"
name="arrivalCity"/>
>					<xs:element type="xs:string"
name="departureCity"/>
>					<xs:element type="xs:dateTime"
name="departureDate"/>
>					<xs:element type="xs:string"
name="fareBasisCode"/>
>					<xs:element type="xs:string"
name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FareRules"
name="FareRules"/>
>			<xs:complexType name="FareRules">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:Rule" name="rules" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="airlineCode"/>
>					<xs:element type="xs:string"
name="arrivalCity"/>
>					<xs:element type="xs:string"
name="departureCity"/>
>					<xs:element type="xs:string"
name="departureDate"/>
>					<xs:element type="xs:string"
name="fareBasisCode"/>
>					<xs:element type="xs:string"
name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:Rule" name="Rule"/>
>			<xs:complexType name="Rule">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="category"/>
>					<xs:element minOccurs="0"
type="xs:string" name="ruleText" maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<!--xs:complexType name="FareRules">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:Rule" name="rules" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="airlineCode"/>
>					<xs:element type="xs:string"
name="arrivalCity"/>
>					<xs:element type="xs:string"
name="departureCity"/>
>					<xs:element type="xs:string"
name="departureDate"/>
>					<xs:element type="xs:string"
name="fareBasisCode"/>
>					<xs:element type="xs:string"
name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="Rule">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="category"/>
>					<xs:element minOccurs="0"
type="xs:string" name="ruleText" maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FlightSegment">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="arrAirport"/>
>					<xs:element type="xs:string"
name="arrAirportName"/>
>					<xs:element type="xs:string"
name="arrDate"/>
>					<xs:element type="xs:string"
name="arrTerminal"/>
>					<xs:element type="xs:string"
name="arrTime"/>
>					<xs:element type="xs:string"
name="carrierCode"/>
>					<xs:element type="xs:string"
name="carrierName"/>
>					<xs:element type="xs:string"
name="depAirport"/>
>					<xs:element type="xs:string"
name="depAirportName"/>
>					<xs:element type="xs:string"
name="depDate"/>
>					<xs:element type="xs:string"
name="depTerminal"/>
>					<xs:element type="xs:string"
name="depTime"/>
>					<xs:element type="xs:string"
name="equipmentCode"/>
>					<xs:element type="xs:string"
name="equipmentName"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="Flight">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:FlightSegment" name="segments" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="journeyTime"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FlightInfo">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:CityInfo" name="cityInfo" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="codeSharingAirlineCode"/>
>					<xs:element type="xs:string"
name="codeSharingAirlineName"/>
>					<xs:element type="xs:string"
name="flightAirlineName"/>
>					<xs:element type="xs:string"
name="flightDate"/>
>					<xs:element type="xs:string"
name="flightNumber"/>
>					<xs:element type="xs:string"
name="flightNumberSuffix"/>
>					<xs:element type="xs:string"
name="flightSource"/>
>					<xs:element type="xs:string"
name="messageText"/>
>					<xs:element type="xs:string"
name="numberOfStops"/>
>					<xs:element type="xs:string"
name="smoking"/>
>					<xs:element type="xs:string"
name="flightAirlineCode"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FareIdentification">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="airlineCode"/>
>					<xs:element type="xs:string"
name="arrivalCity"/>
>					<xs:element type="xs:string"
name="departureCity"/>
>					<xs:element type="xs:dateTime"
name="departureDate"/>
>					<xs:element type="xs:string"
name="fareBasisCode"/>
>					<xs:element type="xs:string"
name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="AirAvailabilityResponse">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:OriginDestination" name="originDestination"
maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="OriginDestination">
>				<xs:sequence>
>					<xs:element type="xs:dateTime"
name="departureDate"/>
>					<xs:element minOccurs="0"
type="stn_12:Flight" name="flightInformation" maxOccurs="unbounded"/>
>					<xs:element minOccurs="0"
type="stn_12:Flight" name="flight" maxOccurs="unbounded"/>
>					<xs:element type="xs:int"
name="numOfStops"/>
>					<xs:element type="xs:string"
name="source"/>
>					<xs:element type="xs:string"
name="destination"/>
>					<xs:element type="xs:string"
name="origin"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="AirAvailabilityRequest">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:OriginDestination" name="originDestination"
maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="cabinClass"/>
>					<xs:element type="xs:string"
name="carrierPreferences"/>
>					<xs:element type="xs:int"
name="numAdults"/>
>					<xs:element type="xs:int"
name="numChildren"/>
>					<xs:element type="xs:int"
name="numInfants"/>
>					<xs:element type="xs:int"
name="numSeniors"/>
>					<xs:element type="xs:int"
name="tripType"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="CityInfo">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="fromCity"/>
>					<xs:element type="xs:string"
name="toCity"/>
>					<xs:element type="xs:string"
name="text"/>
>				</xs:sequence>
>			</xs:complexType-->
>		</xs:schema>
>		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:stn_22="http://air.airtrade.project.bsil.com/xsd"
targetNamespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.
com/types" elementFormDefault="qualified"
attributeFormDefault="unqualified">
>			<xs:import
namespace="http://air.airtrade.project.bsil.com/xsd"/>
>			<xs:element name="airAvailability">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:AirAvailabilityRequest" name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airAvailabilityResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:AirAvailabilityResponse" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="flightInformation">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string"
name="param0"/>
>						<xs:element type="xs:string"
name="param1"/>
>						<xs:element type="xs:string"
name="param2"/>
>						<xs:element type="xs:string"
name="param3"/>
>						<xs:element type="xs:string"
name="param4"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="flightInformationResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:FlightInfo" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airFareRules">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:FareIdentification" name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airFareRulesResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:FareRules" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="sayHello">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string"
name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="sayHelloResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string"
name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>		</xs:schema>
>	</wsdl:types>
>	<wsdl:message name="airAvailabilityMessage">
>		<wsdl:part element="ns2:airAvailability" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airAvailabilityResponseMessage">
>		<wsdl:part element="ns2:airAvailabilityResponse"
name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="flightInformationMessage">
>		<wsdl:part element="ns2:flightInformation" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="flightInformationResponseMessage">
>		<wsdl:part element="ns2:flightInformationResponse"
name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airFareRulesMessage">
>		<wsdl:part element="ns2:airFareRules" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airFareRulesResponseMessage">
>		<wsdl:part element="ns2:airFareRulesResponse" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="sayHelloMessage">
>		<wsdl:part element="ns2:sayHello" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="sayHelloResponseMessage">
>		<wsdl:part element="ns2:sayHelloResponse" name="part1"/>
>	</wsdl:message>
>	<wsdl:portType name="ShoppingEnginePortType">
>		<wsdl:operation name="airAvailability">
>			<wsdl:input message="ns:airAvailabilityMessage"/>
>			<wsdl:output
message="ns:airAvailabilityResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<wsdl:input message="ns:flightInformationMessage"/>
>			<wsdl:output
message="ns:flightInformationResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<wsdl:input message="ns:airFareRulesMessage"/>
>			<wsdl:output
message="ns:airFareRulesResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<wsdl:input message="ns:sayHelloMessage"/>
>			<wsdl:output message="ns:sayHelloResponseMessage"/>
>		</wsdl:operation>
>	</wsdl:portType>
>	<wsdl:binding type="ns:ShoppingEnginePortType"
name="ShoppingEngineSOAP11Binding">
>		<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
>		<wsdl:operation name="airAvailability">
>			<soap:operation style="document"
soapAction="urn:airAvailability"/>
>			<wsdl:input>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<soap:operation style="document"
soapAction="urn:flightInformation"/>
>			<wsdl:input>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<soap:operation style="document"
soapAction="urn:airFareRules"/>
>			<wsdl:input>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<soap:operation style="document"
soapAction="urn:sayHello"/>
>			<wsdl:input>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>	</wsdl:binding>
>	<wsdl:binding type="ns:ShoppingEnginePortType"
name="ShoppingEngineSOAP12Binding">
>		<soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
>		<wsdl:operation name="airAvailability">
>			<soap12:operation style="document"
soapAction="urn:airAvailability"/>
>			<wsdl:input>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<soap12:operation style="document"
soapAction="urn:flightInformation"/>
>			<wsdl:input>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<soap12:operation style="document"
soapAction="urn:airFareRules"/>
>			<wsdl:input>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<soap12:operation style="document"
soapAction="urn:sayHello"/>
>			<wsdl:input>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>	</wsdl:binding>
>	<wsdl:service name="ShoppingEngine">
>		<wsdl:port binding="ns:ShoppingEngineSOAP11Binding"
name="ShoppingEngineSOAP11port">
>			<soap:address
location="http://localhost:8080/axis2/services/ShoppingEngine"/>
>		</wsdl:port>
>		<wsdl:port binding="ns:ShoppingEngineSOAP12Binding"
name="ShoppingEngineSOAP12port">
>			<soap12:address
location="http://localhost:8080/axis2/services/ShoppingEngine"/>
>		</wsdl:port>
>	</wsdl:service>
></wsdl:definitions>
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-dev-help@ws.apache.org
>

-- 

Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


RE: AXIS2::Serialization of conplex type throws NPE

Posted by Pradeepta Bhattacharya <pr...@bsil.com>.
Hi Deepal,

    Thanks for your time. I am attaching the service impl as mentioned in
your mail. The wsdl is actually generated thru the java2wsdl class and while
testing the application thru the classes generated from the wsdl2code class
the soap request is sent fine as I have attached in my previous mail and the
service after completion tries to send the response back to the client and
there the problem occurs. Please have a look and let me know if you have any
suggestions. 

Thanks a lot
Pradeepta

-----Original Message-----
From: Deepal Jayasinghe [mailto:deepal@opensource.lk] 
Sent: Wednesday, July 12, 2006 11:41 AM
To: axis-dev@ws.apache.org
Subject: Re: AXIS2::Serialization of conplex type throws NPE

Hi Pradeepta;
Since you have the wsdl why dont you code generate rather than using
RPCMessage receiver , I think that is the best way.
Any way can you pls send me the service impl class as well (if possible)

Pradeepta Bhattacharya wrote:

>When trying to invoke a RPC based service, Axis throws an exception when 
>
>trying to serialize a response of hierarchic bean structure to response
SOAP 
>
>request. I have attached the service jar deployed on JBoss 4.0.4 and I have

>
>tested the simple response sayHello but when it comes to complex structure 
>
>axis throws NPE. Any help on what might be wrong is highly appreciated. 
>
>Thanks a lot.
>
> 
>
>/////////////////////////////////////////////////////////////////
>
>////////////////////////// REQUEST  /////////////////////////////
>
>/////////////////////////////////////////////////////////////////
>
> 
>
><?xml version="1.0" encoding="UTF-8"?>
>
><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>
>               <soapenv:Header/>
>
>               <soapenv:Body>
>
>                               <airAvailability 
>
>xmlns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types
">
>
>                                              <param0>
>
>
<originDestination 
>
>xmlns="http://air.airtrade.project.bsil.com/xsd">
>
>
<departureDate>2006-08-
>
>28T00:22:08.968+05:30</departureDate>
>
>
<destination>MIA</destination>
>
>
<origin>CDG</origin>
>
>
</originDestination>
>
>                                                             <tripType 
>
>xmlns="http://air.airtrade.project.bsil.com/xsd">1</tripType>
>
>                                              </param0>
>
>                               </airAvailability>
>
>               </soapenv:Body>
>
></soapenv:Envelope>
>
> 
>
> 
>
>/////////////////////////////////////////////////////////////////
>
>////////////////////////// RESPONSE /////////////////////////////
>
>/////////////////////////////////////////////////////////////////
>
> 
>
><?xml version="1.0" encoding="UTF-8"?>
>
><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>
>               <soapenv:Header/>
>
>               <soapenv:Body>
>
>                               <soapenv:Fault>
>
>
<faultcode>soapenv:Client</faultcode>
>
>                               
>
>               <faultstring>java.lang.NullPointerException</faultstring>
>
>                                              <detail>
>
>
<Exception>org.apache.axis2.AxisFault: 
>
>java.lang.NullPointerException; nested exception is: 
>
>               org.apache.axiom.om.OMException:
java.lang.NullPointerException&#13;
>
>               at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)&#13;
>
>               at 
>
>org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
>
>(RPCMessageReceiver.java:150)&#13;
>
>               at 
>
>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive
>
>(AbstractInOutSyncMessageReceiver.java:37)&#13;
>
>               at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
>
>&#13;
>
>               at 
>
>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
>
>(HTTPTransportUtils.java:284)&#13;
>
>               at org.apache.axis2.transport.http.AxisServlet.doPost
>
>(AxisServlet.java:144)&#13;
>
>               at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#13;
>
>               at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)&#13;
>
>               at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>
>(ApplicationFilterChain.java:252)&#13;
>
>               at org.apache.catalina.core.ApplicationFilterChain.doFilter
>
>(ApplicationFilterChain.java:173)&#13;
>
>               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
>
>(ReplyHeaderFilter.java:96)&#13;
>
>               at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>
>(ApplicationFilterChain.java:202)&#13;
>
>               at org.apache.catalina.core.ApplicationFilterChain.doFilter
>
>(ApplicationFilterChain.java:173)&#13;
>
>               at org.apache.catalina.core.StandardWrapperValve.invoke
>
>(StandardWrapperValve.java:213)&#13;
>
>               at org.apache.catalina.core.StandardContextValve.invoke
>
>(StandardContextValve.java:178)&#13;
>
>               at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
>
>(SecurityAssociationValve.java:175)&#13;
>
>               at org.jboss.web.tomcat.security.JaccContextValve.invoke
>
>(JaccContextValve.java:74)&#13;
>
>               at org.apache.catalina.core.StandardHostValve.invoke
>
>(StandardHostValve.java:126)&#13;
>
>               at org.apache.catalina.valves.ErrorReportValve.invoke
>
>(ErrorReportValve.java:105)&#13;
>
>               at org.apache.catalina.core.StandardEngineValve.invoke
>
>(StandardEngineValve.java:107)&#13;
>
>               at org.apache.catalina.connector.CoyoteAdapter.service
>
>(CoyoteAdapter.java:148)&#13;
>
>               at org.apache.coyote.http11.Http11Processor.process
>
>(Http11Processor.java:869)&#13;
>
>               at 
>
>org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
Co
>
>nnection(Http11BaseProtocol.java:664)&#13;
>
>               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>
>(PoolTcpEndpoint.java:527)&#13;
>
>               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
>
>(MasterSlaveWorkerThread.java:112)&#13;
>
>               at java.lang.Thread.run(Thread.java:534)&#13;
>
>Caused by: org.apache.axiom.om.OMException: 
>
>java.lang.NullPointerException&#13;
>
>               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
>
>(StAXOMBuilder.java:206)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMNodeImpl.build
>
>(OMNodeImpl.java:298)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.detach
>
>(OMElementImpl.java:586)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent
>
>(OMNodeImpl.java:118)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
>
>(OMElementImpl.java:241)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
>
>(OMElementImpl.java:198)&#13;
>
>               at org.apache.axis2.rpc.receivers.RPCUtil.processResponse
>
>(RPCUtil.java:72)&#13;
>
>               at 
>
>org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
>
>(RPCMessageReceiver.java:141)&#13;
>
>               ... 24 more&#13;
>
>Caused by: java.lang.NullPointerException&#13;
>
>               at org.apache.axis2.databinding.utils.BeanUtil.getPullParser
>
>(BeanUtil.java:95)&#13;
>
>               at 
>
>org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processPro
pe
>
>rties(ADBXMLStreamReaderImpl.java:953)&#13;
>
>               at 
>
>org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next
>
>(ADBXMLStreamReaderImpl.java:807)&#13;
>
>               at
org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
>
>&#13;
>
>               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
>
>(StAXOMBuilder.java:123)&#13;
>
>               ... 31 more&#13;
>
></Exception>
>
>                                              </detail>
>
>                               </soapenv:Fault>
>
>               </soapenv:Body>
>
></soapenv:Envelope>
>
> 
>
>  
>
>------------------------------------------------------------------------
>
><serviceGroup>
>	<service name="ShoppingEngine">
>		<parameter locked="false"
name="ServiceClass">com.bsil.project.airtrade.shoppingengine.ShoppingEngineS
ervice</parameter>
>		<operation name="flightInformation">
>		    <messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:flightInformation</actionMapping>
>		</operation>
>		<operation name="airAvailability">
>			<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:airAvailability</actionMapping>
>		</operation>
>		<operation name="airFareRules">
>			<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:airFareRules</actionMapping>
>		</operation>
>		<operation name="sayHello">
>			<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:sayHello</actionMapping>
>		</operation>
>	</service>
></serviceGroup>
>  
>
>------------------------------------------------------------------------
>
><wsdl:definitions name="ShoppingEngineService"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
xmlns:ns2="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/ty
pes" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.
com">
>	<wsdl:types>
>		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:stn_12="http://air.airtrade.project.bsil.com/xsd"
targetNamespace="http://air.airtrade.project.bsil.com/xsd"
elementFormDefault="qualified" attributeFormDefault="unqualified">
>			<xs:element type="stn_12:AirAvailabilityRequest"
name="AirAvailabilityRequest"/>
>			<xs:complexType name="AirAvailabilityRequest">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:OriginDestination" name="originDestination"
maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="cabinClass"/>
>					<xs:element type="xs:string"
name="carrierPreferences"/>
>					<xs:element type="xs:int"
name="numAdults"/>
>					<xs:element type="xs:int"
name="numChildren"/>
>					<xs:element type="xs:int"
name="numInfants"/>
>					<xs:element type="xs:int"
name="numSeniors"/>
>					<xs:element type="xs:int"
name="tripType"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:OriginDestination"
name="OriginDestination"/>
>			<xs:complexType name="OriginDestination">
>				<xs:sequence>
>					<xs:element type="xs:dateTime"
name="departureDate"/>
>					<xs:element minOccurs="0"
type="stn_12:Flight" name="flightInformation" maxOccurs="unbounded"/>
>					<xs:element minOccurs="0"
type="stn_12:Flight" name="flight" maxOccurs="unbounded"/>
>					<xs:element type="xs:int"
name="numOfStops"/>
>					<xs:element type="xs:string"
name="source"/>
>					<xs:element type="xs:string"
name="destination"/>
>					<xs:element type="xs:string"
name="origin"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:Flight" name="Flight"/>
>			<xs:complexType name="Flight">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:FlightSegment" name="segments" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="journeyTime"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FlightSegment"
name="FlightSegment"/>
>			<xs:complexType name="FlightSegment">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="arrAirport"/>
>					<xs:element type="xs:string"
name="arrAirportName"/>
>					<xs:element type="xs:string"
name="arrDate"/>
>					<xs:element type="xs:string"
name="arrTerminal"/>
>					<xs:element type="xs:string"
name="arrTime"/>
>					<xs:element type="xs:string"
name="carrierCode"/>
>					<xs:element type="xs:string"
name="carrierName"/>
>					<xs:element type="xs:string"
name="depAirport"/>
>					<xs:element type="xs:string"
name="depAirportName"/>
>					<xs:element type="xs:string"
name="depDate"/>
>					<xs:element type="xs:string"
name="depTerminal"/>
>					<xs:element type="xs:string"
name="depTime"/>
>					<xs:element type="xs:string"
name="equipmentCode"/>
>					<xs:element type="xs:string"
name="equipmentName"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:AirAvailabilityResponse"
name="AirAvailabilityResponse"/>
>			<xs:complexType name="AirAvailabilityResponse">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:OriginDestination" name="originDestination"
maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FlightInfo"
name="FlightInfo"/>
>			<xs:complexType name="FlightInfo">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:CityInfo" name="cityInfo" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="codeSharingAirlineCode"/>
>					<xs:element type="xs:string"
name="codeSharingAirlineName"/>
>					<xs:element type="xs:string"
name="flightAirlineName"/>
>					<xs:element type="xs:string"
name="flightDate"/>
>					<xs:element type="xs:string"
name="flightNumber"/>
>					<xs:element type="xs:string"
name="flightNumberSuffix"/>
>					<xs:element type="xs:string"
name="flightSource"/>
>					<xs:element type="xs:string"
name="messageText"/>
>					<xs:element type="xs:string"
name="numberOfStops"/>
>					<xs:element type="xs:string"
name="smoking"/>
>					<xs:element type="xs:string"
name="flightAirlineCode"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:CityInfo" name="CityInfo"/>
>			<xs:complexType name="CityInfo">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="fromCity"/>
>					<xs:element type="xs:string"
name="toCity"/>
>					<xs:element type="xs:string"
name="text"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FareIdentification"
name="FareIdentification"/>
>			<xs:complexType name="FareIdentification">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="airlineCode"/>
>					<xs:element type="xs:string"
name="arrivalCity"/>
>					<xs:element type="xs:string"
name="departureCity"/>
>					<xs:element type="xs:dateTime"
name="departureDate"/>
>					<xs:element type="xs:string"
name="fareBasisCode"/>
>					<xs:element type="xs:string"
name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FareRules"
name="FareRules"/>
>			<xs:complexType name="FareRules">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:Rule" name="rules" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="airlineCode"/>
>					<xs:element type="xs:string"
name="arrivalCity"/>
>					<xs:element type="xs:string"
name="departureCity"/>
>					<xs:element type="xs:string"
name="departureDate"/>
>					<xs:element type="xs:string"
name="fareBasisCode"/>
>					<xs:element type="xs:string"
name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:Rule" name="Rule"/>
>			<xs:complexType name="Rule">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="category"/>
>					<xs:element minOccurs="0"
type="xs:string" name="ruleText" maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<!--xs:complexType name="FareRules">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:Rule" name="rules" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="airlineCode"/>
>					<xs:element type="xs:string"
name="arrivalCity"/>
>					<xs:element type="xs:string"
name="departureCity"/>
>					<xs:element type="xs:string"
name="departureDate"/>
>					<xs:element type="xs:string"
name="fareBasisCode"/>
>					<xs:element type="xs:string"
name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="Rule">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="category"/>
>					<xs:element minOccurs="0"
type="xs:string" name="ruleText" maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FlightSegment">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="arrAirport"/>
>					<xs:element type="xs:string"
name="arrAirportName"/>
>					<xs:element type="xs:string"
name="arrDate"/>
>					<xs:element type="xs:string"
name="arrTerminal"/>
>					<xs:element type="xs:string"
name="arrTime"/>
>					<xs:element type="xs:string"
name="carrierCode"/>
>					<xs:element type="xs:string"
name="carrierName"/>
>					<xs:element type="xs:string"
name="depAirport"/>
>					<xs:element type="xs:string"
name="depAirportName"/>
>					<xs:element type="xs:string"
name="depDate"/>
>					<xs:element type="xs:string"
name="depTerminal"/>
>					<xs:element type="xs:string"
name="depTime"/>
>					<xs:element type="xs:string"
name="equipmentCode"/>
>					<xs:element type="xs:string"
name="equipmentName"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="Flight">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:FlightSegment" name="segments" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="journeyTime"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FlightInfo">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:CityInfo" name="cityInfo" maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="codeSharingAirlineCode"/>
>					<xs:element type="xs:string"
name="codeSharingAirlineName"/>
>					<xs:element type="xs:string"
name="flightAirlineName"/>
>					<xs:element type="xs:string"
name="flightDate"/>
>					<xs:element type="xs:string"
name="flightNumber"/>
>					<xs:element type="xs:string"
name="flightNumberSuffix"/>
>					<xs:element type="xs:string"
name="flightSource"/>
>					<xs:element type="xs:string"
name="messageText"/>
>					<xs:element type="xs:string"
name="numberOfStops"/>
>					<xs:element type="xs:string"
name="smoking"/>
>					<xs:element type="xs:string"
name="flightAirlineCode"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FareIdentification">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="airlineCode"/>
>					<xs:element type="xs:string"
name="arrivalCity"/>
>					<xs:element type="xs:string"
name="departureCity"/>
>					<xs:element type="xs:dateTime"
name="departureDate"/>
>					<xs:element type="xs:string"
name="fareBasisCode"/>
>					<xs:element type="xs:string"
name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="AirAvailabilityResponse">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:OriginDestination" name="originDestination"
maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="OriginDestination">
>				<xs:sequence>
>					<xs:element type="xs:dateTime"
name="departureDate"/>
>					<xs:element minOccurs="0"
type="stn_12:Flight" name="flightInformation" maxOccurs="unbounded"/>
>					<xs:element minOccurs="0"
type="stn_12:Flight" name="flight" maxOccurs="unbounded"/>
>					<xs:element type="xs:int"
name="numOfStops"/>
>					<xs:element type="xs:string"
name="source"/>
>					<xs:element type="xs:string"
name="destination"/>
>					<xs:element type="xs:string"
name="origin"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="AirAvailabilityRequest">
>				<xs:sequence>
>					<xs:element minOccurs="0"
type="stn_12:OriginDestination" name="originDestination"
maxOccurs="unbounded"/>
>					<xs:element type="xs:string"
name="cabinClass"/>
>					<xs:element type="xs:string"
name="carrierPreferences"/>
>					<xs:element type="xs:int"
name="numAdults"/>
>					<xs:element type="xs:int"
name="numChildren"/>
>					<xs:element type="xs:int"
name="numInfants"/>
>					<xs:element type="xs:int"
name="numSeniors"/>
>					<xs:element type="xs:int"
name="tripType"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="CityInfo">
>				<xs:sequence>
>					<xs:element type="xs:string"
name="fromCity"/>
>					<xs:element type="xs:string"
name="toCity"/>
>					<xs:element type="xs:string"
name="text"/>
>				</xs:sequence>
>			</xs:complexType-->
>		</xs:schema>
>		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:stn_22="http://air.airtrade.project.bsil.com/xsd"
targetNamespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.
com/types" elementFormDefault="qualified"
attributeFormDefault="unqualified">
>			<xs:import
namespace="http://air.airtrade.project.bsil.com/xsd"/>
>			<xs:element name="airAvailability">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:AirAvailabilityRequest" name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airAvailabilityResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:AirAvailabilityResponse" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="flightInformation">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string"
name="param0"/>
>						<xs:element type="xs:string"
name="param1"/>
>						<xs:element type="xs:string"
name="param2"/>
>						<xs:element type="xs:string"
name="param3"/>
>						<xs:element type="xs:string"
name="param4"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="flightInformationResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:FlightInfo" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airFareRules">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:FareIdentification" name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airFareRulesResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element
type="stn_22:FareRules" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="sayHello">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string"
name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="sayHelloResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string"
name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>		</xs:schema>
>	</wsdl:types>
>	<wsdl:message name="airAvailabilityMessage">
>		<wsdl:part element="ns2:airAvailability" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airAvailabilityResponseMessage">
>		<wsdl:part element="ns2:airAvailabilityResponse"
name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="flightInformationMessage">
>		<wsdl:part element="ns2:flightInformation" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="flightInformationResponseMessage">
>		<wsdl:part element="ns2:flightInformationResponse"
name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airFareRulesMessage">
>		<wsdl:part element="ns2:airFareRules" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airFareRulesResponseMessage">
>		<wsdl:part element="ns2:airFareRulesResponse" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="sayHelloMessage">
>		<wsdl:part element="ns2:sayHello" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="sayHelloResponseMessage">
>		<wsdl:part element="ns2:sayHelloResponse" name="part1"/>
>	</wsdl:message>
>	<wsdl:portType name="ShoppingEnginePortType">
>		<wsdl:operation name="airAvailability">
>			<wsdl:input message="ns:airAvailabilityMessage"/>
>			<wsdl:output
message="ns:airAvailabilityResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<wsdl:input message="ns:flightInformationMessage"/>
>			<wsdl:output
message="ns:flightInformationResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<wsdl:input message="ns:airFareRulesMessage"/>
>			<wsdl:output
message="ns:airFareRulesResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<wsdl:input message="ns:sayHelloMessage"/>
>			<wsdl:output message="ns:sayHelloResponseMessage"/>
>		</wsdl:operation>
>	</wsdl:portType>
>	<wsdl:binding type="ns:ShoppingEnginePortType"
name="ShoppingEngineSOAP11Binding">
>		<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
>		<wsdl:operation name="airAvailability">
>			<soap:operation style="document"
soapAction="urn:airAvailability"/>
>			<wsdl:input>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<soap:operation style="document"
soapAction="urn:flightInformation"/>
>			<wsdl:input>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<soap:operation style="document"
soapAction="urn:airFareRules"/>
>			<wsdl:input>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<soap:operation style="document"
soapAction="urn:sayHello"/>
>			<wsdl:input>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>	</wsdl:binding>
>	<wsdl:binding type="ns:ShoppingEnginePortType"
name="ShoppingEngineSOAP12Binding">
>		<soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
>		<wsdl:operation name="airAvailability">
>			<soap12:operation style="document"
soapAction="urn:airAvailability"/>
>			<wsdl:input>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<soap12:operation style="document"
soapAction="urn:flightInformation"/>
>			<wsdl:input>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<soap12:operation style="document"
soapAction="urn:airFareRules"/>
>			<wsdl:input>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<soap12:operation style="document"
soapAction="urn:sayHello"/>
>			<wsdl:input>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body
namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com"
use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>	</wsdl:binding>
>	<wsdl:service name="ShoppingEngine">
>		<wsdl:port binding="ns:ShoppingEngineSOAP11Binding"
name="ShoppingEngineSOAP11port">
>			<soap:address
location="http://localhost:8080/axis2/services/ShoppingEngine"/>
>		</wsdl:port>
>		<wsdl:port binding="ns:ShoppingEngineSOAP12Binding"
name="ShoppingEngineSOAP12port">
>			<soap12:address
location="http://localhost:8080/axis2/services/ShoppingEngine"/>
>		</wsdl:port>
>	</wsdl:service>
></wsdl:definitions>
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-dev-help@ws.apache.org
>

-- 

Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org

Re: AXIS2::Serialization of conplex type throws NPE

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Pradeepta;
Since you have the wsdl why dont you code generate rather than using
RPCMessage receiver , I think that is the best way.
Any way can you pls send me the service impl class as well (if possible)

Pradeepta Bhattacharya wrote:

>When trying to invoke a RPC based service, Axis throws an exception when 
>
>trying to serialize a response of hierarchic bean structure to response SOAP 
>
>request. I have attached the service jar deployed on JBoss 4.0.4 and I have 
>
>tested the simple response sayHello but when it comes to complex structure 
>
>axis throws NPE. Any help on what might be wrong is highly appreciated. 
>
>Thanks a lot.
>
> 
>
>/////////////////////////////////////////////////////////////////
>
>////////////////////////// REQUEST  /////////////////////////////
>
>/////////////////////////////////////////////////////////////////
>
> 
>
><?xml version="1.0" encoding="UTF-8"?>
>
><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>
>               <soapenv:Header/>
>
>               <soapenv:Body>
>
>                               <airAvailability 
>
>xmlns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types">
>
>                                              <param0>
>
>                                                             <originDestination 
>
>xmlns="http://air.airtrade.project.bsil.com/xsd">
>
>                                                                            <departureDate>2006-08-
>
>28T00:22:08.968+05:30</departureDate>
>
>                                                                            <destination>MIA</destination>
>
>                                                                            <origin>CDG</origin>
>
>                                                             </originDestination>
>
>                                                             <tripType 
>
>xmlns="http://air.airtrade.project.bsil.com/xsd">1</tripType>
>
>                                              </param0>
>
>                               </airAvailability>
>
>               </soapenv:Body>
>
></soapenv:Envelope>
>
> 
>
> 
>
>/////////////////////////////////////////////////////////////////
>
>////////////////////////// RESPONSE /////////////////////////////
>
>/////////////////////////////////////////////////////////////////
>
> 
>
><?xml version="1.0" encoding="UTF-8"?>
>
><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>
>               <soapenv:Header/>
>
>               <soapenv:Body>
>
>                               <soapenv:Fault>
>
>                                              <faultcode>soapenv:Client</faultcode>
>
>                               
>
>               <faultstring>java.lang.NullPointerException</faultstring>
>
>                                              <detail>
>
>                                                             <Exception>org.apache.axis2.AxisFault: 
>
>java.lang.NullPointerException; nested exception is: 
>
>               org.apache.axiom.om.OMException: java.lang.NullPointerException&#13;
>
>               at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)&#13;
>
>               at 
>
>org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
>
>(RPCMessageReceiver.java:150)&#13;
>
>               at 
>
>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive
>
>(AbstractInOutSyncMessageReceiver.java:37)&#13;
>
>               at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
>
>&#13;
>
>               at 
>
>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
>
>(HTTPTransportUtils.java:284)&#13;
>
>               at org.apache.axis2.transport.http.AxisServlet.doPost
>
>(AxisServlet.java:144)&#13;
>
>               at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#13;
>
>               at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)&#13;
>
>               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>
>(ApplicationFilterChain.java:252)&#13;
>
>               at org.apache.catalina.core.ApplicationFilterChain.doFilter
>
>(ApplicationFilterChain.java:173)&#13;
>
>               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
>
>(ReplyHeaderFilter.java:96)&#13;
>
>               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>
>(ApplicationFilterChain.java:202)&#13;
>
>               at org.apache.catalina.core.ApplicationFilterChain.doFilter
>
>(ApplicationFilterChain.java:173)&#13;
>
>               at org.apache.catalina.core.StandardWrapperValve.invoke
>
>(StandardWrapperValve.java:213)&#13;
>
>               at org.apache.catalina.core.StandardContextValve.invoke
>
>(StandardContextValve.java:178)&#13;
>
>               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
>
>(SecurityAssociationValve.java:175)&#13;
>
>               at org.jboss.web.tomcat.security.JaccContextValve.invoke
>
>(JaccContextValve.java:74)&#13;
>
>               at org.apache.catalina.core.StandardHostValve.invoke
>
>(StandardHostValve.java:126)&#13;
>
>               at org.apache.catalina.valves.ErrorReportValve.invoke
>
>(ErrorReportValve.java:105)&#13;
>
>               at org.apache.catalina.core.StandardEngineValve.invoke
>
>(StandardEngineValve.java:107)&#13;
>
>               at org.apache.catalina.connector.CoyoteAdapter.service
>
>(CoyoteAdapter.java:148)&#13;
>
>               at org.apache.coyote.http11.Http11Processor.process
>
>(Http11Processor.java:869)&#13;
>
>               at 
>
>org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processCo
>
>nnection(Http11BaseProtocol.java:664)&#13;
>
>               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>
>(PoolTcpEndpoint.java:527)&#13;
>
>               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
>
>(MasterSlaveWorkerThread.java:112)&#13;
>
>               at java.lang.Thread.run(Thread.java:534)&#13;
>
>Caused by: org.apache.axiom.om.OMException: 
>
>java.lang.NullPointerException&#13;
>
>               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
>
>(StAXOMBuilder.java:206)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMNodeImpl.build
>
>(OMNodeImpl.java:298)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.detach
>
>(OMElementImpl.java:586)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent
>
>(OMNodeImpl.java:118)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
>
>(OMElementImpl.java:241)&#13;
>
>               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
>
>(OMElementImpl.java:198)&#13;
>
>               at org.apache.axis2.rpc.receivers.RPCUtil.processResponse
>
>(RPCUtil.java:72)&#13;
>
>               at 
>
>org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
>
>(RPCMessageReceiver.java:141)&#13;
>
>               ... 24 more&#13;
>
>Caused by: java.lang.NullPointerException&#13;
>
>               at org.apache.axis2.databinding.utils.BeanUtil.getPullParser
>
>(BeanUtil.java:95)&#13;
>
>               at 
>
>org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processPrope
>
>rties(ADBXMLStreamReaderImpl.java:953)&#13;
>
>               at 
>
>org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next
>
>(ADBXMLStreamReaderImpl.java:807)&#13;
>
>               at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
>
>&#13;
>
>               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
>
>(StAXOMBuilder.java:123)&#13;
>
>               ... 31 more&#13;
>
></Exception>
>
>                                              </detail>
>
>                               </soapenv:Fault>
>
>               </soapenv:Body>
>
></soapenv:Envelope>
>
> 
>
>  
>
>------------------------------------------------------------------------
>
><serviceGroup>
>	<service name="ShoppingEngine">
>		<parameter locked="false" name="ServiceClass">com.bsil.project.airtrade.shoppingengine.ShoppingEngineService</parameter>
>		<operation name="flightInformation">
>		    <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:flightInformation</actionMapping>
>		</operation>
>		<operation name="airAvailability">
>			<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:airAvailability</actionMapping>
>		</operation>
>		<operation name="airFareRules">
>			<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:airFareRules</actionMapping>
>		</operation>
>		<operation name="sayHello">
>			<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>			<actionMapping>urn:sayHello</actionMapping>
>		</operation>
>	</service>
></serviceGroup>
>  
>
>------------------------------------------------------------------------
>
><wsdl:definitions name="ShoppingEngineService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" xmlns:ns2="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com">
>	<wsdl:types>
>		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:stn_12="http://air.airtrade.project.bsil.com/xsd" targetNamespace="http://air.airtrade.project.bsil.com/xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
>			<xs:element type="stn_12:AirAvailabilityRequest" name="AirAvailabilityRequest"/>
>			<xs:complexType name="AirAvailabilityRequest">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:OriginDestination" name="originDestination" maxOccurs="unbounded"/>
>					<xs:element type="xs:string" name="cabinClass"/>
>					<xs:element type="xs:string" name="carrierPreferences"/>
>					<xs:element type="xs:int" name="numAdults"/>
>					<xs:element type="xs:int" name="numChildren"/>
>					<xs:element type="xs:int" name="numInfants"/>
>					<xs:element type="xs:int" name="numSeniors"/>
>					<xs:element type="xs:int" name="tripType"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:OriginDestination" name="OriginDestination"/>
>			<xs:complexType name="OriginDestination">
>				<xs:sequence>
>					<xs:element type="xs:dateTime" name="departureDate"/>
>					<xs:element minOccurs="0" type="stn_12:Flight" name="flightInformation" maxOccurs="unbounded"/>
>					<xs:element minOccurs="0" type="stn_12:Flight" name="flight" maxOccurs="unbounded"/>
>					<xs:element type="xs:int" name="numOfStops"/>
>					<xs:element type="xs:string" name="source"/>
>					<xs:element type="xs:string" name="destination"/>
>					<xs:element type="xs:string" name="origin"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:Flight" name="Flight"/>
>			<xs:complexType name="Flight">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:FlightSegment" name="segments" maxOccurs="unbounded"/>
>					<xs:element type="xs:string" name="journeyTime"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FlightSegment" name="FlightSegment"/>
>			<xs:complexType name="FlightSegment">
>				<xs:sequence>
>					<xs:element type="xs:string" name="arrAirport"/>
>					<xs:element type="xs:string" name="arrAirportName"/>
>					<xs:element type="xs:string" name="arrDate"/>
>					<xs:element type="xs:string" name="arrTerminal"/>
>					<xs:element type="xs:string" name="arrTime"/>
>					<xs:element type="xs:string" name="carrierCode"/>
>					<xs:element type="xs:string" name="carrierName"/>
>					<xs:element type="xs:string" name="depAirport"/>
>					<xs:element type="xs:string" name="depAirportName"/>
>					<xs:element type="xs:string" name="depDate"/>
>					<xs:element type="xs:string" name="depTerminal"/>
>					<xs:element type="xs:string" name="depTime"/>
>					<xs:element type="xs:string" name="equipmentCode"/>
>					<xs:element type="xs:string" name="equipmentName"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:AirAvailabilityResponse" name="AirAvailabilityResponse"/>
>			<xs:complexType name="AirAvailabilityResponse">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:OriginDestination" name="originDestination" maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FlightInfo" name="FlightInfo"/>
>			<xs:complexType name="FlightInfo">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:CityInfo" name="cityInfo" maxOccurs="unbounded"/>
>					<xs:element type="xs:string" name="codeSharingAirlineCode"/>
>					<xs:element type="xs:string" name="codeSharingAirlineName"/>
>					<xs:element type="xs:string" name="flightAirlineName"/>
>					<xs:element type="xs:string" name="flightDate"/>
>					<xs:element type="xs:string" name="flightNumber"/>
>					<xs:element type="xs:string" name="flightNumberSuffix"/>
>					<xs:element type="xs:string" name="flightSource"/>
>					<xs:element type="xs:string" name="messageText"/>
>					<xs:element type="xs:string" name="numberOfStops"/>
>					<xs:element type="xs:string" name="smoking"/>
>					<xs:element type="xs:string" name="flightAirlineCode"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:CityInfo" name="CityInfo"/>
>			<xs:complexType name="CityInfo">
>				<xs:sequence>
>					<xs:element type="xs:string" name="fromCity"/>
>					<xs:element type="xs:string" name="toCity"/>
>					<xs:element type="xs:string" name="text"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FareIdentification" name="FareIdentification"/>
>			<xs:complexType name="FareIdentification">
>				<xs:sequence>
>					<xs:element type="xs:string" name="airlineCode"/>
>					<xs:element type="xs:string" name="arrivalCity"/>
>					<xs:element type="xs:string" name="departureCity"/>
>					<xs:element type="xs:dateTime" name="departureDate"/>
>					<xs:element type="xs:string" name="fareBasisCode"/>
>					<xs:element type="xs:string" name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:FareRules" name="FareRules"/>
>			<xs:complexType name="FareRules">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:Rule" name="rules" maxOccurs="unbounded"/>
>					<xs:element type="xs:string" name="airlineCode"/>
>					<xs:element type="xs:string" name="arrivalCity"/>
>					<xs:element type="xs:string" name="departureCity"/>
>					<xs:element type="xs:string" name="departureDate"/>
>					<xs:element type="xs:string" name="fareBasisCode"/>
>					<xs:element type="xs:string" name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:element type="stn_12:Rule" name="Rule"/>
>			<xs:complexType name="Rule">
>				<xs:sequence>
>					<xs:element type="xs:string" name="category"/>
>					<xs:element minOccurs="0" type="xs:string" name="ruleText" maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<!--xs:complexType name="FareRules">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:Rule" name="rules" maxOccurs="unbounded"/>
>					<xs:element type="xs:string" name="airlineCode"/>
>					<xs:element type="xs:string" name="arrivalCity"/>
>					<xs:element type="xs:string" name="departureCity"/>
>					<xs:element type="xs:string" name="departureDate"/>
>					<xs:element type="xs:string" name="fareBasisCode"/>
>					<xs:element type="xs:string" name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="Rule">
>				<xs:sequence>
>					<xs:element type="xs:string" name="category"/>
>					<xs:element minOccurs="0" type="xs:string" name="ruleText" maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FlightSegment">
>				<xs:sequence>
>					<xs:element type="xs:string" name="arrAirport"/>
>					<xs:element type="xs:string" name="arrAirportName"/>
>					<xs:element type="xs:string" name="arrDate"/>
>					<xs:element type="xs:string" name="arrTerminal"/>
>					<xs:element type="xs:string" name="arrTime"/>
>					<xs:element type="xs:string" name="carrierCode"/>
>					<xs:element type="xs:string" name="carrierName"/>
>					<xs:element type="xs:string" name="depAirport"/>
>					<xs:element type="xs:string" name="depAirportName"/>
>					<xs:element type="xs:string" name="depDate"/>
>					<xs:element type="xs:string" name="depTerminal"/>
>					<xs:element type="xs:string" name="depTime"/>
>					<xs:element type="xs:string" name="equipmentCode"/>
>					<xs:element type="xs:string" name="equipmentName"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="Flight">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:FlightSegment" name="segments" maxOccurs="unbounded"/>
>					<xs:element type="xs:string" name="journeyTime"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FlightInfo">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:CityInfo" name="cityInfo" maxOccurs="unbounded"/>
>					<xs:element type="xs:string" name="codeSharingAirlineCode"/>
>					<xs:element type="xs:string" name="codeSharingAirlineName"/>
>					<xs:element type="xs:string" name="flightAirlineName"/>
>					<xs:element type="xs:string" name="flightDate"/>
>					<xs:element type="xs:string" name="flightNumber"/>
>					<xs:element type="xs:string" name="flightNumberSuffix"/>
>					<xs:element type="xs:string" name="flightSource"/>
>					<xs:element type="xs:string" name="messageText"/>
>					<xs:element type="xs:string" name="numberOfStops"/>
>					<xs:element type="xs:string" name="smoking"/>
>					<xs:element type="xs:string" name="flightAirlineCode"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="FareIdentification">
>				<xs:sequence>
>					<xs:element type="xs:string" name="airlineCode"/>
>					<xs:element type="xs:string" name="arrivalCity"/>
>					<xs:element type="xs:string" name="departureCity"/>
>					<xs:element type="xs:dateTime" name="departureDate"/>
>					<xs:element type="xs:string" name="fareBasisCode"/>
>					<xs:element type="xs:string" name="fareBasisCodeSource"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="AirAvailabilityResponse">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:OriginDestination" name="originDestination" maxOccurs="unbounded"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="OriginDestination">
>				<xs:sequence>
>					<xs:element type="xs:dateTime" name="departureDate"/>
>					<xs:element minOccurs="0" type="stn_12:Flight" name="flightInformation" maxOccurs="unbounded"/>
>					<xs:element minOccurs="0" type="stn_12:Flight" name="flight" maxOccurs="unbounded"/>
>					<xs:element type="xs:int" name="numOfStops"/>
>					<xs:element type="xs:string" name="source"/>
>					<xs:element type="xs:string" name="destination"/>
>					<xs:element type="xs:string" name="origin"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="AirAvailabilityRequest">
>				<xs:sequence>
>					<xs:element minOccurs="0" type="stn_12:OriginDestination" name="originDestination" maxOccurs="unbounded"/>
>					<xs:element type="xs:string" name="cabinClass"/>
>					<xs:element type="xs:string" name="carrierPreferences"/>
>					<xs:element type="xs:int" name="numAdults"/>
>					<xs:element type="xs:int" name="numChildren"/>
>					<xs:element type="xs:int" name="numInfants"/>
>					<xs:element type="xs:int" name="numSeniors"/>
>					<xs:element type="xs:int" name="tripType"/>
>				</xs:sequence>
>			</xs:complexType>
>			<xs:complexType name="CityInfo">
>				<xs:sequence>
>					<xs:element type="xs:string" name="fromCity"/>
>					<xs:element type="xs:string" name="toCity"/>
>					<xs:element type="xs:string" name="text"/>
>				</xs:sequence>
>			</xs:complexType-->
>		</xs:schema>
>		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"  xmlns:stn_22="http://air.airtrade.project.bsil.com/xsd" targetNamespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types" elementFormDefault="qualified" attributeFormDefault="unqualified">
>			<xs:import namespace="http://air.airtrade.project.bsil.com/xsd"/>
>			<xs:element name="airAvailability">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="stn_22:AirAvailabilityRequest" name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airAvailabilityResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="stn_22:AirAvailabilityResponse" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="flightInformation">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string" name="param0"/>
>						<xs:element type="xs:string" name="param1"/>
>						<xs:element type="xs:string" name="param2"/>
>						<xs:element type="xs:string" name="param3"/>
>						<xs:element type="xs:string" name="param4"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="flightInformationResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="stn_22:FlightInfo" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airFareRules">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="stn_22:FareIdentification" name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="airFareRulesResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="stn_22:FareRules" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="sayHello">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string" name="param0"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>			<xs:element name="sayHelloResponse">
>				<xs:complexType>
>					<xs:sequence>
>						<xs:element type="xs:string" name="return"/>
>					</xs:sequence>
>				</xs:complexType>
>			</xs:element>
>		</xs:schema>
>	</wsdl:types>
>	<wsdl:message name="airAvailabilityMessage">
>		<wsdl:part element="ns2:airAvailability" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airAvailabilityResponseMessage">
>		<wsdl:part element="ns2:airAvailabilityResponse" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="flightInformationMessage">
>		<wsdl:part element="ns2:flightInformation" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="flightInformationResponseMessage">
>		<wsdl:part element="ns2:flightInformationResponse" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airFareRulesMessage">
>		<wsdl:part element="ns2:airFareRules" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="airFareRulesResponseMessage">
>		<wsdl:part element="ns2:airFareRulesResponse" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="sayHelloMessage">
>		<wsdl:part element="ns2:sayHello" name="part1"/>
>	</wsdl:message>
>	<wsdl:message name="sayHelloResponseMessage">
>		<wsdl:part element="ns2:sayHelloResponse" name="part1"/>
>	</wsdl:message>
>	<wsdl:portType name="ShoppingEnginePortType">
>		<wsdl:operation name="airAvailability">
>			<wsdl:input message="ns:airAvailabilityMessage"/>
>			<wsdl:output message="ns:airAvailabilityResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<wsdl:input message="ns:flightInformationMessage"/>
>			<wsdl:output message="ns:flightInformationResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<wsdl:input message="ns:airFareRulesMessage"/>
>			<wsdl:output message="ns:airFareRulesResponseMessage"/>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<wsdl:input message="ns:sayHelloMessage"/>
>			<wsdl:output message="ns:sayHelloResponseMessage"/>
>		</wsdl:operation>
>	</wsdl:portType>
>	<wsdl:binding type="ns:ShoppingEnginePortType" name="ShoppingEngineSOAP11Binding">
>		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>		<wsdl:operation name="airAvailability">
>			<soap:operation style="document" soapAction="urn:airAvailability"/>
>			<wsdl:input>
>				<soap:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<soap:operation style="document" soapAction="urn:flightInformation"/>
>			<wsdl:input>
>				<soap:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<soap:operation style="document" soapAction="urn:airFareRules"/>
>			<wsdl:input>
>				<soap:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<soap:operation style="document" soapAction="urn:sayHello"/>
>			<wsdl:input>
>				<soap:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>	</wsdl:binding>
>	<wsdl:binding type="ns:ShoppingEnginePortType" name="ShoppingEngineSOAP12Binding">
>		<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>		<wsdl:operation name="airAvailability">
>			<soap12:operation style="document" soapAction="urn:airAvailability"/>
>			<wsdl:input>
>				<soap12:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="flightInformation">
>			<soap12:operation style="document" soapAction="urn:flightInformation"/>
>			<wsdl:input>
>				<soap12:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="airFareRules">
>			<soap12:operation style="document" soapAction="urn:airFareRules"/>
>			<wsdl:input>
>				<soap12:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>		<wsdl:operation name="sayHello">
>			<soap12:operation style="document" soapAction="urn:sayHello"/>
>			<wsdl:input>
>				<soap12:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap12:body namespace="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com" use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>	</wsdl:binding>
>	<wsdl:service name="ShoppingEngine">
>		<wsdl:port binding="ns:ShoppingEngineSOAP11Binding" name="ShoppingEngineSOAP11port">
>			<soap:address location="http://localhost:8080/axis2/services/ShoppingEngine"/>
>		</wsdl:port>
>		<wsdl:port binding="ns:ShoppingEngineSOAP12Binding" name="ShoppingEngineSOAP12port">
>			<soap12:address location="http://localhost:8080/axis2/services/ShoppingEngine"/>
>		</wsdl:port>
>	</wsdl:service>
></wsdl:definitions>
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-dev-help@ws.apache.org
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org