This namespace issue comes into the play when i am trying to generate
java types from the schema. In some cases there are namespaces that
are defined in the description element which are types related. So,
with wsdl4j what we did was manually extract those namespaces from the
definition and feed it to the schema compiler. This makes sure the
schema compiler will not get confused by the namespaces that are
defined in the definition.
So in the component model what happen to all the namespaces declared
in the description. Are you injecting them to each and every schema in
the types component.
Take a look at the wsdl attached, its one of the samples in axis2. It
has used a namespace inside the schema that is defined in the
definition. Is this no longer possible in wsdl 2.0. If it is possible
get namespace is a useful method for the description component because
the types returned by the types component will be incomplete
otherwise.
THanks
Chathura
The Description interface interface in Woden reflects only the properties
defined for the Description Component in the WSDL 2.0 spec and these do not
include target namespace or declared namespaces. This is because the WSDL
2.0 Component model is an abstract WSDL model that has no notion of
namespaces, because it does not expose document composition and the use of
namespaces to avoid name clashes.
Our initial Woden goal was to develop a Component model API that faithfully
reflects the WSDL 2.0 Component model per Section 2 of the WSDL 2.0 Part 1
spec to validate the spec - that is, confirm that it can be implemented and
that it is useful. I would prefer to keep to that goal at least until the
W3C interop event in July. However any feedback about the usefulness or
deficiencies of the Component model would help the WSDL 2.0 working group
evaluate the Component model. Could you provide some more detail about
what you are trying to achieve and why you need namespace information in
the Component model so we can understand your requirement a bit better.
Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Axis2SampleDocLitService"
targetNamespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://userguide.axis2.apache.org/Axis2SampleDocLit"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://userguide.axis2.apache.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<types>
<schema targetNamespace="http://userguide.axis2.apache.org/xsd"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
elementFormDefault="qualified">
<complexType name="ArrayOfstring_literal">
<sequence>
<element maxOccurs="unbounded" minOccurs="1" name="string" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="SOAPStruct">
<all>
<element name="varFloat" type="xsd:float"/>
<element name="varInt" type="xsd:int"/>
<element name="varString" type="xsd:string"/>
</all>
</complexType>
<element name="echoStringParam" type="xsd:string"/>
<element name="echoIntParam" type="xsd:int"/>
<element name="echoStringReturn" type="xsd:string"/>
<element name="echoStringArrayParam" type="xsd1:ArrayOfstring_literal"/>
<element name="echoStringArrayReturn" type="xsd1:ArrayOfstring_literal"/>
<element name="echoStructParam" type="xsd1:SOAPStruct"/>
<element name="echoStructReturn" type="xsd1:SOAPStruct"/>
</schema>
</types>
<message name="echoString">
<part element="xsd1:echoStringParam" name="a"/>
</message>
<message name="echoStringResponse">
<part element="xsd1:echoStringReturn" name="result"/>
</message>
<message name="echoStringArray">
<part element="xsd1:echoStringArrayParam" name="a"/>
</message>
<message name="echoStringArrayResponse">
<part element="xsd1:echoStringArrayReturn" name="result"/>
</message>
<message name="echoStruct">
<part element="xsd1:echoStructParam" name="a"/>
</message>
<message name="echoStructResponse">
<part element="xsd1:echoStructReturn" name="result"/>
</message>
<!--<message name="echoVoid"/>
<message name="echoVoidResponse"/>-->
<portType name="Axis2SampleDocLitPortType">
<operation name="echoString">
<input message="tns:echoString" name="echoString"/>
<output message="tns:echoStringResponse" name="echoStringResponse"/>
</operation>
<operation name="echoStringArray">
<input message="tns:echoStringArray" name="echoStringArray"/>
<output message="tns:echoStringArrayResponse" name="echoStringArrayResponse"/>
</operation>
<operation name="echoStruct">
<input message="tns:echoStruct" name="echoStruct"/>
<output message="tns:echoStructResponse" name="echoStructResponse"/>
</operation>
<!--<operation name="echoVoid">
<input message="tns:echoVoid" name="echoVoid"/>
<output message="tns:echoVoidResponse" name="echoVoidResponse"/>
</operation>-->
</portType>
<binding name="Axis2SampleDocLitPortBinding"
type="tns:Axis2SampleDocLitPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="echoString">
<soap:operation soapAction="echoString" style="rpc"/>
<input name="echoString">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</input>
<output name="echoStringResponse">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</output>
</operation>
<operation name="echoStringArray">
<soap:operation soapAction="echoStringArray" style="rpc"/>
<input name="echoStringArray">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</input>
<output name="echoStringArrayResponse">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</output>
</operation>
<operation name="echoStruct">
<soap:operation soapAction="echoStruct" style="rpc"/>
<input name="echoStruct">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</input>
<output name="echoStructResponse">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</output>
</operation>
<!--<operation name="echoVoid">
<soap:operation soapAction="echoVoid" style="rpc"/>
<input name="echoVoid">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</input>
<output name="echoVoidResponse">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</output>
</operation>-->
</binding>
<service name="Axis2SampleDocLitService">
<port binding="tns:Axis2SampleDocLitPortBinding"
name="Axis2SampleDocLitPort">
<soap:address
location="http://userguide.axis2.apache.org/stkv3/wsdl/Axis2SampleDocLit.wsdl"/>
</port>
</service>
</definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]