1 2 Previous Next 24 Replies Latest reply on Nov 18, 2008 1:03 PM by jeckles933 Go to original post
      • 15. Re: Problem consuming .net webservice with jbossws-3.0.1-nat

        Could you do the test?
        This problem with the release jbossws-3.0.1-native-2.0.4 doesn´t allow I update from release jboss-2.0.0.GA.
        Thanks.

        • 16. Re: Problem consuming .net webservice with jbossws-3.0.1-nat
          ropalka

           

          "claudio_br" wrote:

          You are using:
          os.write(msg.getBytes())


          Yes, because my default platform encoding is utf-8 (it applies to the call)
          "claudio_br" wrote:

          Please, try using jbossws 2.0.0.GA to same wsdl, should work.
          Try use POST of jbossws 2.0.0.GA in your test code.

          I don't know that you mean :( I was no able to reproduce your 501 problem with JBossWS 3.0.1 why I should try to reproduce it with JBossWS 2.0.0 GA when you say it works?

          • 17. Re: Problem consuming .net webservice with jbossws-3.0.1-nat

            Hi Richard,

            I asked you to try with the release jbossws-2.0.0.GA to prove that .net webservice is functioning normally and that the problem is in release jbossws-3.0.1-native-2.0.4, because the release jbossws-2.0.0.GA works.
            The .net webservice return always http code 200 to correct request. You got error 500 with release jbossws-3.0.1-native-2.0.4 is a problem too.
            Thanks

            • 18. Re: Problem consuming .net webservice with jbossws-3.0.1-nat
              ropalka

              Sorry, but I'm getting the same result with JBossWS 2.0.0 :(

              POST /webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage HTTP/1.1
              SOAPAction: "http://webservices.maplink2.com.br/getToken"
              Content-Type: text/xml; charset=UTF-8
              JBoss-Remoting-Version: 22
              User-Agent: JBossRemoting - 2.2.2.SP1 (Bluto)
              Host: webservices.maplink2.com.br
              Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
              Connection: keep-alive
              Content-Length: 227
              
              <env:Envelope xmlns:env='http://www.w3.org/2003/05/soap-envelope'><env:Header></env:Header><env:Body><getToken xmlns="http://webservices.maplink2.com.br"><user>user</user><pwd>password</pwd></getToken></env:Body></env:Envelope>
              
              HTTP/1.1 500 Internal Server Error
              Date: Fri, 18 Apr 2008 17:52:03 GMT
              Server: Microsoft-IIS/6.0
              X-Powered-By: ASP.NET
              X-AspNet-Version: 2.0.50727
              Cache-Control: private
              Content-Type: application/soap+xml; charset=utf-8
              Content-Length: 743
              
              <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Autentica....o n..o autorizada, por favor, entre em contato com a MapLink.</soap:Text></soap:Reason><soap:Node>http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage</soap:Node><detail><getToken xmlns="http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage" /></detail></soap:Fault></soap:Body></soap:Envelope>


              • 19. Re: Problem consuming .net webservice with jbossws-3.0.1-nat

                Hi Richard

                Your last response is correct! You got error 500 because user and password are fake. I can not send my user and password of the system.
                The original message is:

                Autentica....o n..o autorizada, por favor, entre em contato com a MapLink.


                The message translated is:

                Authentication unauthorized, please contact the MapLink


                The framework jbossws transform error 500 in my client to:

                javax.xml.ws.soap.SOAPFaultException: Autenticação não autorizada, por favor, entre em contato com a MapLink.


                The response obtained with the version jbossws-3.0.1-native-2.0.4 is the same as obtained with the release jbossws-2.0.0.GA?
                Why I got error 501?
                Thanks


                • 20. Re: Problem consuming .net webservice with jbossws-3.0.1-nat
                  ropalka

                   

                  "claudio_br" wrote:

                  The response obtained with the version jbossws-3.0.1-native-2.0.4 is the same as obtained with the release jbossws-2.0.0.GA?

                  Yes
                  "claudio_br" wrote:

                  Why I got error 501?
                  Thanks

                  I wonder too why you're getting 501. I'm not able to tell you :( I verified all the following scenarios but without success to reproduce your 501 issue:

                  message with Content-Length
                  chunked message
                  message without query parameter
                  
                  


                  • 21. Re: Problem consuming .net webservice with jbossws-3.0.1-nat

                    Hi Richard,

                    The problem with 501 persist.
                    I created a test client to simulate my problem and sended to your email. Please, can you run my test client?

                    Thanks

                    • 22. Re: Problem consuming .net webservice with jbossws-3.0.1-nat

                      Sorry, sorry, sorry ...
                      I found the problem.
                      I looked the request and response (previous post) again and I saw:

                      Generated Thu, 17 Apr 2008 17:02:56 GMT by fw0-sp.buscape-local.com.br (squid/2.6.STABLE16)


                      The Squid in my local network blocked the access. I tested in another machine out of my local network and worked.
                      Richard thank you for your help and patience.

                      • 23. Re: Problem consuming .net webservice with jbossws-3.0.1-nat
                        felipepontes

                        Claudio, I'm facing the same problem. I need consume web services behind a proxy server. Did you resolved it?

                        Felipe.

                        • 24. Re: Problem consuming .net webservice with jbossws-3.0.1-nat
                          jeckles933

                          its this

                          your working message has
                          Content-Length: bla

                          broken one:
                          Transfer-Encoding: chunked

                          looks like not everybody supports chunked, now - how do we turn of chunking??

                          1 2 Previous Next