|
Hi Pablo,
Actually, WSIF parses the imported schemas too. I dont know what way you are parsing the WSDL.
May be you can try using this code
WSDLFactory factory = WSDLFactory
.newInstance(WSIFConstants.WSIF_WSDLFACTORY);
WSDLReader wread = factory.newWSDLReader();
Definition def = wread.readWSDL(wsdlLoc);
Initially I had faced few issues related to parsing schemas.The above code solved it.
regards
GP
-----Original Message-----
From: Pablo Gomes Ludermir [ pablo.gomes mediasurface.com">mailto:pablo.gomes mediasurface.com]
Sent: Thu 9/20/2007 2:26 PM
To: wsif-user ws.apache.org
Subject: No Schema Elements Found: when using WSIF with JAX-WS services
Hi all,
I have created a ws using JAX-WS (using Netbeans). Now, I am trying to use WSIF to access my service, but I always get the following error:
- WSIF0006W: Multiple WSIFProvider found supporting the same namespace URI 'http://schemas.xmlsoap.org/wsdl/soap/'. Found ('org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis, org.apache.wsif.providers.soap.apachesoap.WSIFDynamicProvider_ApacheSOAP')
- WSIF0007I: Using WSIFProvider 'org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis' for namespaceURI 'http://schemas.xmlsoap.org/wsdl/soap/'
Trying to invoke the operation...
org.apache.wsif.WSIFException: no schema elements found
at org.apache.wsif.util.WSIFUtils.unWrapPart(Unknown Source)
at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.unwrapSOAPParts(Unknown Source)
at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.prepare(Unknown Source)
at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(Unknown Source)
at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(Unknown Source)
The service is pretty straightforward. In netbeans you can create it within a couple of minutes. The generated WSDL file does not contain the schema definition in it. The schema definition is imported from an external file. I don't know if it is a problem and I couldn't find a way to make netbeans generate a single file.
Has anyone have this kind of error?
Kind Regards,
Pablo
---------------------------------------------------------------------
To unsubscribe, e-mail: wsif-user-unsubscribe ws.apache.org
For additional commands, e-mail: wsif-user-help ws.apache.org
|