2 Replies Latest reply on Apr 19, 2011 6:39 AM by cheaway

    Error calling HTTPS Webservice




      I am experiencing some problems accessing a webservice via HTTPS after having upgraded from JBoss 5.1.0 to 6.0.0.Final.

      The keystore and keystorePassword are specified as java System properties like before. If I use the generated webservice stubs through a standalone client, everything works fine. Hoever, once I deploy my ejb (which accesses the webservice) in the server, I get loads of the following warnings:


      {code}2011-04-18 15:56:40,989 WARN  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (Thread-222 (group:HornetQ-client-global-threads-2007523556)) Could not unwrap Operation {http://services.someurl.com/something}submitGetSomethingRequest to match method "public abstract void com.myconnector.Connector.submitGetSomethingRequest(com.myconnector.GetSomethingHeaders,com.myconnector.Fields,javax.xml.ws.Holder,javax.xml.ws.Holder,javax.xml.ws.Holder)"{code}


      and eventually this:




      2011-04-18 15:56:41,022 DEBUG [org.apache.cxf.transport.http.HTTPConduit] (Thread-222 (group:HornetQ-client-global-threads-2007523556)) Sending POST Message with Headers to https://services.someurl.com/something Conduit :{http://services.someurl.com/something}PerSecurityWSPort.http-conduit

      Content-Type: text/xml; charset=UTF-8



      2011-04-18 15:56:41,022 DEBUG [org.apache.cxf.transport.http.HTTPConduit] (Thread-222 (group:HornetQ-client-global-threads-2007523556)) SOAPAction: ""

      2011-04-18 15:56:41,022 DEBUG [org.apache.cxf.transport.http.HTTPConduit] (Thread-222 (group:HornetQ-client-global-threads-2007523556)) Accept: */*

      2011-04-18 15:56:41,022 DEBUG [org.apache.cxf.transport.http.HTTPConduit] (Thread-222 (group:HornetQ-client-global-threads-2007523556)) No Trust Decider for Conduit '{http://services.someurl.com/something}PerSecurityWSPort.http-conduit'. An afirmative Trust Decision is assumed.

      2011-04-18 15:56:41,111 DEBUG [org.apache.cxf.transport.http.HTTPConduit] (Thread-222 (group:HornetQ-client-global-threads-2007523556)) Response Code: 500 Conduit: {http://services.someurl.com/something}PerSecurityWSPort.http-conduit

      2011-04-18 15:56:41,111 DEBUG [org.apache.cxf.transport.http.HTTPConduit] (Thread-222 (group:HornetQ-client-global-threads-2007523556)) Content length: 457

      2011-04-18 15:56:41,111 DEBUG [org.apache.cxf.transport.http.HTTPConduit] (Thread-222 (group:HornetQ-client-global-threads-2007523556)) Header fields:

          null: [HTTP/1.1 500 Validation Error]

          Date: [Mon, 18 Apr 2011 13:56:41 GMT]

          Content-Length: [457]

          Content-Type: [text/xml; charset=utf-8]

          Connection: [close]

          Server: [ACE XML Gateway]



      Apparently, something is wrong with my request! I would love to simply log whatever is being send and received to and from the webservice, but so far, I have been unable to find anything on the internet about how to enable logging the SOAP in- and output in JBoss 6.


      Any help is greatly apreciated!




        • 1. Error calling HTTPS Webservice

          Hi Che,

          it seems like a problem on the server-side. Have you tried to access your Webservice via plain HTTP or have you looked into the Webservices' Server Log?


          Best regards,


          • 2. Error calling HTTPS Webservice

            Hi Mark,


            Thanks for you quick reply. I spent quite some time on this yesterday and it turns out that if I generate sources using Apache CFX directly (as opposed to using 'jaxws-maven-plugin'), it works just fine. This one will go on my 'keep in mind'-list...