axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: [axis2] changes in 1.0
Date Fri, 02 Jun 2006 19:46:09 GMT
Tony,

Did anyone respond? Can u please file bugs for these?

thanks,
dims

On 6/1/06, Tony Dean <Tony.Dean@sas.com> wrote:
> Hi,
>
> Could you please answer a few questions in regard to changes that have been instituted
in 1.0.
>
> 1. I am now presented with a ServiceContext when service init() is invoked.  I would
like to obtain my endpoint address from it.
> serviceContext.getMyEPR(); returns null however.  Can you fix this?  I use to use messageContext.getTo(),
but it seems more appropriate to use the serviceContext since my endpoint address should be
static and not changing on a per call basis.
>
> 2. I had some code that created a custom SOAP fault that worked in 0.95.  It no longer
works.  It would create a soapFaultCode, soapFaultReason, and soapFaultDetail and add it to
the out-going message context as follows:
>
>                     messageContext.setProperty(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME,
soapFaultCode);
>                     messageContext.setProperty(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME,
soapFaultReason);
>                     messageContext.setProperty(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,
soapFaultDetail);
>
> Now instead of my custom soap fault being returned, I get a generic Axis2 fault returned:
>
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
/><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>unknown</faultstring><detail><Exception>org.apache.axis2.AxisFault&#13;
>         at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)&#13;
>         at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)&#13;
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)&#13;
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)&#13;
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)&#13;
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)&#13;
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)&#13;
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)&#13;
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&#13;
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)&#13;
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)&#13;
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)&#13;
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)&#13;
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)&#13;
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)&#13;
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)&#13;
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)&#13;
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)&#13;
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)&#13;
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)&#13;
>         at java.lang.Thread.run(Thread.java:534)&#13;
> </Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>
>
> Please to me how I can get this working again.  What is the best fail proof way to generate
my own fault data.  Do you have an api similar to SAAJ?
>
> Thanks.
>
>
> Tony Dean
> SAS Institute Inc.
> 919.531.6704
> tony.dean@sas.com
>
> SAS... The Power to Know
> http://www.sas.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://wso2.com/blogs/

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message