on 08-09-2010 12:24 PM
Hi everybody,
I have an Agent created inside PCo and its listening to a data server. I have also created a notification object which triggers my MII Transaction (after certain condition is getting fulfilled).
Now, I want to pass certain values from PCo to MII using the notification object. For this I have tried 2 options:
1. I defined one input parameter in transaction of type 'XML'. But this did not work. When I used 'Tracer' to check the received values, it showed empty.
2. Since XML variable did not work, I tried with 'String' variable. It worked but the entire input data was in 'String' format.
Actually I used XML_Saver to save the string and given filename as '.xml'. When I opened that xml file, it was looking like this:
<<unable to write XML here>>
Considering the above 2nd option, how can I extract the particular 'Tag' values from XML string. Since the string is not in the format of 'Rowset/Row/Row', I cannot specifically assign/map those tag values to any other variable inside MII transaction.
===========
Shyamal,
if you can receive the value in a string variable, it should also work with a xml property. The tracer had some problems in displaying xml nodes in early versions of MII 12.0. Which version are you using? If you are not sure about the tracer, try to save the value to a file and check the contents.
If the contents is XML, then MII can handle it, no matter if it is in an Illuminator format (/Rowsets/Rowset/Row) or any other xml format. You can always use XPath to extract you tag values. Say your xml property is "MyXML", then the contents usually can be linked with an XPath expression like "MyXML.Output{/rootnode/node/value}".
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I was trying to post the xml string. It was not possible yesterday (because, SDN editor has converted xml part into some irregular string).
Now, I am trying to post the string by removing the special characters. Please try to understand it.
Now, my question is how to retrieve the CDATA value 5599999999 using xpath. Please help.
NotificationMessage
Body
Values
Expression1 type xsd string
CDATA 5599999999
/Expression1
/Values
/Body
Faults /
/NotificationMessage
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a Transaction Input parameter of type XML and define a default value with the XML you saved. Then Have PCo post the notification to that input parameter. Now you can access the nodes of the paramater directy without having to use XPath and you can code the transaction prior to actually receiving the "live" parameter data and can use the default values in the input parameter for MII testing.
- Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please Go through the Configuration Documentation pco , available in the service market place [https://websmp107.sap-ag.de/support] you will get the requried answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.