Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 23265 invoked from network); 2 Sep 2004 06:42:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Sep 2004 06:42:51 -0000 Received: (qmail 65481 invoked by uid 500); 2 Sep 2004 06:42:51 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 65469 invoked by uid 500); 2 Sep 2004 06:42:50 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 65456 invoked by uid 99); 2 Sep 2004 06:42:50 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [66.218.78.145] (HELO web40608.mail.yahoo.com) (66.218.78.145) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 01 Sep 2004 23:42:49 -0700 Message-ID: <20040902064247.41723.qmail@web40608.mail.yahoo.com> Received: from [203.143.133.31] by web40608.mail.yahoo.com via HTTP; Wed, 01 Sep 2004 23:42:47 PDT Date: Wed, 1 Sep 2004 23:42:47 -0700 (PDT) From: Samisa Abeysinghe Subject: Re: 500 Internal Server error To: Apache AXIS C User List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Looking at the exception it looks like for Axis Java SOAPAction is mandatory. (need to ask form Axis Java folks) Please try giving value for SOAP action in m_pCall->setTransportProperty(SOAPACTION_HEADER , ""); In case you have a java client for this service, you could use tcpmon (Axis java tool) to monitor the SOAP action sent by the Java client and use that in C++ client. Samisa... --- "Gupta, Rakesh" wrote: > I am using AXIS C++ client ( for the SOAP implementation ) to communicate > with the web services deployed with axis on tomcat. However, when I try to > send a SOAP request I get the following soap fault at the client side. > > Transport:init() successfull > > Got the message:^M > ^M > HTTP/1.1 500 Internal Server Error^M > Content-Type: text/xml;charset=utf-8^M > Transfer-Encoding: chunked^M > Date: Wed, 01 Sep 2004 15:02:44 GMT^M > Server: Apache-Coyote/1.1^M > Connection: close^M > ^M > 1f5^M > > xmlns:xsi=" http://w > ww.w3.org/2001/XMLSchema-instance"> > > > soapenv:Server.userException > org.xml.sax.SAXException: Bad types (class java.lang.String > -> class ABC.ServiceId) > > > > ^M > 0^M > ^M > > > > std::string GetChunkedPayLoad(Channel* channel, const std::string& > payload)^M > Payload: > > xmlns:xsi=" http://w > ww.w3.org/2001/XMLSchema-instance"> > > > soapenv:Server.userException > org.xml.sax.SAXException: Bad types (class java.lang.String > -> class ABC.ServiceId) > > > > > > My request body looks like this : > > abc > xyz > > Also, the server (tomcat) logs show the following messages : > > - Generating fault class > AxisFault > faultCode: { http://xml.apache.org/axis/ > }Client.NoSOAPAction > faultSubcode: > faultString: no SOAPAction header! > faultActor: > faultNode: > faultDetail: > { http://xml.apache.org/axis/ > }stackTrace: AxisFault > faultCode: { http://xml.apache.org/axis/ > }Client.NoSOAPAction > faultSubcode: > faultString: no SOAPAction header! > faultActor: > faultNode: > faultDetail: > > no SOAPAction header! > at > org.apache.axis.transport.http.AxisServlet.getSoapAction(AxisServlet.java:11 > 21) > at > org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:835) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at > org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java: > 339) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:237) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:157) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:214) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext > Valve.java:198) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > va:152) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 > ) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 > ) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > :109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > ction(Http11Protocol.java:705) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > a:683) > at java.lang.Thread.run(Unknown Source) > > The call that I make for setting the SOAP action header is > "m_pCall->setTransportProperty(SOAPACTION_HEADER , "");". The second > argument in this call has blank value since my WSDL does not specify any > soapAction for the service ( snapshot of WSDL : soapAction="" /> ). > Is it mandatory to specify a value for the SOAPACTION_HEADER ? Or is there > something wrong with the request ? And why do I get a > "org.xml.sax.SAXException: Bad types" exception ? What exactly could be the > problem? > > > > _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush