Jeremy,
Yes, we need a assertion. The element attribute MUST resolve to an ElementDeclaration component. We actually do have a catch-all QName resolution assertion QName-0002 [1] for WSDL components but we need one for type system components.
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/wsdl20/wsdl20-z.html#QName-0002
Arthur Ryman,
IBM Software Group, Rational Division
blog: http://ryman.eclipsedevelopersjournal.com/
phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: [EMAIL PROTECTED]
| Jeremy Hughes <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 12/08/2005 11:18 AM
|
|
Lawrence, I'm adding to the W3CTestSuiteTest.java to add a testcase
for this. I've realised:
1) the parser correctly ignores the element="xs:string" because
xs:string isn't an element declaration.
2) the validator doesn't complain ... I think it should. However,
there isn't yet an assertion in the non-normative WSDL 2 spec for this
[4]
What do you think, should there be an assertion for this kinda thing?
Thanks,
Jeremy
[4] http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/wsdl20/wsdl20-z.html#InterfaceMessageReference_Mapping
There isn't a The validator isn't I've realised the only way for me to
check the validatputting together a test case for this JIRA. I want to
make sure
On 12/8/05, Jeremy Hughes (JIRA) <[EMAIL PROTECTED]> wrote:
> element attr of interface->input can contain a type and no validation error is reported
> ---------------------------------------------------------------------------------------
>
> Key: WODEN-1
> URL: http://issues.apache.org/jira/browse/WODEN-1
> Project: Woden
> Type: Bug
> Environment: J2SE 1.4.2
> Reporter: Jeremy Hughes
> Priority: Minor
>
>
> This WSDL [1] has the following:
>
> <wsdl:interface name="EchoInterface">
> <wsdl:operation name="Echo" pattern="http://www.w3.org/2005/08/wsdl/in-out">
> <wsdl:input element="xs:string"/>
> <wsdl:output element="xs:string"/>
> </wsdl:operation>
> </wsdl:interface>
>
> According to the spec [2], the element attribute value must resolve to an element declaration from the element declarations of the Description. xs:string isn't such an element as it is a simple type defined in XML schema [3]
>
> [1] http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-1B/Service.wsdl
> [2] http://www.w3.org/TR/2005/WD-wsdl20-20050803/#InterfaceMessageReference_Mapping
> [3] http://www.w3.org/2001/XMLSchema.xsd
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
