NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
brunov
Joined: 26 Apr 2010 Posts: 4 Location: Grenoble, france
|
Posted: Mon Apr 26, 2010 8:58 am Post subject: WSDL doesn't validate: Error resolving component 'wsp:Policy' |
|
|
With Netbeans 6.8 or 6.9b: I create a simple WebService and "Generate and Copy WSDL ..."
The WSDL and the Schema are fine in SoapUI (they pass the WS-I test).
When I open the WSDL in Netbeans and validate, I have this error:
| Quote: | src-resolve.4.2: Error resolving component 'wsp:Policy'.
It was detected that 'wsp:Policy' is in namespace 'http://www.w3.org/2006/07/ws-policy', but components from this namespace are not referenceable from schema document 'nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd'.
If this is the incorrect namespace, perhaps the prefix of 'wsp:Policy' needs to be changed.
If this is the correct namespace, then an appropriate 'import' tag should be added to 'nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd'.
[48] nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd
|
Is it a bug ??
Regards
Bruno |
|
| Back to top |
|
 |
Martin Grebac Posted via mailing list.
|
Posted: Tue May 04, 2010 7:52 am Post subject: Re: WSDL doesn't validate: Error resolving component 'wsp:Policy' |
|
|
Hi,
this looks like an error in wsit catalog definition for wsp namespace.
Thanks for pointing this out, I'll look at it.
MartiNG
On 26.4.10 10:58, brunov wrote:
| Quote: | With Netbeans 6.8 or 6.9b: I create a simple WebService and "Generate and Copy WSDL ..."
The WSDL and the Schema are fine in SoapUI (they pass the WS-I test).
When I open the WSDL in Netbeans and validate, I have this error:
| Quote: | src-resolve.4.2: Error resolving component 'wsp:Policy'.
It was detected that 'wsp:Policy' is in namespace 'http://www.w3.org/2006/07/ws-policy', but components from this namespace are not referenceable from schema document 'nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd'.
If this is the incorrect namespace, perhaps the prefix of 'wsp:Policy' needs to be changed.
If this is the correct namespace, then an appropriate 'import' tag should be added to 'nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd'.
[48] nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd
|
Is it a bug ??
Regards
Bruno
|
--
Martin Grebac, http://blogs.sun.com/mgrebac
Web Technologies& Standards
Sun Microsystems Czech
ICQ: 93478885 |
|
| Back to top |
|
 |
Martin Grebac Posted via mailing list.
|
Posted: Tue May 04, 2010 9:09 am Post subject: Re: WSDL doesn't validate: Error resolving component 'wsp:Policy' |
|
|
I looked at the issue and it's not catalog definition problem. It
appears to be a validator problem as I don't see anything wrong defined
in the schemas, and also the imports look correct to me.
MartiNG
On 4.5.10 9:52, Martin Grebac wrote:
| Quote: | Hi,
this looks like an error in wsit catalog definition for wsp
namespace. Thanks for pointing this out, I'll look at it.
MartiNG
On 26.4.10 10:58, brunov wrote:
| Quote: | With Netbeans 6.8 or 6.9b: I create a simple WebService and "Generate
and Copy WSDL ..."
The WSDL and the Schema are fine in SoapUI (they pass the WS-I test).
When I open the WSDL in Netbeans and validate, I have this error:
| Quote: | src-resolve.4.2: Error resolving component 'wsp:Policy'.
It was detected that 'wsp:Policy' is in namespace
'http://www.w3.org/2006/07/ws-policy', but components from this
namespace are not referenceable from schema document
'nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd'.
If this is the incorrect namespace, perhaps the prefix of
'wsp:Policy' needs to be changed.
If this is the correct namespace, then an appropriate 'import' tag
should be added to
'nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd'.
[48]
nbres:/org/netbeans/modules/websvc/wsitmodelext/catalog/resources/ws-addr-metadata.xsd
|
Is it a bug ??
Regards
Bruno
|
|
--
Martin Grebac, http://blogs.sun.com/mgrebac
Web Technologies& Standards
Sun Microsystems Czech
ICQ: 93478885 |
|
| Back to top |
|
 |
brunov
Joined: 26 Apr 2010 Posts: 4 Location: Grenoble, france
|
Posted: Tue May 04, 2010 9:52 am Post subject: Re: WSDL doesn't validate: Error resolving component 'wsp:Policy' |
|
|
Hello Martin,
Thanks for taking care of what is becoming a strange problem.
Where can we go from here ? Could it be an error in the W3C or OASIS hosted schema ? with all the inclusions and version it is kind of complex.
Or in the validator logic ?
Maybe it would be simple to remove it when it isn't really required in the WSDL ?
It would be nice to clean this up or to fill a bug. But the bug report page is kind of scary when you don't know which component, version and all the listbox, checkbox ...
Regards
Bruno |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|