« Return to Thread: custom bindings - selecting schema with specified namespace using SCD

custom bindings - selecting schema with specified namespace using SCD

by metro-3 :: Rate this Message:

Reply to Author | View in Thread

Hello,

I'm struggling to customize package names during class generation phase. In order to accomplish this task I've created custom binding file which tries to override default package names based on schema's targetNamespace. Classes are generated upon WSDL file which references several XSD files, so to avoid specifying every XSD file in my custom binding I found that SCD expressions may help. This is what I've created so far:

<bindings xmlns="http://java.sun.com/xml/ns/jaxb" version="2.1" >
        <bindings scd="schema-URI#xmlns(p=http://c.b.a/d/e/2009)xscd(/)/">
                <schemaBindings>
                        <package name="a.b.c.d.e"/>
                </schemaBindings>
        </bindings>
</bindings>

The problem is that it simply doesn't work - the SCD expression fails to parse.
I'm wondering if someone could help me to write correct SCD, that would select schemas within specified namespace?

thanks in advance,
Peter
[Message sent by forum member 'flowenol' (flowenol)]

http://forums.java.net/jive/thread.jspa?messageID=354364

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: custom bindings - selecting schema with specified namespace using SCD