You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Dan Becker (JIRA)" <de...@tuscany.apache.org> on 2009/01/26 16:03:59 UTC
[jira] Commented: (TUSCANY-2574) Validating WSDL against the
Service Interface
[ https://issues.apache.org/jira/browse/TUSCANY-2574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667258#action_12667258 ]
Dan Becker commented on TUSCANY-2574:
-------------------------------------
Validation of the input WSDL is sensitive to the type of input factories you use when reading your contribution. For instance, the itest-validation test cases (e.g. WsdlBindingDoesNotMatchTestCase) uses a CustomCompositeBuilder that performs validation on a WSDL input. If you look at CustomCompositeBuilder.init, you see how a validatingInputFactory is used to validate the WSDL. I believe if you do not use one of these, the input is not validated.
Can you show the code you are using to input and validate your contribution?
> Validating WSDL against the Service Interface
> ---------------------------------------------
>
> Key: TUSCANY-2574
> URL: https://issues.apache.org/jira/browse/TUSCANY-2574
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: Windows XP SP2, IBM JDK 1.5
> Reporter: Ramkumar Ramalingam
> Fix For: Java-SCA-Next
>
>
> 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? I believe we should be able to validate the same as we have logic in place to generate WSDL from the service interface.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.