when generating the code wsdl2java it renames the schema and wsdl import locations. it copies all the xsd files and wsdl files to the resources folder.
so at the resources folder the schema location would look like this. <xsd:include schemaLocation="xsd0.xsd" /> but one you depoly the service it should look like this. <xsd:include schemaLocation="myService?xsd=xsd0.xsd" /> the above mentioned method will do this change. So the solution for your problem is not to change the generated schema locations. Amila. On 10/25/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: > > Hi Amila, > > Will you be able to have a look at this issue ? > > > Thanks > Deepal > > Vincent Brabant wrote: > > Hello the list. > > We are using Axis2 1.3 and the wsdl2java under JDK 1.4 > > Near everything is working like a charm except the following. > > > > We put in the services.xml the parameter useOriginalwsdl to true. > > It means that NORMALLY, the original wsdl should be returned like it, > without > > any modification. > > > > But it's not the case. The "original wsdl" is modified. > > It's modified by the fact the changeImportAndIncludeLocations of the > > AxisService class is called. > > > > the question is why that method is called ? What's the goal of such a > method ? > > > > Now, in place of having something like that > > <xsd:include schemaLocation="http://myrepository/mySchema.xsd" /> > > I have now > > <xsd:include schemaLocation="myService?xsd= > http://myrepository/mySchema.xsd" /> > > > > Any reason why ? > > > > Because, in our case, a client that want to call my wsdl can't use the > returned > > wsdl. Because schemaLocation means nothing for the client. > > > > P.S. such modification has been done in SVN the 3rd july 2007 (SVN > Commit > > 552837) by amilas. > > > > Vincent Brabant > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > Thanks, > Deepal > ................................................................ > "The highest tower is built one brick at a time" > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Amila Suriarachchi, WSO2 Inc.
