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 94836 - Test failed for transformation which have the same schema for input and output
Summary: Test failed for transformation which have the same schema for input and output
Status: VERIFIED WORKSFORME
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Alexey Yarmolenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-07 12:46 UTC by Andrei Chistiakov
Modified: 2007-02-14 13:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2007-02-07 12:46:29 UTC
Reproduced in build 070206.

To reproduce the bug:
- add the following xsd files into XSLT Module

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="http://xml.netbeans.org/schema/newXMLSchema1"
            xmlns:tn1="http://xml.netbeans.org/schema/newXMLSchema1"
            elementFormDefault="qualified">
    <xsd:element name="s" type="xsd:string"></xsd:element>
</xsd:schema>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="http://xml.netbeans.org/schema/newXMLSchema2"
            xmlns:tn2="http://xml.netbeans.org/schema/newXMLSchema2"
            elementFormDefault="qualified">
    <xsd:element name="d" type="xsd:string"></xsd:element>
</xsd:schema>

- create a new WSDL file; 
- import both schemas in there; 
- select input element 's' annd output element 'd';
- use SOAP Binding Type/Document Literal subtype;
- create XSLT Service as follows:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ns="http://xml.netbeans.org/schema/newXMLSchema2">
    <xsl:template match="/">
        <xsl:element name="ns:d">
            <xsl:value-of select="'abc'"/>
        </xsl:element>
    </xsl:template>
</xsl:stylesheet>
- add the XSLT Module into a new CA;
-  build, deploy, and test the CA Project.

It doesn't work. The output is as follows:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/
http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
  <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>Failed to normalize input. Could not normalize message did not
find any node matching the element name, e in the soap message Reported Cause:
did not find any node matching the element name, e in the soap message</faultstring>
  </SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Comment 1 Alexey Yarmolenko 2007-02-12 13:56:26 UTC
checked the provided scenario. works OK for me.
Comment 2 Andrei Chistiakov 2007-02-14 13:50:54 UTC
Verified in build 070213_27.