On Tue, Apr 21, 2009 at 9:01 AM, Schramm, Arne <[email protected]> wrote:

> Hi,
>
> I have a problem with the messages, which are sent by ODE. There's a
> strange setting of the namespaces. The following example is taken from my
> process:
>
> <startProg xmlns="http://api.milling/";>
>        <arg0 type="p0:AnyTypeDataObject">1</arg0>
>        <mil:arg1 xmlns:mil="http://api.milling/";>10000</mil:arg1>
> </startProg>
>
> All elements are defined in the same namespace (http://api.milling/) and
> the Message sent is also correct xml. But it is not nice. The parent element
> has a namespace declaration, the child not (because it needs not) and the
> second child has a namespace declaration with prefix. I need the message in
> a fomat like:
>
> <api:startProg xmlns:api="http://api.milling/";>
>        <arg0>1</arg0>
>        <arg1>10000</arg1>
> </api:startProg>
>
> The Parent has a namespace and prefix, and the cildren do not. The reason
> why i need it is, that the service (a tuscany service) does not recognize
> any arguments otherwise.
> Could anybody please help me?
>

It's going to be hard to fix on our side unless someone is interested in
developing namespace optimizations before sending a message. The
multiplication of namespace declarations that you're seeing is the result of
assignments, as elements are copied from a document to another. Most XML
APIs don't do any namespace consolidation so we don't either.

I would ask on the Tuscany side why they refuse the message, it is valid XML
as you mentioned.

Cheers,
Matthieu


>
> Thank you very much in advance...
>
> aRne
>
> > Arne Schramm
> > Thesis Student
> > SAP AG, SAP Research CEC Dresden
> > Chemnitzer Straße. 48
> > D-01187 Dresden
> > Germany
> > mailto:[email protected]
> > http://www.sap.com/research
> >
> > Sitz der Gesellschaft/Registered Office: Walldorf, Germany
> > Vorstand/SAP Executive Board: Henning Kagermann (Sprecher/CEO), Léo
> Apotheker (stellvertretender Sprecher/Deputy CEO), Werner Brandt, Claus
> Heinrich, Gerhard Oswald, John Schwarz, Peter Zencke
> > Vorsitzender des Aufsichtsrats/Chairperson of the SAP Supervisory Board:
> Hasso Plattner
> > Registergericht/Commercial Register Mannheim No HRB 350269
> >
> > Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige
> vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich
> erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine
> Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt.
> > Bitte benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail.
> Vielen Dank.
> >
> > This e-mail may contain trade secrets or privileged, undisclosed, or
> otherwise confidential information. If you have received this e-mail in
> error, you are hereby notified that any review, copying, or distribution of
> it is strictly prohibited. Please inform us immediately and destroy the
> original transmittal. Thank you for your cooperation.
> >
> >
>

Reply via email to