importing WSDL Error

mzaki's picture
Hi all, when i try to import WSDL into WSO2 Registry i get this error Failed to import resource SitesList.xml to the parent collection /. Failed to import resource with name SitesList.xml to the parent collection /. Failed to import resource from the URL http://10.2.40.231:8080/WSDLs/SitesList.xml to path /SitesList.xml. Failed to import resource /SitesList.xml. All database operations will be rolled back. Could not read the wsdl at location http://10.2.40.231:8080/WSDLs/SitesList.xml. Caused by: WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'http://10.2.40.231:8080/WSDLs/SitesList.xml'.: java.io.FileNotFoundException: This file was not found: http://10.2.40.231:8080/WSDLs/SitesList.xml any advice ?
krishantha's picture

Hi Mzaki, Can you rename the

Hi Mzaki, Can you rename the file to SitesList.wsdl and check again. The error indicate that file not found exception, make sure you can load the wsdl in a browser. Perhaps you may haven't give the required required permission to the file. so change the permission to read/write and check again. Thanks, Krishantha.
senakafdo's picture

Re: importing WSDL Error

Hi, Can you also check whether the location http://10.2.40.231:8080/WSDLs/SitesList.xml is visible to the server in which G-Reg is hosted? Thanks, Senaka.
mzaki's picture

rename the file

Hi Krishantha, I did this and got the same error, is it related to read/write access of the file system ? regards, Mohamed
mzaki's picture

url accessibility

Dear Senaka, Yes the url is accessible from the server. regards, Mohamed
krishantha's picture

Hi Mohamed, If it is

Hi Mohamed, If it is possielbe, attach your wsdl file here. Then we can dig the wsdl and see whether anything wrong with our end. Let us know your environment details as well eg: java -version, OS, browser, uname -a etc. Thanks, Krishantha.
mzaki's picture

Hi Krishantha, I attached

Hi Krishantha, I attached the wsdl file (which is CRM 3 web service) also this time i got this error [2009-11-18 14:11:42,502] INFO - Unable to sendViaPost to url[https://10.2.2.35:9443/services/AddServicesService] [2009-11-18 14:11:42,502] INFO - Unable to sendViaPost to url[https://10.2.2.35:9443/services/AddServicesService] [2009-11-18 14:11:45,745] ERROR - Failed to get service details. Read timed out although i can access the wsdl url from the machine hosting WSO2 registry.
krishantha's picture

Hi, Increase the time out

Hi, Increase the time out values in CARBON_HOME/con/axis2_client.xml and check again. You can changes the timeout values by following the below steps. 1. Edit the CARBON_HOME/con/axis2_client.xml and change SO_TIMEOUT value in http/https transports.  (note that time is millisecounds) <parameter name="SO_TIMEOUT">60000</parameter> 2. then restart the server. Thanks, Krishantha.  
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)