List Info

Thread: No Schema Elements Found: when using WSIF with JAX-WS services




No Schema Elements Found: when using WSIF with JAX-WS services
user name
2007-09-20 03:56:16
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.WSIFDynamicProvi
der_ApacheAxis,
org.apache.wsif.providers.soap.apachesoap.WSIFDynamicProvide
r_ApacheSOAP')  
- WSIF0007I: Using WSIFProvider
'org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvid
er_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_Apac
heAxis.unwrapSOAPParts(Unknown Source)
        at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_Apac
heAxis.prepare(Unknown Source)
        at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_Apac
heAxis.invokeRequestResponseOperation(Unknown Source)
        at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_Apac
heAxis.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-unsubscribews.apache.org
For additional commands, e-mail: wsif-user-helpws.apache.org


RE: No Schema Elements Found: when using WSIF with JAX-WS services
user name
2007-09-20 14:56:13

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.gomesmediasurface.com">mailto:pablo.gomesmediasurface.com]
Sent: Thu 9/20/2007 2:26 PM
To: wsif-userws.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-unsubscribews.apache.org
For additional commands, e-mail: wsif-user-helpws.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )