I think we need to have a lot more detail about what you're trying to do before we can help you in a meaningful way. For starters, I suspect that "carrer-builder API" is a typo, but any way to correct that comes to me still means nothing - career-builder API? carrier-builder API? Something else?
Apart from that, what is the precise problem? You have a servlet that tries to access this 3rd party WS API? What does XML have to do with it? Usually, the SOAP toolkits generate client code that hides all the SOAP and XML stuff underneath Java methods. Could you use that? Or are there particular reasons you need to work with XML directly? If so, what are they? etc. So, please TellThe Details.
That's what only i don't know about web-services please you have any like this example is there, can you suggest me and one more compared to soap rest only better but i want soap based example. thanks for understanding
I mean based on factorial example web-services working through phonegap android emulator. please help me i am trying to struggle 2 weeks onwards i referred so many examples but server side i didn't get answers.
Fact is, almost nobody uses a SOAP API in web pages, and even from within a native mobile app the majority of WS calls are made to REST WS.
I suggest to forget about the mobile aspect for a while, and familiarize yourself with REST WS. There's no shortage of JAX-RS examples and tutorials out there, probably even some that implement factorials :-)
I think you should hone your web search skills; relying on folks on a forum to do a Google search for you is not going to work well. That phrase you used -rest web services examples- would be a good start.