yes it is hardwired:
package org.apache.axis2.description.java2wsdl; public class Java2WsdlUtils
{ public static final String SCHEMA_NAMESPACE_EXTN = "/xsd"; String
DEFAULT_TARGET_NAMESPACE_PREFIX = "axis2"; public static StringBuffer
schemaNamespaceFromClassName(String packageName, ClassLoader loader,
NamespaceGenerator nsGen) throws Exception {
StringBuffer stringBuffer = namespaceFromClassName(packageName,
loader,
nsGen);
if (stringBuffer.length() == 0) {
stringBuffer.append(DEFAULT_TARGET_NAMESPACE);
}
stringBuffer.append(SCHEMA_NAMESPACE_EXTN);
return stringBuffer;
}
....}did you want set SCHEMA_NAMESPACE_EXTN as either a dynamic parameter or to
be read from services.xml for example<parameter name="XSD">/xsd</parameter>?
Martin Gainty
______________________________________________
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: Tue, 26 Jun 2012 13:24:46 +0100
> From: [email protected]
> To: [email protected]
> Subject: Axis2 generating the wrong XML namespace
>
> Hi there,
>
> Axis2 seems to strip off the "www." and tag on "xsd" to the XML
> namespaces of elements. E.g., "http://www.example.com/" becomes
> "http://example.com/xsd".
>
> The /xsd variant doesn't appear at all in any of my source code nor any
> associated assets and is completely generated by Axis2.
>
> I've specified my targetNamespace in services.xml but although this is
> being set to the target namespace of the WSDL, it's overridden by
> another targetNamespace on the <xs:schema> embedded in the generated
> WSDL, like:
>
> <wsdl:definitions ... targetNamespace="http://www.example.com/">
> ....
> <wsdl:types>
> <xs:schema ... targetNamespace="http://example.com/xsd">
> </xs:schema>
> </wsdl:types>
> ....
> </wsdl:definitions>
>
> Does anybody have any ideas?
>
> Thanks in advance,
> Oli
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>