Skip to content

Tag: web-services

SOAPHandler handleFault

Can any one explain me when SOAPHandler’s handleFault(SOAPMessageContext context) method is called ? My Handler class is : Can any one explain when handleMessage and handleFault method is called ? Answer According to : http://docs.oracle.com/cd/E13222_01/wls/docs103/webserv_adv/handlers.html#wp222524 ha…

Wildfly configuration with DataSource

this is the first time I am trying to setup datasource in my Wildfly server. I tried to follow some tutorials which I found on Google but it still doesn’t work. I am working on a web service but I keep getting some errors when I deploy my .war file. Here is the latest log when app is deployed: persisten…

How to auto start apache tomcat server

I can view the webpage after deploying the war file.when i open the page for next day i cannot view the page again after restarting the apache tomcat server the page opens. Answer You must have shut down the machine. When you come on next day and access the same URL then you won’t be able to see that pa…

jax ws getting client ip

I’m trying to retrieve the client IP with JAX-WS, I used: I get a NullPointerException in req, mc is not null. My question is which JAR to use for HttpServletRequest because I’m using a Java stand-alone application? Thanks Answer How to get the webservice client address for a jax-ws service depend…

How to generate WSDD based on code or based on WSDL

I have access to remote sever that provides me wsdl back to my response. I prepared Client for this, based on that wsdl. Now I woud like to write a fake Server (for testing needs), what I should start first? Which steps I should implement? The test makes sense only if it is implemented by this WSDL. Is it pos…

Getting raw XML response from Java web service client

I am trying to get the raw XML response from a web service, instead of the usual set of POJOs. I am using a webservice client that I generated (so I have access to the client’s code) from a WSDL and some schemas. The client is generated in RAD 7.5, I think using JAX-WS. I’ve been looking at the cl…