Skip to content
Advertisement

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 handleMessage : The Handler.handleMessage() method is called to intercept a SOAP message request before and after it is processed by the back-end component and handleFault

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: persistence.xml

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 page.

ServletContextListener SEVERE: Error configuring application listener of class marktest.Config

My Java servlet appears to be complaining that it can’t find a file which is included in the package (marktest). Im using Eclipse (Indigo) to develop and Tomcat7. Here is the error: Here is Config.java which contains the class implementing ServletContextListener which it says it can’t find in the error: and here is web.xml I’m rather stumped even after much

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 depends on whether you are: Running your webservice as a

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 possible

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 client

Error creating bean with name ‘org.springframework.ws.server.endpoint.adapter.DefaultMethodEndpointAdapter’

I am trying out a simple spring web service application. I have configured the application correctly but when i try access the wsdl file i get the following error: Here are my configuration files: ws-config.xml web.xml app-config.xml downloadMessageRequest.xsd Edit pom.xml Answer Do you have spring-expression in your Maven dependencies ? If you are not using Maven, check your WEB-INF/lib folder.

Advertisement