facebook

XFire and generating empty namespaces

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

    jvitale2002
    Member

    Hello,

    I am using XFIRE 1.2.6 in MyEclipse and I am generating a test client based off a WSDL. I need to specify an empty namespace for embedded elements but I can’t seem to do so. This is what I am trying to create:

    <ns1:DatabaseIdCollection xmlns:ns1=”http://some.namespace”&gt;
    <ns1:DatabaseId>
    <dbIdentifier xmlns=””>SomeIdentifier</dbIdentifier>
    <associatedResource xmlns=””>SomeResource</associatedResource>
    <dbKey xmlns=””>10001000959234</dbKey>
    </ns1:DatabaseId>

    I am trying to generate the xmlns=””, but I can’t seem to do this in XFire using attributes. I’ve tried the following above each element with no luck:

    @XmlElement(name = “dbIdentifier”, namespace = “”, required = true)

    protected String dbIdentifier;

    XFire generates the following which breaks validation in the client:

    <ns1:DatabaseIdCollection xmlns:ns1=”http://some.namespace”&gt;
    <ns1:DatabaseId>
    <dbIdentifier>SomeIdentifier</dbIdentifier>
    <associatedResource>SomeResource</associatedResource>
    <dbKey>10001000959234</dbKey>
    </ns1:DatabaseId>
    </ns1:DatabaseIdCollection>

    Any help would be greatly appreciated!
    Joe

    #272045 Reply

    Riyad Kalla
    Member

    Joe,
    This is really an XFire question and unfortunately outside the boundries of my XFire know-how. I’ll fire the question off to someone from the XFire team, but I don’t know if he’ll follow up here.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: XFire and generating empty namespaces

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