facebook

[Closed] Problem in WSDL generation on MyEclipse 5.5 M1

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #265826 Reply

    andre_a_s
    Member

    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:

    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">
    #265995 Reply

    Brian Fernandes
    Moderator

    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

     <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.

    #266053 Reply

    andre_a_s
    Member

    Yes, it solves the problem 🙂
    But shouldn’t MyEclipse do this automatically? Because without the import directive the WSDL is invalid.
    Thanx.

    #266074 Reply

    Brian Fernandes
    Moderator

    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!

    #266079 Reply

    andre_a_s
    Member

    Thanks for answering.
    =)

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] Problem in WSDL generation on MyEclipse 5.5 M1

You must be logged in to post in the forum log in