On 5/31/10 19:57, charbel el_kaed wrote:

Hi,

I would like to parse a WSDL file located on a another bundle.
I am having the following URL Device WSDLDocumentLocation: 
bundle://41.0:1/org/soa4d/osgi/dpws/lighting/generated/Lighting.wsdl

but while parsing it using wsdl4j I am having the following error:
javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Unable to 
resolve imported document at 'bundle:\41.0:1\org\soa4d\osgi\dpws\lighti
ng\generated\Lighting.wsdl'.: java.io.IOException: No bundle associated with 
resource: bundle://:-1\41.0:1\org\soa4d\osgi\dpws\lighting\generated
\Lighting.wsdl

Anybody had similar problem ?
I am not sure why I am having a -1 in the path ?

I'm not sure what to tell you. I would guess that wsdl4j is trying to construct a URL for the imported document and doing so incorrectly. I'm not sure what it is doing.

-> richard

Do you know another way to retrieve a file from another bundle and how to parse 
it ?
I am using the following code
         WSDLFactory factory = WSDLFactory.newInstance();
         WSDLReader reader = factory.newWSDLReader();

         Device_WSDL_Document_Location = ((WebService) 
dpwsDevice).getWSDLDocumentLocation();

         System.out.println("Device WSDLDocumentLocation: 
"+Device_WSDL_Document_Location);
         WSDL_file = reader.readWSDL(Device_WSDL_Document_Location.toString());




Thanks and regards,
Charbel.





                                        
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to