Results 1 to 3 of 3

Thread: how do i marshel with no namespace in root element

  1. #1

    Default how do i marshel with no namespace in root element

    i need to tweak one of my service so i does not return the namespace in the root element. this is for a cisco phone system that can't deal with parsing XML docs with the namespace.

    i need this
    Code:
    <VehicleLookupResponse xmlns="http://oracle.autoreturn.com/schemas/vehicles">
     ......
    </VehicleLookupResponse>
    to look like

    Code:
    <VehicleLookupResponse>
     ......
    </VehicleLookupResponse>

    thanks,
    deno

  2. #2

    Default

    Hi Deno,

    if you need something quick, just take a transformingInterceptor to plug a stylesheet that writes a root element without namespace and copies the rest inside of it.

    Apart from that the question is where the namespace comes from and you should try to remove it there.

    Tobias

  3. #3

    Default

    Quote Originally Posted by tobias View Post
    Hi Deno,

    if you need something quick, just take a transformingInterceptor to plug a stylesheet that writes a root element without namespace and copies the rest inside of it.

    Apart from that the question is where the namespace comes from and you should try to remove it there.

    Tobias
    i decided to take the quick and dirty route. since i'm dumping the xml as a string to the view i'm just going to strip out the namespace from the string.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •