This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
1) As I can see that you have WSDL url with you then why are you digging with SAAJ api? If you are aware of AXIS2 , you can directly generate java stub from your wsdl and then just fire method you want to and obtain response. SAAJ apis are not that reliable.
2) Did you try mentioning endpoint url without "?wsdl" ?
Did you verify that your SOAP request is getting constructed as expected and accurately?
Also you can send your soap message directly through a URLConnection.
Provide SOAP request you are sending (One from SOAPUI and one constructed in your code).
Joined: Aug 22, 2008
Thanks a lot naren mane,
It worked well when i removed "?wsdl".
But i am still confused.Can you explain me how it works without adding "?wsdl".
Because when i created a sample web service,I connected it with "?wsdl" and the response was as expected.
1) When you add "?wsdl" to webservice URL and hit it in a browser what you see is a service contract which is also called as WSDL file. It is just a view file mentioning all the bindings, data, apis etc etc.
2) And a webservice url without a "?wsdl" is a service with which data is sent in actual.That is the endpoint URL to which request/data is posted and user receives response accordingly.
Thus if you hit a ws url with "?wsdl", will return you contract and is not a valid service url.It is document URL.