On Thu, Mar 15, 2012 at 11:03 AM, Uinchi Developer <develo...@uinchi.com> wrote:
> Hi,
>
> I am new to this mailing list. I have encountered an issue while loading a
> WSDL 2.0 web services. Every time when i deploy, redeploy or restart tomcat,
> the service seems to take very long time (few minutes) to load up. Please
> refer to the log snippet below, it is actually stop and hang at the line
> "..Reading 2.0 WSDL with wsdl…". When i do a packet sniffing during that
> time, i noticed that it seems like doing some schema validation at the
> background by loading the different schemas specified in the WSDL. My
> question is, can i turn off this validation to make the loading faster or is
> there anything wrong with my WSDL (as attached) that causing the long
> loading time? Please advice.

I believe this issue has been resolved in trunk. Can you try with
1.7.0 snapshot version [1]

[1] - 
https://builds.apache.org/view/A-F/view/Axis2/job/axis2/ws/axis2/modules/distribution/target/

Thanks !

>
>
> p/s: The web services work perfectly after loading..
>
> Thanks & Best Regards,
> Niu
>
>
> Logs
> ====
> 2012-03-10 22:42:57,789 [pool-2-thread-1] DEBUG
> org.apache.axiom.om.util.StAXUtils  - XMLStreamReader is
> org.apache.axiom.util.stax.dialect.WoodstoxStreamReaderWrapper
> 2012-03-10 22:42:57,818 [pool-2-thread-1] DEBUG
> org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder  - Entry:
> populateAllServices
> 2012-03-10 22:42:58,206 [pool-2-thread-1] DEBUG
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder  - Reading 2.0 WSDL
> with wsdl uri = null
> [hang here for few minutes]
> 2012-03-10 22:47:13,881 [pool-2-thread-1] DEBUG
> org.apache.axis2.description.AxisService  - Get operation for
> {http://uinchi.com/travelapp}queryHotel
> 2012-03-10 22:47:13,881 [pool-2-thread-1] DEBUG
> org.apache.axis2.description.AxisService  - Target
> namespace: http://uinchi.com/travelapp
>
>
> WSDL
> =====
> <?xml version="1.0" encoding="utf-8"?>
>
> <description xmlns="http://www.w3.org/ns/wsdl";
>              targetNamespace="http://uinchi.com/travelapp";
>              xmlns:wsoap="http://www.w3.org/ns/wsdl/soap";
>              xmlns:whttp="http://www.w3.org/ns/wsdl/http";
>      xmlns:tns="http://uinchi.com/travelapp";
>              xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>   <documentation>Uinchi Enterprise Travel App Web Services</documentation>
>   <types>
>
>   <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://uinchi.com/travelapp";>
>       <xsd:complexType name="Hotel">
>        <xsd:sequence>
>          <xsd:element name="hotel_id" type="xsd:string"/>
>          <xsd:element name="name" type="xsd:string"/>
>          <xsd:element name="description" type="xsd:string"/>
>          <xsd:element name="address" type="xsd:string"/>
>        </xsd:sequence>
>       </xsd:complexType>
>       <xsd:complexType name="Hotels">
>            <xsd:sequence>
>
>   <xsd:element name="hotel" type="tns:Hotel" minOccurs="0" maxOccurs="unbounded" />
>            </xsd:sequence>
>       </xsd:complexType>
>       <xsd:element name="QueryHotelRequest">
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element name="arrival" type="xsd:string"/>
>             <xsd:element name="rooms" type="xsd:decimal"/>
>             <xsd:element name="nights" type="xsd:decimal"/>
>             <xsd:element name="adults" type="xsd:decimal"/>
>             <xsd:element name="children" type="xsd:decimal"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>       <xsd:element name="QueryHotelResponse">
>         <xsd:complexType>
>           <xsd:sequence>
>              <xsd:element name="hotels" type="tns:Hotels"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>       <xsd:element name="ServiceError">
>        <xsd:complexType>
>        <xsd:sequence>
>        <xsd:element name="code" type="xsd:string"/>
>        <xsd:element name="message" type="xsd:string"/>
>        </xsd:sequence>
>        </xsd:complexType>
>       </xsd:element>
>     </xsd:schema>
>   </types>
>   <interface name="travelappInterface">
>     <fault name="ServiceException" element="tns:ServiceError"/>
>     <operation name="queryHotel"
>                     pattern="http://www.w3.org/ns/wsdl/in-out";
>                     style="http://www.w3.org/ns/wsdl/style/iri";>
>
>   <input messageLabel="In" element="tns:QueryHotelRequest"/>
>
>   <output messageLabel="Out" element="tns:QueryHotelResponse"/>
>
>   <outfault  messageLabel="Out" ref="tns:ServiceException"/>
>     </operation>
>   </interface>
>   <binding name="travelappSoapBinding"
>                 interface="travelappInterface"
>                 type="http://www.w3.org/ns/wsdl/soap";
>
>   wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/";
>
>   wsoap:mepDefault="http://www.w3.org/2003/05/soap/mep/request-response";>
>                 <operation ref="tns:queryHotel"/>
>   </binding>
>
>   <binding name="travelappHTTPBinding"
>            interface="travelappInterface"
>            type="http://www.w3.org/ns/wsdl/http";>
>            <operation ref="tns:queryHotel"
>                       whttp:method="POST"
>
>   whttp:inputSerialization="application/x-www-form-urlencoded"/>
>   </binding>
>
>
>   <service name="travelapp" interface="tns:travelappInterface">
>     <endpoint name="travelappServiceSoapEndpoint"
>                    binding="tns:travelappSoapBinding"
>                    address="http://uinchi.dyndns.org/soap/"/>
>     <endpoint name="travelappServiceHTTPEndpoint"
>               binding="tns:travelappHTTPBinding"
>               address="http://uinchi.dyndns.org/rest/"/>
>   </service>
> </description>
>
>
>
> Deployment Environment
> ====================
> axis2 1.6.1 (adb databinding)
> tomcat 7.0.26
> jdk1.6.0_31



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to