- This topic has 4 replies, 2 voices, and was last updated 18 years, 5 months ago by
andre_a_s.
-
AuthorPosts
-
andre_a_sMemberHi 🙂
I’m using MyEclipse 5.5 M1.
I have a web app that works fine, and I made a web service by “file – new – other – MyEclipse – Web Services – Web Service”.
The WSDL was successfully generated, but when I try to generate a web service client according to the WSDL that I just created, I receive the following errors:src-resolve.4.2: Error resolving component 'ns2:Byte'. It was detected that 'ns2:Byte' is in namespace 'http://lang.java', but components from this namespace are not referenceable from schema document 'http://localhost:8080/CreditoRural/services/PropostaService'.
I receive four errors like this, but with different component names.
It happens in MyEclipse 5.1 too.
Probably XFire is generating the WSDL in the wrong way.
Is this a bug? How can I make my correct WSDL file?I’ll put just the initial lines of the WSDL, because it has more than 2000.
All help will be useful.
😀<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://webservices.rural.com" xmlns:tns="http://webservices.rural.com" xmlns:ns4="http://io.java" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://beans.rural.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://fileupload.custom.myfaces.apache.org" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:ns2="http://lang.java" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://beans.rural.com">
February 12, 2007 at 2:45 pm #265995
Brian FernandesModeratorAndre,
You may need to edit the WSDL a bit. Could you add xsd:import directives at locations where you see the error?
for example
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://beans.rural.com"> <xsd:import namespace = "http://java.lang"/> ...
Hope this helps.
February 13, 2007 at 11:11 am #266053
andre_a_sMemberYes, it solves the problem 🙂
But shouldn’t MyEclipse do this automatically? Because without the import directive the WSDL is invalid.
Thanx.February 13, 2007 at 5:05 pm #266074
Brian FernandesModeratorAndre,
Yes, this isn’t something you should have to do manually.
This particular problem happens to be an issue with the XFire WSDL generator; we’ll take it up with the XFire team internally and try to get it resolved in the next release.Thanks for your report!
February 13, 2007 at 7:44 pm #266079
andre_a_sMemberThanks for answering.
=) -
AuthorPosts