Custom fault for SOAP11 shows internal server error

2009-06-15 Thread Jan Pernica
When I throw exception from the service using XML Beans on Axis 1.5 I get following error in the client: OMException in getSOAPBuilder org.apache.axiom.om.OMException: SOAP message MUST NOT contain a Document Type Declaration(DTD) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuild

Re: Header contains body and body contains header as well

2009-06-15 Thread asheikh
Hi, After adding the following line to the stub, the problem is solved and I was able to get a response from the server _serviceClient.getOptions().setProperty(HTTPConstants.CHUNKED, "false"); On Mon, Jun 15, 2009 at 4:07 PM, asheikh wrote: > Hi > I have generated a stub from a wsdl and run

Re: Get parameter value from services.xml

2009-06-15 Thread Deepal jayasinghe
You can get that from the MessgeContext, and you can get the messagecontext from almost any place, once you have that you can read the parameter as; msgctx.getParameter("name"); Thanks, Deepal > Is there a way to get the value of a parameter set in the services.xml > file from within the class han

Get parameter value from services.xml

2009-06-15 Thread Adam Edgar
Is there a way to get the value of a parameter set in the services.xml file from within the class handling the requests? I've looked through the documentation and seem to be going in circles. Basically I'd like to see something like this: String param = (String) service.getParameterValue("param-n

Re: Unable to find required classes (javax.activation.DataHandler and javax.mail...

2009-06-15 Thread Steve Hall
I believe that class was bundled in the jvm starting with 1.4.2 (though I could easily be mistaken). It is also available in the xml-apis.jar, which I believe is part of the axis1 distro -- if it isn't is should be in available from the xerces project. Steve Hall Hetal Desai wrote: Hello, I

Re: Unable to find required classes (javax.activation.DataHandler and javax.mail...

2009-06-15 Thread Hetal Desai
Hello, I am stuck. Can someone please provide some pointers ? Thanks a bunch, Hetal --- On Thu, 6/11/09, Hetal Desai wrote: From: Hetal Desai Subject: Unable to find required classes (javax.activation.DataHandler and javax.mail... To: axis-user@ws.apache.org Date: Thursday, June 11, 2009, 11:

RE: server-config.wsdd *where*?

2009-06-15 Thread Richard Lynch
I'm pretty sure the resin.conf I'm using is being used, as the App actually starts and I get to the JSP and get through the first screen... None of which would work, I think, if I had the wrong resin.conf That said, I'm not a Java guy at all -- I just installed this stuff and prayed. But not h

RE: server-config.wsdd *where*?

2009-06-15 Thread Ebert, Chris
Hi Richard, >From one moron to another, have you checked file permissions? Also, and it is >a little embarrasing to admit this, but also check the resin.conf you think >you're using *is* the one being used *and* that it points to the directories >you think it's pointing to. Absolute paths help.

server-config.wsdd *where*?

2009-06-15 Thread Richard Lynch
I get this when I launch resin: Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd Not being a complete moron, I found this: http://www.cppblog.com/wform/archive/2006/04/27/6365.aspx I copied the contents of that file into what I thought would be th

Parsing / Serialising SOAP request/response to/from JSP to Axis2 1.4.1 Java service

2009-06-15 Thread Ramya K Grama
Hello, I am trying to create a JSP with an html form which would let the client provide a request SOAP message in a form element and expect the SOAP response message from my service in another textarea form element in the same JSP. To acheive this, I'm having issues with two things: 1. Passing the

Header contains body and body contains header as well

2009-06-15 Thread asheikh
Hi I have generated a stub from a wsdl and run a test, but my problem is the server is not returning a response. I have tcpmonitor and I saw the header includes the body and body also includes the header. There is another web service deployed and when I generated a stub for that service everything