wood burning stoves 2.0*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
axis's wsdl2java
Are axis-client stubs / serviceLocator thread safe?
webservices: Java Code to call the functionalities offered at the wsdl
wsdl2java and namespace declarations
Axis client stub compatibility