Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 14741 invoked from network); 2 Sep 2004 06:23:59 -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:23:59 -0000 Received: (qmail 35148 invoked by uid 500); 2 Sep 2004 06:23:57 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 35102 invoked by uid 500); 2 Sep 2004 06:23:56 -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 35078 invoked by uid 99); 2 Sep 2004 06:23:56 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=HTML_30_40,HTML_MESSAGE,HTML_TITLE_EMPTY X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [203.123.162.84] (HELO exchange.sigma.com) (203.123.162.84) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Sep 2004 23:23:55 -0700 Received: by exchange.sigma.com with Internet Mail Service (5.5.2653.19) id ; Thu, 2 Sep 2004 11:57:47 +0530 Message-ID: From: "Gupta, Rakesh" To: 'Apache AXIS C User List' Subject: 500 Internal Server error Date: Thu, 2 Sep 2004 11:57:38 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C490B5.F15B0150" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C490B5.F15B0150 Content-Type: text/plain; charset="iso-8859-1" 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 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: 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 : ). 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? ------_=_NextPart_001_01C490B5.F15B0150 Content-Type: text/html; charset="iso-8859-1"

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
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://w
ww.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -&gt; class ABC.ServiceId)</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>^M
0^M
^M


> std::string GetChunkedPayLoad(Channel* channel, const std::string& payload)^M
Payload:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://w
ww.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -&gt; class ABC.ServiceId)</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

My request body looks like this :

<ServiceId xsi:type="xsd:string">abc</ServiceId>
<OperatorId xsi:type="xsd:string">xyz</OperatorId>

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:1121)
        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(ApplicationFilterChain.java:237)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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(StandardValveContext.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.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java: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 : <wsdlsoap:operation 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?

------_=_NextPart_001_01C490B5.F15B0150--