Hi All,
When I was working with helloworld-ws-service-secure sample, noticed that
the wsdl/helloworld.wsdl file does not get validated while the service is
exposed.

This sample exposes a binding.ws service with a wsdl

    <service name="HelloWorldService" requires="authentication"
promote="HelloWorldServiceComponent/HelloWorldService">
        <interface.wsdl interface="
http://helloworld#wsdl.interface(HelloWorld)" />
        <binding.ws uri="http://localhost:8085/HelloWorldService"/>
    </service>

I tried modifying the wsdl/helloworld.wsdl file, by replacing the original
xsd:string data type with a junk value as shown below.

<wsdl:types>
        <schema elementFormDefault="qualified" targetNamespace="
http://helloworld"; xmlns="http://www.w3.org/2001/XMLSchema";>
            <element name="getGreetings2">
                <complexType><sequence>
                        <element name="name" type="laksjdflaksdjfldsakfj"/>
                </sequence></complexType>
            </element>

            <element name="getGreetingsResponse2">
                <complexType><sequence>
                        <element name="getGreetingsReturn"
type="a;lskdjflsakdjf"/>
                </sequence></complexType>
            </element>
        </schema>
    </wsdl:types>

Here the validation for the data types does not seem to happen? Not sure if
this is intentional.

I believe we should be able to validate the same as we have logic in place
to generate WSDL from the service interface. Can I raise a JIRA to fix this?


-- 
Thanks & Regards,
Ramkumar Ramalingam

Reply via email to