This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81747 - Wsdl validator issues, not being compliant with WSDL 1.1 schema
Summary: Wsdl validator issues, not being compliant with WSDL 1.1 schema
Status: VERIFIED DUPLICATE of bug 81528
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 22:52 UTC by kiran_bhumana
Modified: 2006-08-30 22:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
bpel project from approximately 07/27 dated builds. (21.17 KB, application/octet-stream)
2006-08-02 22:58 UTC, kiran_bhumana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kiran_bhumana 2006-08-02 22:52:45 UTC
We seem to be generating and accepting something not defined in the wsdl 1.1
spec. The extension elements have to be the last. Currently the following is
accepted. why? We should be spec compliant as much as possible. Is there any
value in adding these at the top??

<definitions targetNamespace="http://manufacturing.org/wsdl/inventory/bp2"
             name="InventoryService"
             xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
             xmlns:tns="http://manufacturing.org/wsdl/inventory/bp2"
             xmlns:inv="http://manufacturing.org/xsd/inventory"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns="http://schemas.xmlsoap.org/wsdl/"
             xmlns:plink="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
             xmlns:po="http://manufacturing.org/xsd/purchase"
             xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <bpws:property name="orderID"
                   type="xsd:int"/>
    <bpws:propertyAlias propertyName="tns:orderID"
                        messageType="tns:POMessage"
                        part="purchaseOrder">
        <bpws:query>/purchaseOrder/orderId</bpws:query>                        
    </bpws:propertyAlias>
    <bpws:propertyAlias propertyName="tns:orderID"
                        messageType="tns:InventoryMessage"
                        part="inventoryPart">
        <bpws:query>/inventory/orderId</bpws:query>                            
    </bpws:propertyAlias>    
    <plink:partnerLinkType name="inventoryRequestingLT">
        <plink:role portType="tns:inventoryPortType"
                    name="inventoryService"></plink:role>
        <plink:role portType="tns:inventoryServiceCallbackPortType"
                    name="inventoryServiceRequester"></plink:role>
    </plink:partnerLinkType>
    <types>
        <xsd:schema targetNamespace="http://manufacturing.org/wsdl/inventory/bp2">
            <xsd:import schemaLocation="inventory.xsd"
namespace="http://manufacturing.org/xsd/inventory"/>
            <xsd:import schemaLocation="purchaseOrder.xsd"
namespace="http://manufacturing.org/xsd/purchase"/>
        </xsd:schema>
    </types>
Comment 1 kiran_bhumana 2006-08-02 22:57:03 UTC
I also notice that the binding and service are out of order. Validation doesn't
seem to catch them. Refer the attached Inventory.wsdl.

Comment 2 kiran_bhumana 2006-08-02 22:58:58 UTC
Created attachment 32463 [details]
bpel project from approximately 07/27 dated builds.
Comment 3 Shivanand Kini 2006-08-03 03:18:43 UTC
http://www.netbeans.org/issues/show_bug.cgi?id=81528

> The extension elements have to be the last

This cannot be fixed for beta. But fixing 81528 will validate this case.
Creating the wsdl using design view of wsdl editor, doesnt create such wsdl.
So I think this can be waived for the beta.

>I also notice that the binding and service are out of order.

As per WS-I profile 1.1, the binding,service need not be in sequence, but is a
choice as per the schema, specified by WS-I profile.

As per WS-I profile 1.1., quote:
"The normative schemas for WSDL appearing in Appendix 4 of the WSDL 1.1
specification have inconsistencies with the normative text of the specification.
The Profile references new schema documents that have incorporated fixes for
known errors.

R2028 A DESCRIPTION using the WSDL namespace (prefixed "wsdl" in this Profile)
MUST be valid according to the XML Schema found at
"http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd". "
Comment 4 Shivanand Kini 2006-08-03 18:40:25 UTC

*** This issue has been marked as a duplicate of 81528 ***
Comment 5 jlautz 2006-08-30 22:12:44 UTC
Issue 81528 has been verified on Windows XP on NB Build 200608290000.