-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Fall back to complexType name when the element is a link to a complexType #546
Conversation
Let me try this locally. |
@veewee This works! However, I can still see Also, type-wise |
It's a tricky question: Since the schema specifies both Our meta-data system currently doesn't support an alias type that references to the complex type. Even if such system exists, We'dd still need to generate classes for those elements to make them accessible by name. They would then have to extend the initial type which would maybe introduce new issues. I think current implementation is probably the easiest way forward. |
Agreed. |
@veewee found another case with a very simple service:
I wonder if this is because they are using |
@rauanmayemir It doesn't have to do with the namespace, cause that's a valid namespace. The reason why you get this error is because the ->addRule(
new Rules\IsResultRule(
$engine->getMetadata(),
new Rules\MultiRule([
new Rules\AssembleRule(new Assembler\ResultAssembler()),
])
)
) Maybe easier if you report new bugs in new issues, cause otherwise I might loose track :) (BTW : A soap service that delivers a list of XSD's ... Wow ... That's a first :) ) |
@veewee Then this might have the same issues as the previous case. I have these assemblers: new Rules\IsRequestRule(
$metadata,
new Rules\AssembleRule(new Assembler\RequestAssembler()),
),
new Rules\IsResultRule(
$metadata,
new Rules\AssembleRule(new Assembler\ResultAssembler()),
)
|
You're right, I'll create a separate issue.
Yes, they create a base service, but then leave a hole for themselves with |
I provided a fix for that specific case here: |
Given following types:
And following operation:
A request to
getEsfVersion
will result into the complexTypeVersonResponse
.Resulting in:
This is how ext-soap works internally as well, making the generated code compatible with both the vanilla encoder package and ext-soap.
/cc @rauanmayemir This should solve the issue you have with the VersionService.