On 01/27/10 10:20, Philippe Denis wrote:
I'm trying to use a web service with OOo Basic. However when I try to initialize this web service, I receive one error.

Basicly, I test with this code :
Sub Main
proxyFac = createUNOService("com.sun.star.webservices.proxy.ProxyFactory")

   'Getting the UNO service
proxyFac = createUNOService("com.sun.star.webservices.proxy.ProxyFactory")

   ' Initializing of the ProxyFactory by providing the WSDL:
proxyFac.initialize(Array("http://www.flash-db.com/services/ws/companyInfo.wsdl";))
End Sub

The line 'proxyFac.initialize(...)' returns an error. I'v taken a picture of this error : http://user.services.openoffice.org/fr/forum/download/file.php?id=12779&mode=view

However, with this WSDL (http://www.rightactionscript.com/states/webservice/StatesService.php?wsdl), the initialisation works.

To install the web service and the JWSDP, I followed this tutorial : http://udk.openoffice.org/java/examples/wsproxy/component_description.html#ToCDownload and I'm sure it works.

I dont't understand why It doesn't work in few case. Maybe, the error is provide by the WSDL File Itself.

Looks like the code at <http://udk.openoffice.org/source/browse/udk/soap/proxy/src/com/sun/star/comp/webservice/unoproxy/WSDLDocumentHandler.java?rev=1.12&view=markup> cannot cope with certain kind of input (definitionsMap is set at l. 124 for a startElement with qName=="definitions" and is used---and obviously still null in your case---at l. 244 for a startElement with sName==MESSAGE; maybe the sequence of startElements in your case is not as anticipated by the author of the code). That code lies unmaintained for a very long time now. I guess you are on your own debugging it...

-Stephan

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

Reply via email to