MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
andre_a_s
Post subject: [Closed] Problem in WSDL generation on MyEclipse 5.5 M1  PostPosted: Feb 08, 2007 - 06:36 PM



Joined: Nov 16, 2006
Posts: 7

Hi :)
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:

Code:
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.
:D

Code:
<?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">
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Feb 12, 2007 - 08:45 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2508

Andre,

You may need to edit the WSDL a bit. Could you add xsd:import directives at locations where you see the error?

for example
Code:
 <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.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
andre_a_s
Post subject:   PostPosted: Feb 13, 2007 - 05:11 PM



Joined: Nov 16, 2006
Posts: 7

Yes, it solves the problem :)
But shouldn't MyEclipse do this automatically? Because without the import directive the WSDL is invalid.
Thanx.
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Feb 13, 2007 - 11:05 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2508

Andre,

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!

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
andre_a_s
Post subject:   PostPosted: Feb 14, 2007 - 01:44 AM



Joined: Nov 16, 2006
Posts: 7

Thanks for answering.
=)
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits