3 Replies Latest reply on Dec 31, 2006 12:41 AM by pkovgan

    I have problem to receive complex parameters , BP Interface,

    pkovgan

      Hi,

      Could someone help me ?

      My BP is simple:

      Interface has doSome(parameter) method, where parameter is complex object.

      First assign after receive must pass this object to invoke of next webservice without any changes in parameter structure.


      1)What should I do?
      2)Is there some example?
      3)Should I create new Type for this parameter in WSDL of BP?
      Or I can use type declared in WSDL of webservice, which I'm going to invoke?
      4)How should I write assign? Per attribute copy or entire object copy?

      I'll appreciate any help.
      Thanks in advance.









        • 1. Re: I have problem to receive complex parameters , BP Interf
          aguizar

          1) Depends on whether the type of the message and/or part match. If the received message matches the input message of the subsequent invocation, the assign is unnecessary. If the messages differ and the type of the part matches, then you need to copy the part from the received message to the part of the input message.

          See BPEL4WS 1.1, section 9.3.1 Type compatibility in assignment for details.

          2) Keep reading up to section 9.3.2 Assignment example

          3) No. You can reuse either the WSDL message or the complex type for the part of your new message.

          4) You can copy entire XML elements, parts or even messages provided the source and the destination have compatible types.

          Hope this helps. Still, I'd like to take a look at the WSDL documents for the process and the partner service just in case I missed something.

          • 2. Re: I have problem to receive complex parameters , BP Interf
            pkovgan

            Hi Alex,

            A lot of thanks for your efforts to help me!

            So I did understand that in general I should not have problem to pass complex parameter or its part to subsequent webservice.

            I have just one additional question in this part:
            Do you mean I have not use and if process message is exactly like a first service call message?

            I actually tried several things including (may be not exactly) those that you have proposed, but I anyway had errors , so I'll send you my bpel and wsdl for inspection. It seems I have more general problem of visibility of my services.

            I very appreciate your help and wish you good luck and good health and all my best wishes in new year!

            • 3. Re: I have problem to receive complex parameters , BP Interf
              pkovgan

              Repeated, cause previous message does not display correctly.
              This one is right one.

              Hi Alex,

              A lot of thanks for your efforts to help me!

              So I did understand that in general I should not have problem to pass complex parameter or its part to subsequent webservice.

              I have just one additional question in this part:
              Do you mean I have not use

              receive
              and
              assign
              if process message is exactly like a first service call message?

              I actually tried several things including (may be not exactly) those that you have proposed, but I anyway had errors , so I'll send you my bpel and wsdl for inspection. It seems I have more general problem of visibility of my services.

              I very appreciate your help and wish you good luck and good health and all my best wishes in new year!