I have several problem about wsdl generate and generated wsdl itself.

1.
I can get the the wsdl file view through by accessing
http://localhost:8192/service/?wsdl
that I build it use servicemix-jsr181-annotated-service-unit. (This is
runtime generate)

Can I use this service unit to generate wsdl file not at runtime ? just like
use some command like mvn:generate-wsdl to generate wsdl file ?

2.
And I find, if pojo class(service impl class) have several different package
import, (ex. import class from another package), the wsdl file will be not
generate correctly. Even it works fine.(Use SoapUI)
But when using eclipse to validate the wsdl file(get if from view source of
page) , it says error about can't referenceable the namespace. So it need to
add import the namespace by hand ? is this normal ? (If I did't add the
import to the wsdl file, I can't use bpel & it says error too).

3.
I add the import section to the wsdl file , and i want to use this wsdl file
with the jsr181-su. So I make 
this change in xbean.xml :
Change 


>     <jsr181:endpoint pojoClass="com.samples.ServiceImpl"/>
> 
TO : 


>     <jsr181:endpoint pojoClass="com.samples.ServiceImpl"
> wsdlResource="classpath:service.wsdl" 
>       style="document" />
> 
// service.wsdl is the file I add the import section to. (Eclipse validate
passed)

But I build it with mvn install command as always, error occured about
Failed to generate jbi.xml.
So I can't make the jsr181-su with the new setting.

Am I doing a wrong way ? Is there have any way (easy way) to generate wsdl
file perfect ?

Thanks. And sorry for my poor english.
hgkrt

-- 
View this message in context: 
http://www.nabble.com/How-to-generate-a-wsdl-file-in-static%28not-at-runtime%29---tf3956133s12049.html#a11225566
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to