Great, Thank you for the info :) ..

Cheers,
Anjana.

On Sun, Mar 28, 2010 at 10:29 AM, Senaka Fernando <[email protected]> wrote:
>
>
> On Sun, Mar 28, 2010 at 9:35 AM, Anjana Fernando <[email protected]> wrote:
>>
>> Hi,
>>
>> In data-services, we have a small issue, in finding out if we can
>> create a service with no targetNamespace for the result. That is, if
>> we can, not provide a targetNamespace in the types section in the
>> WSDL.
>>
>> First, I simply tried it by not giving a targetNamespace to the
>> XMLSchema and, the types section were generated properly, but in the
>> "message" sections in the WSDL, the part element which reference a
>> schema type, it always outputs with the format "prefix:localName", so
>> since the targetNamespace is not available it prints as
>> "null:localName", thus it's invalid. I patched Axis2 and tried it
>> again, now it just prints as "localName".
>>
>> So now if I deploy the data-service in question and code generate a
>> client using its WSDL (which has no targetNamespace in its types), the
>> client works fine, and you could get the service response properly.
>> But with the try-it tool it does not work properly, as in, it doesn't
>> return the result as it should. And by giving the WSDL to the
>> WSDLValidator, it states that the WSDL is invalid, giving a reason
>> related to having no targetNamespace. I've attached the WSDL in
>> question here, does anyone have an idea whether, this is actually a
>> valid WSDL, and if not giving a targetNamespace in the types is
>> possible? ..
>
> According to [1], a valid WSDL can exist without a target namespace, but
> must not have any fragment identifiers. However, according to [2], which is
> the WS-I Basic Profile 1.1, a WSDL 1.1 is treated in the same manner as an
> XML Schema. It also states that an XML Schema must always have a target
> namespace. Therefore, a WSDL without a target namespace is not WS-I valid
> (not interoperable).
>
> [1] http://www.w3.org/TR/wsdl11elementidentifiers/#frag-ids
> [2] http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html
>
> Thanks,
> Senaka.
>>
>> Cheers,
>> Anjana.
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>
>
>
> --
> Senaka Fernando
> Software Engineer
> WSO2 Inc.
> E-mail: senaka AT wso2.com;  Mobile: +94 77 322 1818
>
> http://www.wso2.com/ - "Lean . Enterprise . Middleware"
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>

_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to