Announcement Announcement Module
Collapse
No announcement yet.
how do i marshel with no namespace in root element Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


    • #3
      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.

      Comment

      Working...
      X