Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Can an XML element in one namespace containa child element in another, blank one with CXF?

0

70 views

So, I've been working on some simple SOAP-based webservices to integrate our systems with a commercial product. I've been using Apache CXF to generate Java classes from the WSDLs generated by the product, and I seem to have hit a bit of a wall. Basically, part of the SOAP service in the product expects something of the form

<ReadProject xmlns="http://www.niku.com/xog/Object">
    <DataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/xog_read.xsd" xmlns="">
        <Header version="12.0.0.5028" externalSource="NIKU" />
        <Query>
            <Filter name="projectID" criteria="EQUALS">PR117</Filter>
        </Query>
    </DataBus>
</ReadProject>

I'm still new to webservices and XML, so I don't really know what to ask Google to figure out how to make the namespace of the <DataBus> be different from the other tags. I have a suspicion that the product's XML isn't valid too, since the namespace is blank. Is there a way to write a WSDL or XSD file to make this happen in CXF?

asked January 26, 2011 12:19 pm CST
posted via StackOverflow

0 Answers

Be the first to answer this question

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions