|
Software
»
Java Software
»
Netbeans.org
»
NetBeans - EntPack
Re: [nbusers] wsdl extensibility elements validation
View:
Threaded
Chronologically
All Messages
New views
1 Messages —
Rating Filter:
0
1
2
3
4
5
Alert me
Re: [nbusers] wsdl extensibility elements validation
by Shivanand Kini
:: Rate this Message:
Reply to Author
|
View Threaded
|
Show Only this Message
Hi Thesis
Sorry for the delayed response.
The schema import inside the wsdl is not for extensibility element
definitions. It is used for defining message parts.
You need to plugin the extensibility element into the wsdl editor, so
that validation can work.
See
http://wiki.netbeans.org/WSDLEditor.SchemaValidation
For other info to plug into the wsdl editor,
http://wiki.netbeans.org/WSDLEditor
Thanks,
Shivanand
Thesis UZ Gent wrote:
> Hi!
>
> I've made my own wsdl extensibility element with an xmlSchema.
> If I try to validatie my wsdl in Netbeans it does not complain if I
> malform my element.
> If I do the same with a regular xml it does! Is there a bug that it
> can't validate multiple xmlschema's in a wsdl?
>
> My wsdl:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="TestWSDL"
> targetNamespace="
http://j2ee.netbeans.org/wsdl/TestWSDL
"
> xmlns="
http://schemas.xmlsoap.org/wsdl/
"
> xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/
"
> xmlns:xsd="
http://www.w3.org/2001/XMLSchema
"
> xmlns:tns="
http://j2ee.netbeans.org/wsdl/TestWSDL
"
> xmlns:plnk="
http://docs.oasis-open.org/wsbpel/2.0/plnktype
"
> xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/
"
> xmlns:qos="
http://xml.netbeans.org/schema/QOSSchema
">
> <documentation>Cost=150</documentation>
> <types>
> <xsd:schema
> targetNamespace="
http://j2ee.netbeans.org/wsdl/TestWSDL
"
> xmlns:qos="
http://xml.netbeans.org/schema/QOSSchema
">
> <xsd:import
> namespace="
http://xml.netbeans.org/schema/QOSSchema
"
> schemaLocation="QOSSchema.xsd"/>
> </xsd:schema>
> </types>
> <message name="TestWSDLOperationRequest">
> <part name="testin" type="xsd:string"/>
> </message>
> <message name="TestWSDLOperationResponse">
> <part name="testout" type="xsd:string"/>
> </message>
> <portType name="TestWSDLPortType">
> <operation name="TestWSDLOperation">
> <input name="input1" message="tns:TestWSDLOperationRequest"/>
> <output name="output1" message="tns:TestWSDLOperationResponse"/>
> </operation>
> </portType>
> <binding name="TestWSDLBinding" type="tns:TestWSDLPortType">
> <soap:binding style="rpc"
> transport="
http://schemas.xmlsoap.org/soap/http
"/>
> <operation name="TestWSDLOperation">
> <soap:operation/>
> <input name="input1">
> <soap:body use="literal"
> namespace="
http://j2ee.netbeans.org/wsdl/TestWSDL
"/>
> </input>
> <output name="output1">
> <soap:body use="literal"
> namespace="
http://j2ee.netbeans.org/wsdl/TestWSDL
"/>
> </output>
> </operation>
> </binding>
> <service name="TestWSDLService">
> <qos:QOS performance="10" availability="0.55" cost="10" />
> <port name="TestWSDLPort" binding="tns:TestWSDLBinding">
> <soap:address
> location="
http://localhost:$
{HttpDefaultPort}/TestWSDLService/TestWSDLPort"/>
> </port>
> </service>
> <plnk:partnerLinkType name="TestWSDL">
> <!-- A partner link type is automatically generated when a new
> port type is added. Partner link types are used by BPEL processes.
> In a BPEL process, a partner link represents the interaction between
> the BPEL process and a partner service. Each partner link is
> associated with a partner link type.
> A partner link type characterizes the conversational relationship
> between two services. The partner link type can have one or two
> roles.-->
> <plnk:role name="TestWSDLPortTypeRole" portType="tns:TestWSDLPortType"/>
> </plnk:partnerLinkType>
> </definitions>
>
>
> My XmlSchema:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xsd:schema xmlns:xsd="
http://www.w3.org/2001/XMLSchema
"
> targetNamespace="
http://xml.netbeans.org/schema/QOSSchema
"
> xmlns:tns="
http://xml.netbeans.org/schema/QOSSchema
"
> elementFormDefault="qualified">
> <xsd:complexType name="QOSType">
> <xsd:attribute name="performance" type="xsd:int" use="required"/>
> <xsd:attribute name="availability" type="xsd:float" use="required"/>
> <xsd:attribute name="cost" type="xsd:int" use="required"/>
> </xsd:complexType>
> <xsd:element name="QOS" type="tns:QOSType"></xsd:element>
> </xsd:schema>
>
>
> The xml file who does validate:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!--
> Document : Testxml.xml
> Created on : 15 maart 2008, 10:37
> Author : Frederik
> Description:
> Purpose of the document follows.
> -->
>
> <ns1:QOS xmlns:xsi='
http://www.w3.org/2001/XMLSchema-instance'
> xmlns:ns1='
http://xml.netbeans.org/schema/QOSSchema'
> xsi:schemaLocation='
http://xml.netbeans.org/schema/QOSSchema
QOSSchema.xsd'
> performance="5"
> availability="0.55"
> cost="110"
> />
>
>
> Thanks in advance!
http://j2ee.netbeans.org/wsdl/TestWSDL
"
> xmlns="
http://schemas.xmlsoap.org/wsdl/
"
> xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/
"
> xmlns:xsd="
http://www.w3.org/2001/XMLSchema
"
> xmlns:tns="
http://j2ee.netbeans.org/wsdl/TestWSDL
"
> xmlns:plnk="
http://docs.oasis-open.org/wsbpel/2.0/plnktype
"
> xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/
"
> xmlns:qos="
http://xml.netbeans.org/schema/QOSSchema
">
> <documentation>Cost=150</documentation>
> <types>
> <xsd:schema
> targetNamespace="
http://j2ee.netbeans.org/wsdl/TestWSDL
"
> xmlns:qos="
http://xml.netbeans.org/schema/QOSSchema
">
> <xsd:import
> namespace="
http://xml.netbeans.org/schema/QOSSchema
"
> schemaLocation="QOSSchema.xsd"/>
> </xsd:schema>
> </types>
> <message name="TestWSDLOperationRequest">
> <part name="testin" type="xsd:string"/>
> </message>
> <message name="TestWSDLOperationResponse">
> <part name="testout" type="xsd:string"/>
> </message>
> <portType name="TestWSDLPortType">
> <operation name="TestWSDLOperation">
> <input name="input1" message="tns:TestWSDLOperationRequest"/>
> <output name="output1" message="tns:TestWSDLOperationResponse"/>
> </operation>
> </portType>
> <binding name="TestWSDLBinding" type="tns:TestWSDLPortType">
> <soap:binding style="rpc"
> transport="
http://schemas.xmlsoap.org/soap/http
"/>
> <operation name="TestWSDLOperation">
> <soap:operation/>
> <input name="input1">
> <soap:body use="literal"
> namespace="
http://j2ee.netbeans.org/wsdl/TestWSDL
"/>
> </input>
> <output name="output1">
> <soap:body use="literal"
> namespace="
http://j2ee.netbeans.org/wsdl/TestWSDL
"/>
> </output>
> </operation>
> </binding>
> <service name="TestWSDLService">
> <qos:QOS performance="10" availability="0.55" cost="10" />
> <port name="TestWSDLPort" binding="tns:TestWSDLBinding">
> <soap:address
> location="
http://localhost:$
{HttpDefaultPort}/TestWSDLService/TestWSDLPort"/>
> </port>
> </service>
> <plnk:partnerLinkType name="TestWSDL">
> <!-- A partner link type is automatically generated when a new
> port type is added. Partner link types are used by BPEL processes.
> In a BPEL process, a partner link represents the interaction between
> the BPEL process and a partner service. Each partner link is
> associated with a partner link type.
> A partner link type characterizes the conversational relationship
> between two services. The partner link type can have one or two
> roles.-->
> <plnk:role name="TestWSDLPortTypeRole" portType="tns:TestWSDLPortType"/>
> </plnk:partnerLinkType>
> </definitions>
>
>
> My XmlSchema:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xsd:schema xmlns:xsd="
http://www.w3.org/2001/XMLSchema
"
> targetNamespace="
http://xml.netbeans.org/schema/QOSSchema
"
> xmlns:tns="
http://xml.netbeans.org/schema/QOSSchema
"
> elementFormDefault="qualified">
> <xsd:complexType name="QOSType">
> <xsd:attribute name="performance" type="xsd:int" use="required"/>
> <xsd:attribute name="availability" type="xsd:float" use="required"/>
> <xsd:attribute name="cost" type="xsd:int" use="required"/>
> </xsd:complexType>
> <xsd:element name="QOS" type="tns:QOSType"></xsd:element>
> </xsd:schema>
>
>
> The xml file who does validate:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!--
> Document : Testxml.xml
> Created on : 15 maart 2008, 10:37
> Author : Frederik
> Description:
> Purpose of the document follows.
> -->
>
> <ns1:QOS xmlns:xsi='
http://www.w3.org/2001/XMLSchema-instance'
> xmlns:ns1='
http://xml.netbeans.org/schema/QOSSchema'
> xsi:schemaLocation='
http://xml.netbeans.org/schema/QOSSchema
QOSSchema.xsd'
> performance="5"
> availability="0.55"
> cost="110"
> />
>
>
> Thanks in advance!
http://www.w3.org/2001/XMLSchema
"
> targetNamespace="
http://xml.netbeans.org/schema/QOSSchema
"
> xmlns:tns="
http://xml.netbeans.org/schema/QOSSchema
"
> elementFormDefault="qualified">
> <xsd:complexType name="QOSType">
> <xsd:attribute name="performance" type="xsd:int" use="required"/>
> <xsd:attribute name="availability" type="xsd:float" use="required"/>
> <xsd:attribute name="cost" type="xsd:int" use="required"/>
> </xsd:complexType>
> <xsd:element name="QOS" type="tns:QOSType"></xsd:element>
> </xsd:schema>
>
>
> The xml file who does validate:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!--
> Document : Testxml.xml
> Created on : 15 maart 2008, 10:37
> Author : Frederik
> Description:
> Purpose of the document follows.
> -->
>
> <ns1:QOS xmlns:xsi='
http://www.w3.org/2001/XMLSchema-instance'
> xmlns:ns1='
http://xml.netbeans.org/schema/QOSSchema'
> xsi:schemaLocation='
http://xml.netbeans.org/schema/QOSSchema
QOSSchema.xsd'
> performance="5"
> availability="0.55"
> cost="110"
> />
>
>
> Thanks in advance!
>
Free Forum
Powered by Nabble
Forum Help