A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Issue with namespaces while consuming a service
Ravikanth Reddy Bapathi
Joined: Apr 13, 2007
Jun 07, 2010 21:53:06
I have exposed a service
the wsdl has a namespace with impl.
the service implementation extracts the name space for the operation and executes a business logic based on name space.
i am trying to consume the web service by
i am able to invoke the service but name space is missing in the request.
the current request is
it has to be
i have generated client using eclipse.
any help is appreciated.
Joined: Feb 19, 2010
Jun 08, 2010 08:19:33
Hi. To prefix the namespace, you could modify the generated client and call addNamespaceDeclaration:
Please see an example here:
And let me know if that works
It is sorta covered in the
JavaRanch Style Guide
subject: Issue with namespaces while consuming a service
The request failed schema validation: The required attribute 'Attributes' is missing
Axis 1.4 -Serialization of array of Strings
unable to generate correct xml using jaxb
problem in configure wss4j in axis 1.4 with JBoss application server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014