so what you're saying is 1.5.4 wont recognise local schemas?
did you try prefixing schemaLocation with file:/// so your import statement 
would look something like
assuming xsd13.xsd is located in C:/temp
<xsd:import schemaLocation="file:///c:/temp/xsd13.xsd" 
namespace="http://docs.oasis-open.org/wsrf/r-2"/>
?
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Date: Sun, 8 May 2011 12:57:18 +0100
Subject: Difference in schemaLocation for wsdl2java in 1.3 and 1.5.4
From: [email protected]
To: [email protected]

Hello,
Apologies if this is a newbie question:
When I run wsdl2java using the 1.5.4 build I get wsdl files and services.xml 
generated in the resources directory. All schema locations within the wsdl 
files are on the net:

for example:<xsd:import namespace="http://docs.oasis-open.org/wsrf/r-2"; 
schemaLocation="http://docs.oasis-open.org/wsrf/r-2.xsd"/>

When I run wsdl2java using 1.3 I get wsdl files, services.xml and the 
appropriate number of XML schema files in the resource directory. All schema 
locations within the wsdl files are local:

for example:<xsd:import namespace="http://docs.oasis-open.org/wsrf/r-2"; 
schemaLocation="xsd13.xsd"/> 

I can get around this by running wsdl2java twice and using the resources from 
the 1.3 run and the generated source from the 1.5.4 run but would like to be 
able to do this in one step.
The generated sources from the 1.3 run have an error or two in the code so I 
don't want to just use 1.3.

Does anybody know how to solve this problem?
thanks,
-- 
Barry.

                                          

Reply via email to