Topic
9 replies Latest Post - ‏2012-01-19T21:03:05Z by kolban
Dev.
Dev.
1 Post
ACCEPTED ANSWER

Pinned topic BPM 7.5.1 inbound SOAPs are failing

‏2012-01-16T23:56:16Z |
I must be missing something in here but not sure what...

Was trying to test the inbound SOAP web services for BPM 7.5.1 and getting different errors for different operations.
Was expecting both of them to go through...

What I did:
1. published the zip containing the wsdl-s and xsd-s (identifying the SOAP URL address in the BPMWS.wsdl)

2. Using the wsdl explorer and the WebAPIService.wsdl (using the SOAP address identified at step 1 above) from the sample C:\IBM\BPM\v7.5\BPM\Lombardi\web-api\samples\client trying to call some BPM services

3. Using the transport URL structure (http://HOST:PORT/bpmjaxws/BPMWSAPISoapService)

See the attached SOAP request/responses for the following operations:
-TestConnection (The endpoint reference (EPR) for the Operation not found is...)
-ExecuteSearch (CWWSS6500E: There is no caller identity candidate that can be used to login.)
Updated on 2012-01-19T21:03:05Z at 2012-01-19T21:03:05Z by kolban
  • kolban
    kolban
    3314 Posts
    ACCEPTED ANSWER

    Re: BPM 7.5.1 inbound SOAPs are failing

    ‏2012-01-17T00:52:48Z  in response to Dev.
    Where are you sending the SOAP message? What is the exact hostname, port and local path to which you are sending the request? It may also be the case that "UsernameToken" security is not supported ... my notes seem to say that I have tested this only with HTTP Basic Auth security.

    What does "http://HOST:PORT/bpmjaxws/BPMWSAPISoapService" mean? Where are you finding this reference?

    Neil
    • Dev_
      Dev_
      4 Posts
      ACCEPTED ANSWER

      Re: BPM 7.5.1 inbound SOAPs are failing

      ‏2012-01-17T20:19:09Z  in response to kolban
      Hi Neil,

      thank you for taking time and replying on this.
      Regarding your questions this is what I know:

      >Where are you sending the SOAP message? What is the exact hostname,
      >port and local path to which you are sending the request?
      >What does "http://HOST:PORT/bpmjaxws/BPMWSAPISoapService" mean? Where are you finding this reference?

      The hostname and port are masked in my posting (in my local env., is matching with what I get in the published wsdl zip (IBM_BPM_WebAPI_MASKED_HOSTNAME_server1_WSDLFiles.zip), the zip contains among other files the BPMWS.wsdl, which in turn contains the SOAP service location: wsdl:service -> soap:address location "http://MASKED_HOST:MASKED_PORT/bpmjaxws/BPMWSAPISoapService").

      I have a local installation of BPM 7.5.1 Express.
      The IBM_BPM_WebAPI_MASKED_HOSTNAME_server1_WSDLFiles.zip file originates from my local installed BPM instance, by using WAS admin console, by publishing the zip containing the wsdl/xsd.
      WAS admin console path:
      Applications -> Application Tpes -> WebSphere enterprise applications -> Enterprise Applications > IBM_BPM_WebAPI_MASKED_HOSTNAME_server1 > Publish WSDL files
      >It may also be the case that "UsernameToken" security is not supported ... my notes seem to say
      >that I have tested this only with HTTP Basic Auth security.

      "ExecuteSearch" (CWWSS6500E: There is no caller identity candidate that can be used to login.)
      Meanwhile I got this working already. For this sample soap, I missed to wrap the UsernameToken with the <wss:Security> tag. That solved it.
      Now I'm getting identical error message with the TestConnection SOAP service (see attachment in my initial posting):
      ---The endpoint reference (EPR) for the Operation not found is http://MASKED_HOSTNAME:MASKED_PORT/bpmjaxws/BPMWSAPISoapService and the WSA Action = http://webapi.lombardisoftware.com/ExecuteSearch. If this EPR was previously reachable, please contact the server administrator.---
      To recap, at this point, the only outstanding issue is the above mentioned error message, this one I don't know how to solve it: "The endpoint reference (EPR) for the Operation not found....."
  • GaryS
    GaryS
    81 Posts
    ACCEPTED ANSWER

    Re: BPM 7.5.1 inbound SOAPs are failing

    ‏2012-01-18T00:03:45Z  in response to Dev.
    Let me through my "2 cents" into this game...

    I noted the following error:
    
    security.wssecurity.WSSContextImpl.s02: com.ibm.websphere.security.WSSecurityException:
    


    I'm assuming that you're calling the service with correct credentials - right?

    For this type of work, I typically send all calls through a proxy+monitor. This way I can review all traffic to/from the server. Goal being to see exactly what went wrong.

    Recommendation:
    1) setup TCP/IP Mon (eclipse)
    2) redirect traffic to tcp/ip-mon
    3) review HTTP headers and soap msg contents.

    DO NOT use soapUI for this type of debugging as this tool caches credentials!

    Gary Samuelson
    • Dev_
      Dev_
      4 Posts
      ACCEPTED ANSWER

      Re: BPM 7.5.1 inbound SOAPs are failing

      ‏2012-01-18T15:41:30Z  in response to GaryS
      Thanks Gary for your reply on this, good tips.
      The security problem was solved already (mentioned this in my follow up post).
      • kolban
        kolban
        3314 Posts
        ACCEPTED ANSWER

        Re: BPM 7.5.1 inbound SOAPs are failing

        ‏2012-01-18T15:49:21Z  in response to Dev_
        Dev,
        Can you post a new entry in this thread bringing together all the parts. Basically, assume that there was no previous posting in the thread and write one new post that describes the problem and what you have found that you are currently experiencing. It will make it so much easier for folks who may potentially be able to respond.

        Neil
        • Dev_
          Dev_
          4 Posts
          ACCEPTED ANSWER

          Re: BPM 7.5.1 inbound SOAPs are failing

          ‏2012-01-18T18:09:09Z  in response to kolban
          Sure Neil, let me try to sum up what I have:

          Was trying to test the inbound SOAP web services for BPM 7.5.1 Express, expecting to see this SOAP request going through properly, but it seems that something is wrong on the way (either in my SOAP request or on the BPM web service implementation side)...

          See the attached SOAP request/responses for details on:
          -TestConnection (The endpoint reference (EPR) for the Operation not found is...)
          -ExecuteSearch (The endpoint reference (EPR) for the Operation not found is...)
          What I did:
          1. Accessed the IBM_BPM_WebAPI_MASKED_HOSTNAME_server1_WSDLFiles.zip file that originates from my local installed BPM instance (using WAS admin console).

          WAS admin console path:
          Applications -> Application Tpes -> WebSphere enterprise applications -> Enterprise Applications > IBM_BPM_WebAPI_MASKED_HOSTNAME_server1 > Publish WSDL files

          In the published wsdl zip (IBM_BPM_WebAPI_MASKED_HOSTNAME_server1_WSDLFiles.zip), it contains among other files the BPMWS.wsdl, which in turn contains the SOAP service location: wsdl:service -> soap:address location "http://MASKED_HOST:MASKED_PORT/bpmjaxws/BPMWSAPISoapService").
          Note that my real hostname and port values were replaced in my post with MASKED_HOST and MASKED_PORT .

          2. Composing and testing my SOAP
          -I'm using Generic Service Client (from RSA)
          -had the transport URL set to "http://MASKED_HOST:MASKED_PORT/bpmjaxws/BPMWSAPISoapService" (using the SOAP address location identified in step 1 above)
          -taking the sample wsdl (C:\IBM\BPM\v7.5\BPM\Lombardi\web-api\samples\client\WebAPIService.wsdl) was trying to call the TestConnection and ExecuteSearch BPM web services

          3. Observe that by default, when invoking the SOAP requests (see attached file for full SOAP req./res.), the Generic Service Client sets up the SOAP request header with SOAPAction with value http://webapi.lombardisoftware.com/TestConnection (when invoking TestConnection) and
          SOAPAction with value http://webapi.lombardisoftware.com/ExecuteSearch (when invoking ExecuteSearch).
          Was doing a variety of tests on this, poking around the SOAPAction value name space (being consistent in the same time, by updating the name space for the related SOAP message sections as well), but there was no change in the nature of error message received.
          Was getting the same error message ("The endpoint reference (EPR) for the Operation not found...") for the other possible name space-s published in the wsdl as well.
          Did anyone got any SOAP calls working with BPM 7.5.1 Express?
          If so, can you guys point me what am I missing, or share with us the captured SOAP req./res. including related details (structure of the SOAP address location if different from what I have above, the SOAP req. header values used, etc.)
          • kolban
            kolban
            3314 Posts
            ACCEPTED ANSWER

            Re: BPM 7.5.1 inbound SOAPs are failing

            ‏2012-01-18T20:56:22Z  in response to Dev_
            Dev,
            About a year ago, I did a lot of study on Web Services interaction with the product (at that time it was WLE). I wrote up all my notes and have made them available. See page 593 of the PDF discussed here:

            https://www.ibm.com/developerworks/forums/thread.jspa?threadID=403721

            I'm wondering if you have seen these notes? The first thing that strikes me as unusual is where you are getting the WSDL? In my notes, I get the WSDL from:

            http://<Hostname>:<Port>/webapi/services/WebAPIService?wsdl

            And am wondering why you are not doing the same?

            I don't have a quick answer for your questions but am prepared to happily exchange thoughts with you on this thread. First thing I'll ask is that we both review my notes in the PDF and see if that starts to shed some light on the puzzles.

            Neil
            • Dev_
              Dev_
              4 Posts
              ACCEPTED ANSWER

              Re: BPM 7.5.1 inbound SOAPs are failing

              ‏2012-01-19T20:48:04Z  in response to kolban
              Neil, I didn't know about your mentioned book. Thank you for the pointers to the related paragraph. It's really useful I have to say and clears up the picture. I got my SOAPs working now.

              Let me tell you where I was coming from:
              There was a doc. section I came across by searching on InfoCenter (http://publib.boulder.ibm.com/infocenter/dmndhelp/v7r5m1/index.jsp?topic=%2Fcom.ibm.wbpm.bpc.doc%2Ftopics%2Ft6sca_apiexportingartifacts.html), which describes quite a common way of getting the wsdls (TIPICALLY having all the info required, including the soap address location, for a client to make web service calls with). At least this was my assumption that I was going with.

              Lately, beside the above mentioned InfoCenter page, there is another section (http://publib.boulder.ibm.com/infocenter/dmndhelp/v7r5m1/index.jsp?topic=%2Fcom.ibm.wbpm.bpc.doc%2Ftopics%2Fcdev_wsapi_webserviceapi.html) converging to the content you pointed me to in your book.

              All in all, I find your document more consumable for a novice person using BPM, whereas the InfoCenter section (http://publib.boulder.ibm.com/infocenter/dmndhelp/v7r5m1/index.jsp?topic=%2Fcom.ibm.wbpm.bpc.doc%2Ftopics%2Ft6sca_apiexportingartifacts.html) can be quite confusing at times.
              • kolban
                kolban
                3314 Posts
                ACCEPTED ANSWER

                Re: BPM 7.5.1 inbound SOAPs are failing

                ‏2012-01-19T21:03:05Z  in response to Dev_
                Hi Dev,
                I'm delighted you got the SOAP messages working for you. That is great news. I appreciate the kind words about how you were able to get value from my PDF book of notes. That is always my desire and goal. Be assured that myself and others like me are always watching this forum and try and respond as quickly as possible. I have every faith that you too will soon be posting answers to other folks questions. No question is too simple or too hard, too daft or too controversial. Our common goal is to be a community of IBM BPM users and help each others.

                Welcome to the forums .... :-)

                Neil