Re: Reference to external schema in wsdl broken

2007-08-18 Thread Anne Thomas Manes
Take the generated WSDL, edit the schema location to specify the
absolute URL, and redeploy the service with your modified WSDL.

Anne

On 8/17/07, Jochen Rieß <[EMAIL PROTECTED]> wrote:
> Hello everybody.
>
> I'm facing a little problem with the codegen tool in Axis2 1.3
> My wsdl file imports a schema, code snippet follows:
>
>  xmlns="http://www.w3.org/2001/XMLSchema";
> targetNamespace="http://gueter.evision.de/GueterGUI/";>
>  schemaLocation="datatypes.xsd">
> 
>   [..]
>
> Using the codegen tool provides me with a modified wsdl which looks like..
>
>  targetNamespace="http://gueter.evision.de/GueterGUI/";
> xmlns="http://www.w3.org/2001/XMLSchema";>
> 
> 
>   [..]
>
> The schema has been properly copied into xsd0.xsd. Everything right
> until I deploy the service..
> When getting the wsdl from the running axis2 instance it looks like:
>
>  attributeFormDefault="unqualified"
> elementFormDefault="unqualified"
> targetNamespace="http://gueter.evision.de/GueterGUI/";>
>
> 
> [...]
>
> Using this wsdl one cannot generate code, because the schemaLocation is
> relative to the service location. (In the codegen process the schema
> cannot be found)
> Replacing the last line with an absolute url pointing to the schema
> fixes that problem.
>
> My Question is: What can I do to have the wsdl file sent by the running
> axis2 instance be able to compile out of the box?
>
> Thanks in advance!
> Jochen Rieß
>
>
>
> -
> 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]



Reference to external schema in wsdl broken

2007-08-17 Thread Jochen Rieß

Hello everybody.

I'm facing a little problem with the codegen tool in Axis2 1.3
My wsdl file imports a schema, code snippet follows:

   http://www.w3.org/2001/XMLSchema";
   targetNamespace="http://gueter.evision.de/GueterGUI/";>
  schemaLocation="datatypes.xsd">
   

 [..]

Using the codegen tool provides me with a modified wsdl which looks like..

   http://gueter.evision.de/GueterGUI/";
   xmlns="http://www.w3.org/2001/XMLSchema";>
   
   
 [..]
 
The schema has been properly copied into xsd0.xsd. Everything right 
until I deploy the service..

When getting the wsdl from the running axis2 instance it looks like:

  targetNamespace="http://gueter.evision.de/GueterGUI/";>
 
   

[...]

Using this wsdl one cannot generate code, because the schemaLocation is 
relative to the service location. (In the codegen process the schema 
cannot be found)
Replacing the last line with an absolute url pointing to the schema 
fixes that problem.


My Question is: What can I do to have the wsdl file sent by the running 
axis2 instance be able to compile out of the box?


Thanks in advance!
Jochen Rieß



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