aspose file tools*
The moose likes Web Services and the fly likes adding xmlns to calls made by wsdl2java stubs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "adding xmlns to calls made by wsdl2java stubs" Watch "adding xmlns to calls made by wsdl2java stubs" New topic
Author

adding xmlns to calls made by wsdl2java stubs

Wei Hsu
Greenhorn

Joined: Feb 23, 2004
Posts: 11
Hi all,
I am using wsdl2java to generate client side stubs that would make calls in SOAP. I was looking through the documentations and the API's, and i can't seem to locate a function that would add a namespace declaration to the soap envelope.
Are there any ways at all? As in, through client-side code calling or wsdl declaration (more preferable)? Thanks in advance!
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
wsdl2java should generate everything you need to communicate with the service -- why do you need to add namespaces manually?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Wei Hsu
Greenhorn

Joined: Feb 23, 2004
Posts: 11
I am trying to create a wsdl for an existing service. The service has some dumb hardcoding of namespace prefixes - so that's why i need to figure out how to change the namespace prefix and add namespace declaration to an element in the body of the soap. Hope that makes sense.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding xmlns to calls made by wsdl2java stubs