• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

JAXWS client: overwriting namespace prefixes

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have to write a WS client for an application which name I won't mention, but that isn't exactly providing valid webservices.

I have to use a ****.dll?SOAP as the endpoint. There is no WSDL, so I've build one myself. Now that I try to test it I see that this application requires specific namespace prefixes:



What I mean is that I have to use the company name as the prefix for what you can see as . And that I have to use SOAP-ENV as prefix for the soap namespace. The problem is that the soap request that is generated by jaxws uses the more common lowercase soapenv prefix and uses n0 for the prefix in the message
I fail to find a way to do this in JAXWS. I have found a NamespacePrefixMapper in JAXB, but can't see how to invoke this from JAXWS (more specifically the JAXWS-MAVEN plugin.

I am using the latest version of both JAXWS and JAXB
[ November 12, 2008: Message edited by: peter coster ]
reply
    Bookmark Topic Watch Topic
  • New Topic