This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes targetNamespace & NameSpace issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "targetNamespace & NameSpace issue" Watch "targetNamespace & NameSpace issue" New topic

targetNamespace & NameSpace issue

saipraneeth nallapareddy
Ranch Hand

Joined: Dec 02, 2009
Posts: 159
i am a newbie to the web services, i am using axis2, the thing i have made a hand typed wsdl file and rectified all the errors regarding the syntactic and other errors but the one i am unable to rectify is the namespace issue which i am facing for the operation which i have created based on a java program whose main purpose is to tell Hello followed by the parameter passed.

Earlier when i just deployed the service archive(.aar file) only using a services.xml file and the .class file and depending on server generated .wsdl file i'm getting the required result, so i thought of making a wsdl file on my own by going through the tags and the attributes which are inter-related among the other tags and i'm able to finish the wsdl file but i'm stuck at the namespace issue, i have tried to include the same namespace which the server has generated but i have no luck. i know that it will fail how can i figure out the right namespace for my operation that is related to the java method.

here is my wsdl file


java program

now can any one help me to figure out the right namespace for the operation

the errors i got when i have started to generate the stubs from the hand typed wsdl file, there are errors but the stubs have been generated

saipraneeth nallapareddy
Ranch Hand

Joined: Dec 02, 2009
Posts: 159
it is just due to case sensitive issue as i have made it is a hand typed one and i didn't made use of any tools i couldn't locate the error, the only way i have rectified the errors that are pointed when i generate the stubs using wsdl2java.bat.
the error is targetNameSpace should be targetNamespace.
Ofcourse i have modified the WSDL file when compared to the one i posted, they are all pointed by wsdl2java.bat.
wood burning stoves
subject: targetNamespace & NameSpace issue
Similar Threads
response unable to receive the parameter sent
error in wsdl
Can we support Map/HashMap in the webservice as one of internal parameters?
WDSL2Java using Axis2 via Ant in Eclipse
Axis2 - WSDL to code