8 Replies Latest reply on May 16, 2006 7:55 AM by song chunhua

    delphi7 + jbossws

    song chunhua Newbie

      hi,
      When I use HTTPRIO of delphi7 as ws client call the jbossws, i get the error from jbossws. Does jbossws is compatible with delphi7's HTTPRIO?

      thx.

        • 1. Re: delphi7 + jbossws
          Thomas Diesler Master

          JBossWS is compatible with the standard specs i.e. JSR-109, JAXRPC-1.0. BasicProfile-1.0, etc

          It is suposed to produce/consume SOAP messages that adhere to the abstract contract specified in wsdl + schema.

          So, as long as SOAP stack X does the same - they are interoperable


          • 2. Re: delphi7 + jbossws
            song chunhua Newbie

            hi, thomas,
            The same delphi client can interoperate with .Net, but can not interopetrate with jbossws. The soap data is below:

            the fail interoperate with delphi7:

            POST /AirExportEJB HTTP/1.1
            SOAPAction: ""
            Content-Type: text/xml; charset="utf-8"
            User-Agent: Borland SOAP 1.2
            Host: 192.168.154.142:8080
            Content-Length: 365
            Connection: Keep-Alive
            Cache-Control: no-cache

            <?xml version="1.0"?>
            <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SOAP-ENV:Body>

            <String_1>aaa</String_1>
            <String_2>bbb</String_2>

            </SOAP-ENV:Body>
            </SOAP-ENV:Envelope>


            HTTP/1.1 500 Internal Server Error
            Server: Apache-Coyote/1.1
            X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605131524)/Tomcat-5.5
            Set-Cookie: JSESSIONID=D59A5476B4BBF71942CC16A1BF0C37A5; Path=/
            Content-Type: text/xml;charset=UTF-8
            Transfer-Encoding: chunked
            Date: Mon, 15 May 2006 01:06:39 GMT
            Connection: close

            51
            <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header/>
            2a
            <env:Body><env:Fault>env:Client
            c

            78
            javax.xml.rpc.JAXRPCException: Cannot find child element: {http://org.jboss.ws/airexportejb/types}userLogin
            e

            c
            </env:Fault>
            b
            </env:Body>
            f
            </env:Envelope>
            0

            ************************************************************************************************
            the success interoperate with gsoap2.7

            POST /AirExportEJB HTTP/1.1
            Host: 192.168.154.142:8080
            User-Agent: gSOAP/2.7
            Content-Type: text/xml; charset=utf-8
            Content-Length: 278
            Connection: close
            SOAPAction: ""

            <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
            <SOAP-ENV:Body>
            <ns3:userLogin xmlns:ns3="http://org.jboss.ws/airexportejb/types">
            <String_1>aaa</String_1>
            <String_2>bbb</String_2>
            </ns3:userLogin>
            </SOAP-ENV:Body>
            </SOAP-ENV:Envelope>

            HTTP/1.1 200 OK
            Server: Apache-Coyote/1.1
            X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605131524)/Tomcat-5.5
            Set-Cookie: JSESSIONID=8643600E486E7A31477AEF842E0FE03F; Path=/
            Content-Type: text/xml;charset=UTF-8
            Date: Mon, 15 May 2006 01:08:28 GMT
            Connection: close

            <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header/><env:Body><ns1:userLoginResponse xmlns:ns1='http://org.jboss.ws/airexportejb/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>è????§??¨??·</ns1:userLoginResponse></env:Body></env:Envelope>

            • 3. Re: delphi7 + jbossws
              song chunhua Newbie

              hi,
              The error message from jboss:

              10:23:25,433 ERROR [SOAPFaultExceptionHelper] SOAP request exception
              javax.xml.rpc.JAXRPCException: Cannot find child element: {http://org.jboss.ws/airexportejb/types}userLogin
              at org.jboss.ws.binding.soap.SOAPBindingProvider.getParameterFromMessage(SOAPBindingProvider.java:809)
              at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindRequestMessage(SOAPBindingProvider.java:307)
              at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115)
              at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:234)
              at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.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.processConnection(Http11BaseProtocol.java:664)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)

              • 4. Re: delphi7 + jbossws
                Thomas Diesler Master

                Yes,

                <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SOAP-ENV:Body>
                 <String_1>aaa</String_1>
                 <String_2>bbb</String_2>
                </SOAP-ENV:Body>
                </SOAP-ENV:Envelope>
                


                is not a valid SOAP envelope.

                • 5. Re: delphi7 + jbossws
                  song chunhua Newbie

                  hi,


                  POST /AirExportEJB HTTP/1.1
                  SOAPAction: &quot;&quot;
                  Content-Type: text/xml; charset=&quot;utf-8&quot;


                  User-Agent: Borland SOAP 1.2

                  Host: 192.168.154.142:8080
                  Content-Length: 365
                  Connection: Keep-Alive
                  Cache-Control: no-cache

                  &lt;?xml version=&quot;1.0&quot;?&gt;
                  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema" xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance">

                  &lt;SOAP-ENV:Body&gt;

                  &lt;String_1&gt;aaa&lt;/String_1&gt;
                  &lt;String_2&gt;bbb&lt;/String_2&gt;

                  &lt;/SOAP-ENV:Body&gt;

                  &lt;/SOAP-ENV:Envelope&gt;


                  • 6. Re: delphi7 + jbossws
                    song chunhua Newbie

                    hi,
                    it should be :


                    <String_1>aaa</String_1>
                    <String_2>bbb</String_2>


                    when i post to this forum, it's not display there.

                    • 7. Re: delphi7 + jbossws
                      song chunhua Newbie

                      hi,
                      when i post this msg to the forum, it hidden some msg, so i add ' ' to < and >

                      '<'userLogin xmlns="http://org.jboss.ws/airexportejb"'>'
                      <String_1>aaa</String_1>
                      <String_2>bbb</String_2>
                      '<'/userLogin'>'

                      thx

                      • 8. Re: delphi7 + jbossws
                        song chunhua Newbie

                        hi,

                        anybody can use delphi7's HTTPRIO interoperate with jbossws1.0GA?

                        the different of delphi7 and gsoap2.7 is:

                        gsoap:
                        ns3:userLogin xmlns:ns3="http://org.jboss.ws/airexportejb/types"

                        delphi7:
                        userLogin xmlns="http://org.jboss.ws/airexportejb"

                        thx.