Re: WSDL XSD Schema Importing...

2008-01-10 Thread silver17

To answer your first question, yes it was a typo.

I can also validate the wsdl and xsd's fine in eclipse, and when i set up
the web service I can hit it and return a response using SOAPUI.




Mauro Molinari wrote:
 
 silver17 ha scritto:
 http://localhost:8080/app/services'.:  java.io.FileNotFoundException: 
 This
 file was not found: 
 http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd
 
   xsd:import
 namespace=http://www.opengis.net/cat/csw/2.0.2; 
 schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/
 
 http://www.nabble.com/file/p14722764/csw-Publication.xsd
 csw-Publication.xsd 
 
 Is the first a copy 'n' paste problem or does Axis2 really says it can't 
 find http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd? 
 Because your file name seems to start with csw-, not cs-...
 
 Anyway, I can make Axis2 1.3 work with schema imports, except when 
 trying to do some more complex things like sharing a schema between 
 multiple services (please see 
 https://issues.apache.org/jira/browse/AXIS2-3354).
 
 Does Eclipse give you any validation error on your WSDL and/or XSDs? 
 (try right-click = Validate)?
 
 -- 
 Mauro Molinari
 Software Developer
 [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14734904.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL XSD Schema Importing...

2008-01-10 Thread silver17

As an addition to this discussion, if instead of trying to reference the
http://localhost/app/services/RegistryPublish.wsdl i get the following
error:

http://www.nabble.com/file/p14736457/serviceError.jpg 

silver17 wrote:
 
 Hi Guys,
 
 I've searched a lot of these forum posts and haven't been able to find a
 resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
 Europa with the Apache Codegen wizard plugins.
 
 I created a WSDL that imports a couple of schemas and I'm having problems. 
 When I attempt to use the wizards to generate the client stubs using a URL
 like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
 following error:
 
 An error occured while completing process -
 java.lang.InterruptedException: WSDLException (at
 /wsdl:definitions/wsdl:types/xsd:schema):  faultCode=OTHER_ERROR: An error
 occurred while trying to resolve schema referenced at
 'RegistryPublish?xsd=csw-Publication.xsd, relative to
 http://localhost:8080/app/services'.:  java.io.FileNotFoundException: 
 This file was not found: 
 http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd
 
 And I don't know why it's doing that.  Here's a sample of that wsdl:
 
 wsdl:definitions name=RegistryPublish
 targetNamespace=http://services.registry.company.com/publish/;
   wsdl:documentation
   WSDL Description for the Registry Publishing Service.
  /wsdl:documentation
 
   wsdl:types
  xsd:schema
   xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; 
 schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/
 
   xsd:import namespace=http://www.opengis.net/ows/1.1;
 schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
/xsd:schema
 /wsdl:types
 ...
 
 My web app directory structure is:
 
 app-web-inf-services-RegistryPublish-META-INF
 ...
 csw-Publication.xsd
 owsExceptionReport.xsd
 RegistryPublish.wsdl
 services.xml
 
 I tried using a program called SOAPUI to run a test request to that same
 url as above and it returned a successful result.
 
 Any thoughts?  I've attached the files.
  http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
 RegistryPublish.wsdl 
  http://www.nabble.com/file/p14722764/services.xml services.xml 
  http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
 owsExceptionReport.xsd 
  http://www.nabble.com/file/p14722764/csw-Publication.xsd
 csw-Publication.xsd 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14736457.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL XSD Schema Importing...

2008-01-10 Thread silver17

Hi Amila,

Your solution was correct;  I replaced the Axis2 v1.3 libs with the nightly
build (snapshot) libs and everything works fine.  The Eclipse plugins don't
work, but if I use the WSDL2Java in the nightly build it works as I expected
it to.


Amila Suriarachchi wrote:
 
 can you please try with a nightly build? If you still getting the problem
 please send your wsdl.
 
 thanks,
 Amila.
 
 On Jan 10, 2008 3:33 AM, silver17 [EMAIL PROTECTED] wrote:
 

 Hi Guys,

 I've searched a lot of these forum posts and haven't been able to find a
 resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
 Europa with the Apache Codegen wizard plugins.

 I created a WSDL that imports a couple of schemas and I'm having
 problems.
 When I attempt to use the wizards to generate the client stubs using a
 URL
 like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
 following error:

 An error occured while completing process -
 java.lang.InterruptedException
 :
 WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
 faultCode=OTHER_ERROR: An error occurred while trying to resolve schema
 referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to
 http://localhost:8080/app/services'http://localhost:8080/app/services%27.:
  java.io.FileNotFoundException:  This
 file was not found:
 http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd

 And I don't know why it's doing that.  Here's a sample of that wsdl:

 wsdl:definitions name=RegistryPublish
 targetNamespace=http://services.registry.company.com/publish/;
wsdl:documentation
WSDL Description for the Registry Publishing Service.
 /wsdl:documentation

wsdl:types
   xsd:schema
  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2;
 schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/

  xsd:import namespace=http://www.opengis.net/ows/1.1;
 schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
   /xsd:schema
/wsdl:types
 ...

 My web app directory structure is:

 app-web-inf-services-RegistryPublish-META-INF
 ...
 csw-Publication.xsd
 owsExceptionReport.xsd
 RegistryPublish.wsdl
 services.xml

 I tried using a program called SOAPUI to run a test request to that same
 url
 as above and it returned a successful result.

 Any thoughts?  I've attached the files.
 http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
 RegistryPublish.wsdl
 http://www.nabble.com/file/p14722764/services.xml services.xml
 http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
 owsExceptionReport.xsd
 http://www.nabble.com/file/p14722764/csw-Publication.xsd
 csw-Publication.xsd



 --
 View this message in context:
 http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Amila Suriarachchi,
 WSO2 Inc.
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14744671.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL XSD Schema Importing...

2008-01-10 Thread Norman Barker
Hi,

are you trying to create an ebRIM CSW server, that is interesting -
sorry I missed your earlier emails - I have already run wsdl2java on
the ebrim wsdl files, I also tried doing this with Apache Tuscany -
works with Axis, not with Tuscany.

I don't think this is right forum for a discussion so perhaps we can
take this offline, but if your server solution is public domain then
that is interesting and I would like to know more

Just f.y.i. (again apologies since this is the wrong forum) omar is
spatial enabled -
http://ebxmlrr.sourceforge.net/wiki/index.php/Community/ogc.

Norman

On Jan 10, 2008 2:53 PM, silver17 [EMAIL PROTECTED] wrote:

 Hi Amila,

 Your solution was correct;  I replaced the Axis2 v1.3 libs with the nightly
 build (snapshot) libs and everything works fine.  The Eclipse plugins don't
 work, but if I use the WSDL2Java in the nightly build it works as I expected
 it to.


 Amila Suriarachchi wrote:
 
  can you please try with a nightly build? If you still getting the problem
  please send your wsdl.
 
  thanks,
  Amila.
 
  On Jan 10, 2008 3:33 AM, silver17 [EMAIL PROTECTED] wrote:
 
 
  Hi Guys,
 
  I've searched a lot of these forum posts and haven't been able to find a
  resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
  Europa with the Apache Codegen wizard plugins.
 
  I created a WSDL that imports a couple of schemas and I'm having
  problems.
  When I attempt to use the wizards to generate the client stubs using a
  URL
  like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
  following error:
 
  An error occured while completing process -
  java.lang.InterruptedException
  :
  WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
  faultCode=OTHER_ERROR: An error occurred while trying to resolve schema
  referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to
  http://localhost:8080/app/services'http://localhost:8080/app/services%27.:

   java.io.FileNotFoundException:  This
  file was not found:
  http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd
 
  And I don't know why it's doing that.  Here's a sample of that wsdl:
 
  wsdl:definitions name=RegistryPublish
  targetNamespace=http://services.registry.company.com/publish/;
 wsdl:documentation
 WSDL Description for the Registry Publishing Service.
  /wsdl:documentation
 
 wsdl:types
xsd:schema
   xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2;
  schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/
 
   xsd:import namespace=http://www.opengis.net/ows/1.1;
  schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
/xsd:schema
 /wsdl:types
  ...
 
  My web app directory structure is:
 
  app-web-inf-services-RegistryPublish-META-INF
  ...
  csw-Publication.xsd
  owsExceptionReport.xsd
  RegistryPublish.wsdl
  services.xml
 
  I tried using a program called SOAPUI to run a test request to that same
  url
  as above and it returned a successful result.
 
  Any thoughts?  I've attached the files.
  http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
  RegistryPublish.wsdl
  http://www.nabble.com/file/p14722764/services.xml services.xml
  http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
  owsExceptionReport.xsd
  http://www.nabble.com/file/p14722764/csw-Publication.xsd
  csw-Publication.xsd
 
 
 
  --
  View this message in context:
  http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Amila Suriarachchi,
  WSO2 Inc.
 
 

 --
 View this message in context: 
 http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14744671.html

 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WSDL XSD Schema Importing...

2008-01-09 Thread silver17

Hi Guys,

I've searched a lot of these forum posts and haven't been able to find a
resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
Europa with the Apache Codegen wizard plugins.

I created a WSDL that imports a couple of schemas and I'm having problems. 
When I attempt to use the wizards to generate the client stubs using a URL
like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
following error:

An error occured while completing process - java.lang.InterruptedException:
WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): 
faultCode=OTHER_ERROR: An error occurred while trying to resolve schema
referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to
http://localhost:8080/app/services'.:  java.io.FileNotFoundException:  This
file was not found: 
http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd

And I don't know why it's doing that.  Here's a sample of that wsdl:

wsdl:definitions name=RegistryPublish
targetNamespace=http://services.registry.company.com/publish/;
wsdl:documentation
WSDL Description for the Registry Publishing Service.
 /wsdl:documentation

wsdl:types
   xsd:schema
  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; 
schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/

  xsd:import namespace=http://www.opengis.net/ows/1.1;
schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
   /xsd:schema
/wsdl:types
...

My web app directory structure is:

app-web-inf-services-RegistryPublish-META-INF
...
csw-Publication.xsd
owsExceptionReport.xsd
RegistryPublish.wsdl
services.xml

I tried using a program called SOAPUI to run a test request to that same url
as above and it returned a successful result.

Any thoughts?  I've attached the files.
http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
RegistryPublish.wsdl 
http://www.nabble.com/file/p14722764/services.xml services.xml 
http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
owsExceptionReport.xsd 
http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd 



-- 
View this message in context: 
http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL XSD Schema Importing...

2008-01-09 Thread Amila Suriarachchi
can you please try with a nightly build? If you still getting the problem
please send your wsdl.

thanks,
Amila.

On Jan 10, 2008 3:33 AM, silver17 [EMAIL PROTECTED] wrote:


 Hi Guys,

 I've searched a lot of these forum posts and haven't been able to find a
 resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
 Europa with the Apache Codegen wizard plugins.

 I created a WSDL that imports a couple of schemas and I'm having problems.
 When I attempt to use the wizards to generate the client stubs using a URL
 like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
 following error:

 An error occured while completing process - java.lang.InterruptedException
 :
 WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
 faultCode=OTHER_ERROR: An error occurred while trying to resolve schema
 referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to
 http://localhost:8080/app/services'http://localhost:8080/app/services%27.:
  java.io.FileNotFoundException:  This
 file was not found:
 http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd

 And I don't know why it's doing that.  Here's a sample of that wsdl:

 wsdl:definitions name=RegistryPublish
 targetNamespace=http://services.registry.company.com/publish/;
wsdl:documentation
WSDL Description for the Registry Publishing Service.
 /wsdl:documentation

wsdl:types
   xsd:schema
  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2;
 schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/

  xsd:import namespace=http://www.opengis.net/ows/1.1;
 schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
   /xsd:schema
/wsdl:types
 ...

 My web app directory structure is:

 app-web-inf-services-RegistryPublish-META-INF
 ...
 csw-Publication.xsd
 owsExceptionReport.xsd
 RegistryPublish.wsdl
 services.xml

 I tried using a program called SOAPUI to run a test request to that same
 url
 as above and it returned a successful result.

 Any thoughts?  I've attached the files.
 http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
 RegistryPublish.wsdl
 http://www.nabble.com/file/p14722764/services.xml services.xml
 http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
 owsExceptionReport.xsd
 http://www.nabble.com/file/p14722764/csw-Publication.xsd
 csw-Publication.xsd



 --
 View this message in context:
 http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: WSDL XSD Schema Importing...

2008-01-09 Thread silver17

At the moment all I can find for the nightly builds is the Axis2/C version. 
Also I included the RegistryPublish.wsdl file in the previous message.  

What I think it's doing is replacing when I want to use
http://url/path/service?wsdl instead of service.wsdl.  But when I try to
link directly to http://url/path/service.wsdl it gives me a similar error as
well.


xsd:import namespace=http://www.opengis.net/ows/1.1;
schemaLocation=owsExceptionReport.xsd/

with:

xsd:import namespace=http://www.opengis.net/ows/1.1;
 schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/


Amila Suriarachchi wrote:
 
 can you please try with a nightly build? If you still getting the problem
 please send your wsdl.
 
 thanks,
 Amila.
 
 On Jan 10, 2008 3:33 AM, silver17 [EMAIL PROTECTED] wrote:
 

 Hi Guys,

 I've searched a lot of these forum posts and haven't been able to find a
 resolution to my problem.  Currently I am using Axis 2.1.3 and Eclipse
 Europa with the Apache Codegen wizard plugins.

 I created a WSDL that imports a couple of schemas and I'm having
 problems.
 When I attempt to use the wizards to generate the client stubs using a
 URL
 like:  http://localhost:8080/app/services/RegistryPublish?wsdl I get the
 following error:

 An error occured while completing process -
 java.lang.InterruptedException
 :
 WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
 faultCode=OTHER_ERROR: An error occurred while trying to resolve schema
 referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to
 http://localhost:8080/app/services'http://localhost:8080/app/services%27.:
  java.io.FileNotFoundException:  This
 file was not found:
 http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd

 And I don't know why it's doing that.  Here's a sample of that wsdl:

 wsdl:definitions name=RegistryPublish
 targetNamespace=http://services.registry.company.com/publish/;
wsdl:documentation
WSDL Description for the Registry Publishing Service.
 /wsdl:documentation

wsdl:types
   xsd:schema
  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2;
 schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/

  xsd:import namespace=http://www.opengis.net/ows/1.1;
 schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/
   /xsd:schema
/wsdl:types
 ...

 My web app directory structure is:

 app-web-inf-services-RegistryPublish-META-INF
 ...
 csw-Publication.xsd
 owsExceptionReport.xsd
 RegistryPublish.wsdl
 services.xml

 I tried using a program called SOAPUI to run a test request to that same
 url
 as above and it returned a successful result.

 Any thoughts?  I've attached the files.
 http://www.nabble.com/file/p14722764/RegistryPublish.wsdl
 RegistryPublish.wsdl
 http://www.nabble.com/file/p14722764/services.xml services.xml
 http://www.nabble.com/file/p14722764/owsExceptionReport.xsd
 owsExceptionReport.xsd
 http://www.nabble.com/file/p14722764/csw-Publication.xsd
 csw-Publication.xsd



 --
 View this message in context:
 http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Amila Suriarachchi,
 WSO2 Inc.
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14727914.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL XSD Schema Importing...

2008-01-09 Thread Mauro Molinari

silver17 ha scritto:

http://localhost:8080/app/services'.:  java.io.FileNotFoundException:  This
file was not found: 
http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd


  xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; 
schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/


http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd 


Is the first a copy 'n' paste problem or does Axis2 really says it can't 
find http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd? 
Because your file name seems to start with csw-, not cs-...


Anyway, I can make Axis2 1.3 work with schema imports, except when 
trying to do some more complex things like sharing a schema between 
multiple services (please see 
https://issues.apache.org/jira/browse/AXIS2-3354).


Does Eclipse give you any validation error on your WSDL and/or XSDs? 
(try right-click = Validate)?


--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]