New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace similarly named complex types used throughout multiple WSDL operations #69

Closed
devinus opened this Issue Jul 22, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@devinus

devinus commented Jul 22, 2011

Right now, if two operations in package namespace pkg have complex types with the same name, e.g. operation Foo has complex type Apple and Orange and operation Bar has complex type Apple and Orange, the types will both be within the package namespace pkg as pkg.Apple, pkg.Orange, pkg.Apple2, pkg.Orange2.

Each operation should be namespaced, such that Apple and Orange in Foo and Bar become e.g. pkg.Foo.Apple, pkg.Foo.Orange, pkg.Bar.Apple, pkg.Bar.Orange.

This becomes increasingly important the more operations with types using the same names you have, as pkg.Apple1 can quickly becomes pkg.Apple1 to pkg.Apple142.

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Jul 24, 2011

Owner

I started working on this on the current code base, but it looked like a lot of work since the hierarchical info is mostly thrown out. I've been working on a rewrite that may make this kind of things possible.
As an alternative, I have implemented an option called --prepend-family, which prepends the root level type name like pkg.FooApple, pkg.FooOrange etc.

You should be able to test this using the snapshot version:

$ cs eed3si9n/scalaxb/0.6.2-SNAPSHOT
Owner

eed3si9n commented Jul 24, 2011

I started working on this on the current code base, but it looked like a lot of work since the hierarchical info is mostly thrown out. I've been working on a rewrite that may make this kind of things possible.
As an alternative, I have implemented an option called --prepend-family, which prepends the root level type name like pkg.FooApple, pkg.FooOrange etc.

You should be able to test this using the snapshot version:

$ cs eed3si9n/scalaxb/0.6.2-SNAPSHOT

@eed3si9n eed3si9n closed this Jul 24, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment