On 7/25/07, jaypee_p <[EMAIL PROTECTED]> wrote:


I have defined message from one namespace "http://example.com/service"; and
part element from other namespace(tns) "http://example.com/types"; which
has
complexType.
<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions targetNamespace="http://example.com/service";
   xmlns:wns="http://example.com/service";
   xmlns:tns="http://example.com/types";
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>

        <wsdl:types>
                <schema xmlns="http://www.w3.org/2001/XMLSchema";
                   targetNamespace="http://example.com/types";
                   elementFormDefault="qualified">
                        <complexType name="FaultMessage">
                                <sequence>
                                        <element name="message"
type="string" minOccurs="0"/>
                                </sequence>
                        </complexType>
                        <element name="faultMessage"
type="tns:FaultMessage"/>
                        <complexType name="request">
                                <sequence>
                                        <element name="id" type="string"
minOccurs="0"/>
                                </sequence>
                        </complexType>
                        <element name="idRequest" type="tns:request" />
                        <complexType name="response">
                                <sequence>
                                        <element name="message"
type="string" minOccurs="0"/>
                                </sequence>
                        </complexType>
                        <element name="idResponse" type="tns:response" />
                </schema>
        </wsdl:types>

        <wsdl:message name="IdRequest">
                <wsdl:part name="parameters" element="tns:idRequest"/>
        </wsdl:message>

        <wsdl:message name="IdResponse">
                <wsdl:part name="parameters" element="tns:idResponse"/>
        </wsdl:message>

        <wsdl:message name="FaultMessage">
                <wsdl:part name="FaultMessage"
element="tns:faultMessage"/>
        </wsdl:message>


        <wsdl:portType name="IdManagerServiceInterface">
                <wsdl:operation name="getValidID">
                        <wsdl:input message="wns:IdRequest"/>
                        <wsdl:output message="wns:IdResponse"/>
                        <wsdl:fault name="FaultMessage"
message="wns:FaultMessage"/>
                </wsdl:operation>
        </wsdl:portType>

        <wsdl:binding name="IdManagerServiceSoapBinding"
type="wns:IDManagerServiceInterface">
                <soap:binding transport="
http://schemas.xmlsoap.org/soap/http";
style="document"/>
                <wsdl:operation name="getValidID">
                        <soap:operation soapAction=""/>
                        <wsdl:input name="IdRequest">
                                <soap:body use="literal"/>
                        </wsdl:input>
                        <wsdl:output name="IdResponse">
                                <soap:body use="literal"/>
                        </wsdl:output>
                        <wsdl:fault name="FaultMessage" >
                                <soap:fault name="FaultMessage"/>
                        </wsdl:fault>
                </wsdl:operation>
        </wsdl:binding>

        <wsdl:service name="IdManagerServiceService">
                <wsdl:port name="IdManagerService"
binding="wns:IdManagerServiceSoapBinding">
                <soap:address
location="http://10.10.14.6:8080/axis/services/IdManagerService"/>
                </wsdl:port>
        </wsdl:service>

</wsdl:definitions>

I want to validate the message with part element. How to validate wsdl
message with corresponding part element?

My consumer saying fault part element is not able to validated with the
fault message since it is different namespace as per above WSDL.

My consumer will be fine if I change the single namespace for all the
message and complex type elements.

I want to make sure this fault part element is validated against the
message. or

while Axis sends the fault response, how do I make sure part element that
I
am sending detail tag is comprised with wsdl message element?


I am not sure about the problem you trying to ask. any way if you generate
code with the
wsdl2java using the adb (default) it validate the response and request .

--
View this message in context:
http://www.nabble.com/WSDL-message-Validation-with-part-element-tf4140600.html#a11777786
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Amila Suriarachchi,
WSO2 Inc.

Reply via email to