RE: No Schema Elements Found: when using WSIF with JAX-WS services
<[email protected]> Fri, 21 Sep 2007 01:26:13 +0530
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
------_=_NextPart_001_01C7FBC0.B47F78BE
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 =3D WSDLFactory
.newInstance(WSIFConstants.WSIF_WSDLFACTORY);
WSDLReader wread =3D factory.newWSDLReader();
Definition def =3D 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 [mailto:pablo.gomes-zBNV4dQ1Q0AbxheQQ/[email protected]]
Sent: Thu 9/20/2007 2:26 PM
To: [email protected]
Subject: No Schema Elements Found: when using WSIF with JAX-WS services
=20
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')=
=20
- WSIF0007I: Using WSIFProvider=
'org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis'=
for namespaceURI 'http://schemas.xmlsoap.org/wsdl/soap/'=20
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.unwrapS=
OAPParts(Unknown Source)
at=
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.prepare=
(Unknown Source)
at=
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeR=
equestResponseOperation(Unknown Source)
at=
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.execute=
RequestResponseOperation(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.=20
Has anyone have this kind of error?
=A0 =A0Kind Regards,
=A0=A0 Pablo
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and=
may contain proprietary, confidential or privileged information. If you=
are not the intended recipient, you should not disseminate, distribute or=
copy this e-mail. Please notify the sender immediately and destroy all=
copies of this message and any attachments.=20
WARNING: Computer viruses can be transmitted via email. The recipient=
should check this email and any attachments for the presence of viruses.=
The company accepts no liability for any damage caused by any virus=
transmitted by this email.
=20
www.wipro.com
------_=_NextPart_001_01C7FBC0.B47F78BE
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=
=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version=
6.5.7652.24">
<TITLE>RE: No Schema Elements Found: when using WSIF with JAX-WS=
services</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=3D2>Hi Pablo,<BR>
<BR>
Actually, WSIF parses the imported schemas too. I dont know what way you=
are parsing the WSDL.<BR>
<BR>
May be you can try using this code<BR>
<BR>
WSDLFactory factory =3D=
WSDLFactory<BR>
=
.newInstance(WSIFConstants.WSIF_WSDLFACTORY);<BR>
WSDLReader wread =3D=
factory.newWSDLReader();<BR>
Definition def =3D=
wread.readWSDL(wsdlLoc);<BR>
<BR>
Initially I had faced few issues related to parsing schemas.The above code=
solved it.<BR>
<BR>
regards<BR>
GP<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Pablo Gomes Ludermir [<A HREF=
=3D"mailto:pablo.gomes-zBNV4dQ1Q0AbxheQQ/[email protected]">mailto:[email protected]=
m</A>]<BR>
Sent: Thu 9/20/2007 2:26 PM<BR>
To: [email protected]<BR>
Subject: No Schema Elements Found: when using WSIF with JAX-WS services<BR>
<BR>
Hi all,<BR>
<BR>
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:<BR>
<BR>
<BR>
- WSIF0006W: Multiple WSIFProvider found supporting the same namespace URI=
'<A HREF=
=3D"http://schemas.xmlsoap.org/wsdl/soap/'">http://schemas.xmlsoap.org/wsdl=
/soap/'</A>. Found=
('org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis=
,=
org.apache.wsif.providers.soap.apachesoap.WSIFDynamicProvider_ApacheSOAP')=
<BR>
- WSIF0007I: Using WSIFProvider=
'org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis'=
for namespaceURI '<A HREF=
=3D"http://schemas.xmlsoap.org/wsdl/soap/'">http://schemas.xmlsoap.org/wsdl=
/soap/'</A><BR>
Trying to invoke the operation...<BR>
org.apache.wsif.WSIFException: no schema elements found<BR>
at=
org.apache.wsif.util.WSIFUtils.unWrapPart(Unknown Source)<BR>
at=
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.unwrapS=
OAPParts(Unknown Source)<BR>
at=
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.prepare=
(Unknown Source)<BR>
at=
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeR=
equestResponseOperation(Unknown Source)<BR>
at=
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.execute=
RequestResponseOperation(Unknown Source)<BR>
<BR>
<BR>
<BR>
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.<BR>
<BR>
Has anyone have this kind of error?<BR>
<BR>
=A0 =A0Kind Regards,<BR>
=A0=A0 Pablo<BR>
<BR>
---------------------------------------------------------------------<BR>
To unsubscribe, e-mail: [email protected]<BR>
For additional commands, e-mail: [email protected]<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>
<table><tr><td bgcolor=3D#ffffff><font color=3D#000000><br>
The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and=
may contain proprietary, confidential or privileged information. If you=
are not the intended recipient, you should not disseminate, distribute or=
copy this e-mail. Please notify the sender immediately and destroy all=
copies of this message and any attachments. <br>
<br>
WARNING: Computer viruses can be transmitted via email. The recipient=
should check this email and any attachments for the presence of viruses.=
The company accepts no liability for any damage caused by any virus=
transmitted by this email.<br>
<br>
www.wipro.com<br>
</font></td></tr></table>
------_=_NextPart_001_01C7FBC0.B47F78BE--