Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
274 views

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

Labels (1)
0 Likes
7 Replies
Knowledge Partner
Knowledge Partner

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/node/11931/user-app-soap-integration-activity-interesting-errors

http://www.novell.com/communities/node/12187/using-soap-terminate-running-workflow-part-1

http://www.novell.com/communities/node/12200/using-soap-terminate-running-workflow-part-2

http://www.netiq.com/communities/cool-solutions/looking-at-the-new-integration-activity-approach-part-1

http://www.netiq.com/communities/cool-solutions/looking-at-the-new-integration-activity-approach-part-2



0 Likes
Anonymous_User Absent Member.
Absent Member.

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

0 Likes
Knowledge Partner
Knowledge Partner

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

0 Likes
Highlighted
Anonymous_User Absent Member.
Absent Member.

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

0 Likes
Anonymous_User Absent Member.
Absent Member.

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/SendSMSws1/Service.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

0 Likes
Anonymous_User Absent Member.
Absent Member.

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.newInstance().newTransformer();
t.setOutputProperty(Packages.javax.xml.transform.OutputKeys.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(sw));
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

0 Likes
Anonymous_User Absent Member.
Absent Member.

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

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.