Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17670

Web Service Tester: JAX-WS request doesn't contain definition of SOAPAction

XMLWordPrintable

    • Hide

      STEP: Open Web Service Tester view
      STEP: Change GET to JAX-WS
      STEP: Click on the button Get from WSDL
      STEP: Insert WSDL URI (e.g. http://www.webservicex.net/BibleWebservice.asmx?WSDL)
      STEP: Select operation (e.g. GetBibleWordsByChapterAndVerse and keep port set to BibleWebserviceSoap)
      ASSERT: Appropriated request body was generated

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Header/>
        <soap:Body>
          <GetBibleWordsByChapterAndVerse xmlns="http://www.webserviceX.NET">
            <BookTitle>?</BookTitle>
            <chapter>0</chapter>
            <Verse>0</Verse>
          </GetBibleWordsByChapterAndVerse>
        </soap:Body>
      </soap:Envelope>
      

      STEP: Invoke web service call
      ASSERT: Response is [HTTP/1.1 200 OK]
      FAIL: It seems like the HTTP Header doesn't contain definition of SOAPAction
      Server response:

      javax.xml.ws.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
         at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
         at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
         at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
         at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
      
      Show
      STEP: Open Web Service Tester view STEP: Change GET to JAX-WS STEP: Click on the button Get from WSDL STEP: Insert WSDL URI (e.g. http://www.webservicex.net/BibleWebservice.asmx?WSDL ) STEP: Select operation (e.g. GetBibleWordsByChapterAndVerse and keep port set to BibleWebserviceSoap) ASSERT: Appropriated request body was generated <?xml version= "1.0" encoding= "UTF-8" standalone= "no" ?> <soap:Envelope xmlns:soap= "http: //schemas.xmlsoap.org/soap/envelope/" > <soap:Header/> <soap:Body> <GetBibleWordsByChapterAndVerse xmlns= "http: //www.webserviceX.NET" > <BookTitle>?</BookTitle> <chapter>0</chapter> <Verse>0</Verse> </GetBibleWordsByChapterAndVerse> </soap:Body> </soap:Envelope> STEP: Invoke web service call ASSERT: Response is [HTTP/1.1 200 OK] FAIL: It seems like the HTTP Header doesn't contain definition of SOAPAction Server response: javax.xml.ws.soap.SOAPFaultException: System .Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: . at System .Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System .Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message) at System .Web.Services.Protocols.SoapServerProtocol.Initialize() at System .Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean & abortProcessing)

            bfitzpat_rh Brian Fitzpatrick (Inactive)
            rrabara Radoslav RĂ¡bara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: