You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Håkon Sagehaug <hs...@gmail.com> on 2008/08/11 14:09:29 UTC

Re: xml stylesheet in wsdl

hi

I've followed the action on the cxf-dev list, but since the last email about
reopening a JIRA Ive not been able to track new activity, does anyone know
how it is going if it's been added to apache-cxf?

cheers, Håkon

2008/7/23 Freeman Fang <fr...@gmail.com>

> I just post thread on cxf-dev list, to get more ideas
>
> Regards
> Freeman
>
>
> Freeman Fang wrote:
>
>> Hi Gert,
>>
>> It's hard to do it in servicemix IMHO.
>> Actually cxf bc consumer publish a service using jetty on some port if we
>> use http transport underlying and  we reuse the mechanism in cxf to publish
>> wsdl (the standard way like serviceaddress + ?wsdl). So if we do need this
>> feature (wsdl include stylesheet), we need address it in cxf.
>> But I'm not sure this is part of jaxws specs requirements so we may need
>> get more feedback from cxf mailinglist there.
>> Regards
>> Freeman
>>
>>
>> Gert Vanthienen wrote:
>>
>>> Freeman,
>>>
>>> Couldn't we add this feature to the cxf endpoints themselves?  If we can
>>> configure it there, we could re-add the processing instruction for the
>>> stylesheet when the HTTP request for the WSDL comes in.
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>> Freeman Fang wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm not sure we can do it based on wsdl4j api so far, you may need post
>>>> a thread on cxf mailing list to get more ideas since to add this feature we
>>>> actually need do it  in cxf.
>>>>
>>>> Regards
>>>> Freeman
>>>>
>>>> Håkon Sagehaug wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> Do you know if this feature is going to be supported? In our project we
>>>>> use
>>>>> it and its a nice way of showing the wsdl
>>>>>
>>>>> cheers, Håkon
>>>>>
>>>>> 2008/7/22 Freeman Fang <fr...@gmail.com>:
>>>>>
>>>>>
>>>>>
>>>>>> Håkon Sagehaug wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> 2008/6/23 Gert Vanthienen <ge...@skynet.be>:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Håkon,
>>>>>>>>
>>>>>>>>
>>>>>>>> First thing to check is whether or not you can access the stylesheet
>>>>>>>> itself
>>>>>>>> in the browser.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> I can access it in a browser, using  ff 3
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> ServiceMix might not be serving this type of file from the
>>>>>>>> servicemix-http
>>>>>>>> component.
>>>>>>>>
>>>>>>>> Secondly, if you don't see the processing instruction in the
>>>>>>>> published
>>>>>>>> WSDL, it is probably filtered out when ServiceMix generates the WSDL
>>>>>>>> for
>>>>>>>> the
>>>>>>>> endpoint.  Feel free to raise a JIRA to add the possibility to keep
>>>>>>>> processsing instructions from the original WSDL file -- it would be
>>>>>>>> nice
>>>>>>>> if
>>>>>>>> you could provide us with a unit test or failing SU/SA to show the
>>>>>>>> problem,
>>>>>>>> which makes it a lot easier to test/add this.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> When I go to the wsdl published by servicemix it does not contain the
>>>>>>> reference to the stylesheet, seems to be lost somewhere on the way.
>>>>>>> I'm using only the spring config file like this
>>>>>>>
>>>>>>>  <cxfbc:consumer wsdl="classpath:service.wsdl"
>>>>>>>                     endpoint="Jaspar_service"
>>>>>>>                     service="js:Jaspar_service"
>>>>>>>                     targetEndpoint="JasparServiceProxy"
>>>>>>>                     targetService="js:Jaspar_service"
>>>>>>>                     targetInterface="js:Jaspar_service"
>>>>>>>                     busCfg="cxf-config.xml"
>>>>>>>                     >
>>>>>>>   </cxfbc:consumer>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> I don't think cxf can support style sheet published in the wsdl so
>>>>>> far. The
>>>>>> wsdl process  in cxf is based on wsdl4j, and all we kept for the wsdl
>>>>>> model
>>>>>> is all that in the definition tag.
>>>>>>
>>>>>>  And the service.wsdl is just copied from the source and no generated
>>>>>>
>>>>>>
>>>>>>> cheers, Håkon
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Gert
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Håkon Sagehaug wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> hi
>>>>>>>>>
>>>>>>>>> In one of my wsdl's I've got a stylesheet line like this
>>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>>> <?xml-stylesheet type="text/xsl" href="
>>>>>>>>> http://api.bioinfo.no/stylesheets/WSDLDocumentation.xslt"?>
>>>>>>>>> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>>>>>>>
>>>>>>>>> But when I go to the published address in smx I only see the usual
>>>>>>>>> wsdl
>>>>>>>>> representation in my browser.
>>>>>>>>>
>>>>>>>>> Does anyone have a solution for this, also tried to have the
>>>>>>>>> stylesheet
>>>>>>>>> in
>>>>>>>>> the src/main/resource folder, also when I look at src of the wsdl
>>>>>>>>> there
>>>>>>>>> is
>>>>>>>>> no line that is spesifying the xml stylesheet
>>>>>>>>>
>>>>>>>>> cheers, Håkon
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>


-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)