[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems calling webservice with httpapi and tomcat/axis
   hi,
   sorry for the very common mail subject. but i got a problem and don't
   know where to begin to look at (and am a newbie with webservice and
   soap, etc... =))
   the webservice is a simple service for getting the email address from
   a user passing the system i username. the webservice is written in
   java and running on tomcat 5.5.17 with axis 1.4. there is no problem
   calling the webservice from a java client. now i'm trying to call it
   from rpg and there i got some problems.
   the httpapi debug text:
   HTTPAPI Ver 1.20 released 2007-06-04
   http_persist_open(): entered
   http_long_ParseURL(): entered
   http_persist_post(): entered
   http_long_ParseURL(): entered
   do_post(): entered
   POST /axis/EmailWS.jws HTTP/1.1
   Host: 10.1.38.215:8080
   User-Agent: http-api/1.20
   Content-Type: text/xml
   Expect: 100-continue
   Content-Length: 467
   recvresp(): entered
   HTTP/1.1 100 Continue
   SetError() #13: HTTP/1.1 100 Continue
   senddoc(): entered
   <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
   xmlns:soapenv="[1]http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:xsd="[2]http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="[3]http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body
   ><getEmailAddress
   soapenv:encodingStyle="[4]http://schemas.xmlsoap.org/soap/encoding/"><
   arg0 xsi:type="soapenc:string"
   xmlns:soapenc="[5]http://schemas.xmlsoap.org/soap/encoding/">KNEZEVIM<
   /arg0></getEmailAddress></soapenv:Body></soapenv:Envelope>
   recvresp(): entered
   HTTP/1.1 500 Internal Server Error
   Server:
   SetError() #44: CommTCP_read: recv: Eine Verbindung zu einem fernen
   Anschluß wurde durch diesen
   http_close(): entered
   error message in tomcat:
   AxisFault
    faultCode: {[6]http://xml.apache.org/axis/}Client.NoSOAPAction
    faultSubcode:
    faultString: no SOAPAction header!
    faultActor:
    faultNode:
    faultDetail:
           {[7]http://xml.apache.org/axis/}stackTrace:no SOAPAction
   header!
           at
   org.apache.axis.transport.http.AxisServlet.getSoapAction(AxisServlet.j
   ava:1013)
           at
   org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:678
   )
           at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
           at
   org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase
   .java:327)
           at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
           at
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
   cationFilterChain.java:252)
           at
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
   lterChain.java:173)
           at
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
   lve.java:213)
           at
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
   lve.java:178)
           at
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
   va:126)
           at
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
   va:105)
           at
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
   e.java:107)
           at
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
   :148)
           at
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
   869)
           at
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
   ocessConnection(Http11BaseProtocol.java:664)
           at
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
   nt.java:527)
           at
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
   owerWorkerThread.java:80)
           at
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
   ol.java:684)
           at java.lang.Thread.run(Unknown Source)
           {[8]http://xml.apache.org/axis/}hostname:xxx
   no SOAPAction header!
           at
   org.apache.axis.transport.http.AxisServlet.getSoapAction(AxisServlet.j
   ava:1013)
           at
   org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:678
   )
           at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
           at
   org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase
   .java:327)
           at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
           at
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
   cationFilterChain.java:252)
           at
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
   lterChain.java:173)
           at
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
   lve.java:213)
           at
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
   lve.java:178)
           at
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
   va:126)
           at
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
   va:105)
           at
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
   e.java:107)
           at
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
   :148)
           at
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
   869)
           at
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
   ocessConnection(Http11BaseProtocol.java:664)
           at
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
   nt.java:527)
           at
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
   owerWorkerThread.java:80)
           at
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
   ol.java:684)
           at java.lang.Thread.run(Unknown Source)
   has anybody any experience with this?
   thanx in advance
   Mihael Knezevic
References
   1. http://schemas.xmlsoap.org/soap/envelope/
   2. http://www.w3.org/2001/XMLSchema
   3. http://www.w3.org/2001/XMLSchema-instance
   4. http://schemas.xmlsoap.org/soap/encoding/
   5. http://schemas.xmlsoap.org/soap/encoding/
   6. http://xml.apache.org/axis/}Client.NoSOAPAction
   7. http://xml.apache.org/axis/}stackTrace:no
   8. http://xml.apache.org/axis/}hostname:xxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------