Topic
9 replies Latest Post - ‏2013-02-11T17:27:09Z by SystemAdmin
SystemAdmin
SystemAdmin
7615 Posts
ACCEPTED ANSWER

Pinned topic Webservice Integration Fails

‏2013-01-30T05:49:26Z |
Hi All,

We are working on IBM BPM 7.5.In one of our requirement we need to pass details to an asp system where the system will create order by taking these values as inputs.Every time we hit it it ends of with failed response.Below is request and response(please check attached file) for the same.Can any one help us on this.

Request :

http://csouspro3mgt1.pb.com/applic/opt/bv1to1/pb_test/scripts/pw_cso_create_new_order_and_meter_001.asp?USERNAME=TestRish_89006&PASSWORD=password&EMAIL_ADUSERNAME=TestRish_89006&PASSWORD=password&EMAIL_ADDRESS=pb6000@pb.com&
ORDER_NUMBER=89006005&ECAN=98777766554&METER_LICENSE=&ORIGIN_ZIP=06484&PBP_ACCT_NUMBER=&DRESS=pb6000@pb.com&ORDER_NUMBER=89006005&ECAN=98777766554&METER_LICENSE=&ORIGIN_ZIP=06484&PBP_ACCT_NUMBER=&

MKTG_PROGRAM=POSTALIBDS&AUTHORIZE_TIMEOUT=180&MKTG_EFFECTIVE_DATE=20030922&DEVICEID=&DISTRICT_NUMBER=124&POST_OFFICE_NUMBER=06484&

ACCOUNT_CONTACT_PHONE_NUMBER=2039243601&FREE_POSTAGE_AMOUNT=0&INSTALL_ADDRESS_NAME1=Test_USPS_User&INSTALL_ADDRESS_NAME2=&INSTALL_ADDRESS_NAME3=&

INSTALL_ADDRESS_STREET1=35%20WaterView%20Dr&INSTALL_ADDRESS_STREET2=&INSTALL_ADDRESS_CITY=Shelton&INSTALL_ADDRESS_STATE=CT&INSTALL_ADDRESS_ZIP=06484&

STATEMT_ADDRESS_NAME1=Test_USPS_User&STATEMT_ADDRESS_NAME2=&STATEMT_ADDRESS_NAME3=&STATEMT_ADDRESS_STREET1=35%20WaterView%20Dr&STATEMT_ADDRESS_STREET2=&

STATEMT_ADDRESS_CITY=Shelton&STATEMT_ADDRESS_STATE=CT&STATEMT_ADDRESS_ZIP=06484&AUTHORIZE_MIN_AMOUNT=0.01&AUTHORIZE_MAX_AMOUNT=500.0000&

AUTHORIZE_MAX_POSTAGE=200&GOVT_NAT_ACCT_GRP_NUM=900&ITEM_CODE=P400&QUANTITY=1&METER_FREE_RESET_CODE=1&METER_FREE_RESET_QUANTITY=0&ADVANCE_CODE=1&

AGREEMENT_NUMBER=&CUST_NAT_ACCT_NUMBER=&SIC_CODE=&WITHDRAWN_ITEM_CODE=%20&WITHDRAWN_SERIAL_NUM=0&CHECK_NUMBER=&CHECK_AMOUNT=&CHECK_DATE=&

CONTRACT_NUMBER=&CONTRACT_EXP_DATE=&PBP_PURCH_PWR_FLAG=&PBP_PURCH_PWR_CREDIT=0.0000&PBP_CREDIT_CARD_NUM=&PBP_CREDIT_CARD_EXP_DATE=&

CREDIT_CARD_LAST_NAME=&CREDIT_CARD_FIRST_NAME=&CREDIT_CARD_MID_NAME=&CREDIT_CARD_COMPANY_NAME=&PBP_CR_CARD_EFFECTIVE_DATE=&PBP_CR_CARD_THRU_DATE=&

PBP_PROD_LINE=&PBP_CR_CARD_STATUS=

Thanks !
Updated on 2013-02-11T17:27:09Z at 2013-02-11T17:27:09Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    7615 Posts
    ACCEPTED ANSWER

    Re: Webservice Integration Fails

    ‏2013-01-30T15:49:31Z  in response to SystemAdmin
    Your writeup may be more readable if you put "curly-brace code curly-brace" around the code/xml portions as that will keep the forum from stripping out your special characters. Its a bit hard to read what you wrote, but from the picture you sent I'm taking it this isn't really a traditional WebService call, meaning your aren't starting with a WSDL, but rather you are posting to a form that the ASP app is hosting. Is that correct? If so, what does the ASP team say they are seeing when you do that post?

    Andrew Paier | Director of Special Operations | BP3 Global, Inc. www.bp-3.com
    • SystemAdmin
      SystemAdmin
      7615 Posts
      ACCEPTED ANSWER

      Re: Webservice Integration Fails

      ‏2013-01-31T13:41:22Z  in response to SystemAdmin
      Thanks for your response Andrew.Yes It's not a webservice call rather an HTTP url we hit .We discovered internally it calls another service which fails.In process to get the log for both the systems.
      • SystemAdmin
        SystemAdmin
        7615 Posts
        ACCEPTED ANSWER

        Re: Webservice Integration Fails

        ‏2013-02-07T09:13:40Z  in response to SystemAdmin
        Andrew,

        The http call we make fails when we do it from BPM.When we simply put thr URL in browser we get response.Any Idea why it fails ? Is there anything we need to check before making the HTTP Post ?

        Below is the URL we form

        http://csouspro3mgt1.pb.com/applic/opt/bv1to1/pb_test/scripts/pw_cso_create_new_order_and_meter_001.asp?USERNAME=TestUS_89006043&PASSWORD=password&EMAIL_ADDRESS=pb@pb.com&ORDER_NUMBER=89006043&ECAN=98777766554&METER_LICENSE=9898989898&ORIGIN_ZIP=06484&PBP_ACCT_NUMBER=60556438&MKTG_PROGRAM=POSTALIBDS&AUTHORIZE_TIMEOUT=180&MKTG_EFFECTIVE_DATE=20030922&DEVICEID=&DISTRICT_NUMBER=124&POST_OFFICE_NUMBER=06484&ACCOUNT_CONTACT_PHONE_NUMBER=2039243601&FREE_POSTAGE_AMOUNT=0&INSTALL_ADDRESS_NAME1=Test_USPS_User&INSTALL_ADDRESS_NAME2=&INSTALL_ADDRESS_NAME3=&INSTALL_ADDRESS_STREET1=35%20WaterView%20Dr&INSTALL_ADDRESS_STREET2=&INSTALL_ADDRESS_CITY=Shelton&INSTALL_ADDRESS_STATE=CT&INSTALL_ADDRESS_ZIP=06484&STATEMT_ADDRESS_NAME1=Test_USPS_User&STATEMT_ADDRESS_NAME2=&STATEMT_ADDRESS_NAME3=&STATEMT_ADDRESS_STREET1=35%20WaterView%20Dr&STATEMT_ADDRESS_STREET2=&STATEMT_ADDRESS_CITY=Shelton&STATEMT_ADDRESS_STATE=CT&STATEMT_ADDRESS_ZIP=06484&AUTHORIZE_MIN_AMOUNT=0.01&AUTHORIZE_MAX_AMOUNT=500.0000&AUTHORIZE_MAX_POSTAGE=200&GOVT_NAT_ACCT_GRP_NUM=900&ITEM_CODE=P400&QUANTITY=1&METER_FREE_RESET_CODE=1&METER_FREE_RESET_QUANTITY=0&ADVANCE_CODE=1&AGREEMENT_NUMBER=&CUST_NAT_ACCT_NUMBER=&SIC_CODE=&WITHDRAWN_ITEM_CODE=%20&WITHDRAWN_SERIAL_NUM=0&CHECK_NUMBER=&CHECK_AMOUNT=&CHECK_DATE=&CONTRACT_NUMBER=&CONTRACT_EXP_DATE=&PBP_PURCH_PWR_FLAG=&PBP_PURCH_PWR_CREDIT=0.0000&PBP_CREDIT_CARD_NUM=&PBP_CREDIT_CARD_EXP_DATE=&CREDIT_CARD_LAST_NAME=&CREDIT_CARD_FIRST_NAME=&CREDIT_CARD_MID_NAME=&CREDIT_CARD_COMPANY_NAME=&PBP_CR_CARD_EFFECTIVE_DATE=&PBP_CR_CARD_THRU_DATE=&PBP_PROD_LINE=&PBP_CR_CARD_STATUS=
        Thanks !
        • OfirShani1
          OfirShani1
          52 Posts
          ACCEPTED ANSWER

          Re: Webservice Integration Fails

          ‏2013-02-07T21:08:50Z  in response to SystemAdmin
          One thing that must be checked is if the BPM machine can make the WSDL call. Maybe firewall rules or IPTables are defined so that the webservice might not work especifically from the BPM environment.

          If your PC can access the WSDL it doesnt mean that the network which BPM is installed can access the same areas.

          Just a sugestion
        • SystemAdmin
          SystemAdmin
          7615 Posts
          ACCEPTED ANSWER

          Re: http integration fails

          ‏2013-02-07T21:27:15Z  in response to SystemAdmin
          Okay. so lets be clear, this is not a Web Service integraiton, this is a pure web call. So the question is - how are you making this call. You can't use the Webservice integration widget to do this, it doesn't support this scenario. There was a connector in the old professional service toolkit to do an http post call, which I think is what you need. So what are you doing in your Process Designer to call this?

          Andrew Paier | Director of Special Operations | BP3 Global, Inc. www.bp-3.com
          • SystemAdmin
            SystemAdmin
            7615 Posts
            ACCEPTED ANSWER

            Re: http integration fails

            ‏2013-02-08T07:39:41Z  in response to SystemAdmin
            We are using a server script to make a http call.Attached file is the detail code and response .My concern is the response is different if we try from BPM and browser.Please suggest.

            Thanks!
            • SystemAdmin
              SystemAdmin
              7615 Posts
              ACCEPTED ANSWER

              Re: http integration fails

              ‏2013-02-11T10:24:46Z  in response to SystemAdmin
              Any Idea how to go about this ?

              Thanks !
              • SystemAdmin
                SystemAdmin
                7615 Posts
                ACCEPTED ANSWER

                Re: http integration fails

                ‏2013-02-11T15:57:34Z  in response to SystemAdmin
                You are getting a response, so if you are getting different responses from the name input using different calling mechanisms you need to get somone on the system to tell you what is going on from their perspective. Computers are really good at giving the same response given the same input. So if you are getting different responses, then you must be giving them different inputs. If it was me, I would put all the code you are doing in live connect into a true java class. This will allow you to test that call independent of BPM. If you get different responses from the same java code when you test on its own vs. testing in BPM, that would begin to tell you where to look. I'll bet if you do this you will see that the responses are the same, and it is your java code that is causing the problem.

                Andrew Paier | Director of Special Operations | BP3 Global, Inc. www.bp-3.com
                • SystemAdmin
                  SystemAdmin
                  7615 Posts
                  ACCEPTED ANSWER

                  Re: http integration fails

                  ‏2013-02-11T17:27:09Z  in response to SystemAdmin
                  Thanks a lot Andrew.I will proceed the way you suggested.