After some researchs, I think my code doesn't accept the WSDL 2. I explain : the WSDL working are from the version 1 of WSDL and the others that don't wrok are from the version 2.

If I understand, this problem is from the UDK projet or no?

Thanks

Le 27-janv.-10 à 11:04, Stephan Bergmann a écrit :

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: dev-unsubscr...@udk.openoffice.org
For additional commands, e-mail: dev-h...@udk.openoffice.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@udk.openoffice.org
For additional commands, e-mail: dev-h...@udk.openoffice.org

Reply via email to