Home

Results 1 to 8 of 8

Thread: Integration activity,

Hybrid View

  1. #1
    magnus NNTP User

    Integration activity,


    Hello !
    I can't get the Integration activity to work in a in a flow... I have
    collected some questions and I hope someone can help me find out how it
    works ..


    - To be able to simulate all action in a correct way, do I need to
    remove namespace in the input document, and paste it in the Input
    window ? (The Input document generated from wsdl contains namespaces.)

    -
    - Is there a connection between the Pre activity data mapping and the
    Input document in Integration activity when I simulate in Designer ?
    -
    - When I executes the actions from top, and comes to
    "/****Autogenerated namespace creation****/" then it resets the input
    document I previously pasted into the Input window to the wsdl
    generated document. I must do something wrong ?
    - I have also tried to paste my Input document in to the Messages
    window and then "Regenerate code in the action model page" but that
    destroys my actions.
    - When am I supposed to use "Regenerate code in the action model
    page"?
    -


    thank you!
    //Magnus


    --
    magnus
    ------------------------------------------------------------------------
    magnus's Profile: https://forums.netiq.com/member.php?userid=283
    View this thread: https://forums.netiq.com/showthread.php?t=52630


  2. #2
    Join Date
    Dec 2007
    Location
    Brooklyn, NY
    Posts
    6,213

    Re: Integration activity,

    On 1/20/2015 10:54 AM, magnus wrote:
    >
    > Hello !
    > I can't get the Integration activity to work in a in a flow... I have
    > collected some questions and I hope someone can help me find out how it
    > works ..
    >
    >
    > - To be able to simulate all action in a correct way, do I need to
    > remove namespace in the input document, and paste it in the Input
    > window ? (The Input document generated from wsdl contains namespaces.)
    >
    > -
    > - Is there a connection between the Pre activity data mapping and the
    > Input document in Integration activity when I simulate in Designer ?
    > -
    > - When I executes the actions from top, and comes to
    > "/****Autogenerated namespace creation****/" then it resets the input
    > document I previously pasted into the Input window to the wsdl
    > generated document. I must do something wrong ?
    > - I have also tried to paste my Input document in to the Messages
    > window and then "Regenerate code in the action model page" but that
    > destroys my actions.
    > - When am I supposed to use "Regenerate code in the action model
    > page"?


    Have you read any of these? I do not have specific answers to your
    questions, but perhaps some of the walk throughs will help you.

    http://www.novell.com/communities/no...resting-errors

    http://www.novell.com/communities/no...orkflow-part-1

    http://www.novell.com/communities/no...orkflow-part-2

    http://www.netiq.com/communities/coo...pproach-part-1

    http://www.netiq.com/communities/coo...pproach-part-2




  3. #3
    magnus NNTP User

    Re: Integration activity,


    >
    > Have you read any of these? I do not have specific answers to your
    > questions, but perhaps some of the walk throughs will help you.
    >
    > http://tinyurl.com/q2vxyy9
    >
    > http://tinyurl.com/k6odkul
    >
    > http://tinyurl.com/oa6sfns
    >
    > http://tinyurl.com/q7ehvrc
    >
    > http://tinyurl.com/ndrq6zl


    Geoffrey,
    Of course, I have read your amazing stories. I really appreciate your
    dedication and work.

    But I still can't figure out how to do a ws query in a integration
    activity in designer if the ws needs some values.

    Do you know which logging option I should turn on to see the input /
    output XML document at server side?

    thank you !
    Magnus


    --
    magnus
    ------------------------------------------------------------------------
    magnus's Profile: https://forums.netiq.com/member.php?userid=283
    View this thread: https://forums.netiq.com/showthread.php?t=52630


  4. #4
    Join Date
    Dec 2007
    Location
    Brooklyn, NY
    Posts
    6,213

    Re: Integration activity,

    > Geoffrey,
    > Of course, I have read your amazing stories. I really appreciate your
    > dedication and work.
    >
    > But I still can't figure out how to do a ws query in a integration
    > activity in designer if the ws needs some values.
    >
    > Do you know which logging option I should turn on to see the input /
    > output XML document at server side?


    I used to maintain a page about that sort of thing but it was taken down.

    Try:

    com.novell.soa.af.impl
    com.novell.soa.ws.impl


  5. #5
    hello amigo NNTP User

    Re: Integration activity,


    magnus;253240 Wrote:
    > Hello !
    > I can't get the Integration activity to work in a in a flow... I have
    > collected some questions and I hope someone can help me find out how it
    > works ..
    >
    > > > >

    - To be able to simulate all action in a correct way, do I need to
    > remove namespace in the input document, and paste it in the Input
    > window ? (The Input document generated from wsdl contains
    > namespaces.)
    > > >

    >

    You have a *.wsdl file, right? If so, in what Input window you are
    trying to paste is? When I used Integration Activity I put *.wsdl file
    in the WSDL Resource property (Integration Activtity -> Properties ->
    WSDL Resource). Do you do it the same way?


    --
    hello_amigo
    ------------------------------------------------------------------------
    hello_amigo's Profile: https://forums.netiq.com/member.php?userid=211
    View this thread: https://forums.netiq.com/showthread.php?t=52630


  6. #6
    magnus NNTP User

    Re: Integration activity,


    hello_amigo;253278 Wrote:
    > You have a *.wsdl file, right? If so, in what Input window you are
    > trying to paste is? When I used Integration Activity I put *.wsdl file
    > in the WSDL Resource property (Integration Activtity -> Properties ->
    > WSDL Resource). Do you do it the same way?

    I got it working now on the server side.. I guess my struggling to get
    simulation in designer to work and touching the button "regenerate code
    in the action page" destroyed the actions. But the simulation in
    designer is still not possible with my specific wsdl..

    This is my wsdl:
    https://www.smsteknik.se/webservices...vice.asmx?WSDL

    When I open up Integtation activity it generates an Input document with
    all possible elements, but I need to remove some and put values in
    some.

    If I then press simulate, my values that were added and removed elements
    are restored to wsdl default in the action before the TRY..

    thank you
    //Magnus


    --
    magnus
    ------------------------------------------------------------------------
    magnus's Profile: https://forums.netiq.com/member.php?userid=283
    View this thread: https://forums.netiq.com/showthread.php?t=52630


  7. #7
    astockwell11 NNTP User

    Re: Integration activity,


    Hi Magnus,

    After having just fought my way through a complex integration activity
    (took about a solid week to get working just right), this is what I've
    learned, hope it helps you:

    1. For a simulation to work, you need to be able to hit the wsdl and
    SOAP endpoint from your computer first. Then the simulation can run
    end-to-end and is actually very helpful for debugging.

    2. You can see the result of function calls in real time if you use the
    function:


    Code:
    --------------------
    Alert('message string or variables here');
    --------------------


    Then you can click "Apply" while editing the ecmascript and it executes
    the function and will display any alerts. Obviously remove them once you
    have it working.

    3. You cannot just paste into the "Input", "Output" windows in the
    Integration tab, for 2 reasons: 1) those get overwritten during a
    simulation, and 2) UserApp sees those as Java Nodesets, not
    text/strings. If you need to modify the "Input" xml, you need to do it
    programatically. You can use one or more mapping activities and Xpath,
    or you can use ecmascript similar to the following in a Function Call:


    Code:
    --------------------
    Input.createXPath("soapenv:Envelope/soapenv:Header/Security/UsernameToken/Username").setText(myStringVariableHere);
    Input.createXPath("soapenv:Envelope/soapenv:Header/Security").setAttribute("soapenv:mustUnderstand", "1");
    --------------------


    Note that you can call Input.createXPath more than once for the same
    node if you need to set multiple attributes, etc, and it won't hurt
    anything or duplicate the node.

    4. You may be able to create a log and log the final Input and Output
    xml with just an Xpath call (using the ecmascript expression builder). I
    however found it necessary sometimes to convert the XML to a string
    variable, and log the string (put this within a logging activity):


    Code:
    --------------------
    function xmlToString(element){
    var t = Packages.javax.xml.transform.TransformerFactory.ne wInstance().newTransformer();
    t.setOutputProperty(Packages.javax.xml.transform.O utputKeys.OMIT_XML_DECLARATION, "yes");
    var sw = new Packages.java.io.StringWriter();
    t.transform(new Packages.javax.xml.transform.dom.DOMSource(element ), new Packages.javax.xml.transform.stream.StreamResult(s w));
    return sw.toString();
    };
    xmlToString( getElement(Output,"Envelope") );
    --------------------


    5. Super streamline your logging. If you create a logging activity, and
    choose "User Log" and specify a file, say, on your desktop (you may need
    to manually create the file first), then you can see the logging results
    of the entire integration activity *AS YOU SIMULATE IT*. This is super
    helpful for rapid debugging, as you don't have to deploy and watch the
    userapp/server logs, you can run the simulator and watch your desktop
    log. You can even simulate an individual step and it will update the
    log. I recommend having a logging activity like this right below the TRY
    > EXECUTE section that clears your local "User Log" so you get a clean

    slate each run. Remove these too once you're done with debugging!

    Hope this all helps, and thanks to the inimitable GeoffC for all his
    help, much of this was inside (or built atop) his articles!

    Alex


    --
    astockwell11
    ------------------------------------------------------------------------
    astockwell11's Profile: https://forums.netiq.com/member.php?userid=8750
    View this thread: https://forums.netiq.com/showthread.php?t=52630


  8. #8
    magnus NNTP User

    Re: Integration activity,


    It was really good information. And it solved some of my problems
    Thank you Alex!
    // Magnus


    --
    magnus
    ------------------------------------------------------------------------
    magnus's Profile: https://forums.netiq.com/member.php?userid=283
    View this thread: https://forums.netiq.com/showthread.php?t=52630


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •