I am not sure why the code is not generating the namespace with the tags. I tried using the ObjectFactory to create the webservice Objct. But when I invoke the webservice from the port its creating a null pointer exception on the server side and generating the non working XML.
Here's my code to invoke the service. Also I am using the ObjectFactory to create the inner types
MyWebServicePortType port = getServicePort();
ObjectFactory factory = new ObjectFactory();
MyDataType type = factory.createMyDataType();
port.getData(type); //Here's the null pointer exception on the server side
Can anyone please help me to understand what might be going wrong which creates the request xml that doesent work?