Workflow XML R/3 can't parse XML answer, need help for syntax

Hello all,
i got a serious problem with workflow XML. I's a lot of text.
What do we do:
In worflow for PR's, there is a web activity, that sends out informations to a domino server. Sending out and receiving the acknowledgement works. The web activity than waits, until a answer comes in.
Now, if the domino user releases or rejects the PR, domino sends a XML message to R/3. This message is the big problem!!
R/3 documentation is not clear in this case. The R/3 example shows this syntax
<?xml version="1.0" ?>
<WfMessage Version="SAP.1.0">
<WfMessageHeader>
  <Request>
   <ResponseRequired>Yes</ResponseRequired>
  </Request>
    <Key>http://www.xyz.com/SAP/BC/WORKFLOW_XML/?protocol=01&localkey=000000111669</Key>
    <Operation>ProcessInstanceStateChanged</Operation>
</WfMessageHeader>
<WfMessageBody>
  <ProcessInstanceStateChanged>
    <Key>http://www.xyz.com/SAP/BC/WORKFLOW_XML/?protocol=01&localkey=000000111669</Key>
    <ProcessInstanceKey>http://www.xyz.com/SAP/BC/WORKFLOW_XML/?protocol=01&localkey=000000112625</ProcessInstanceKey>
   <State>closed.completed</State>
   <ResultData>
     <ANSWER>test successful</ANSWER>
   </ResultData>
  </ProcessInstanceStateChanged>
</WfMessageBody>
</WfMessage>
Link to the example:
http://help.sap.com/saphelp_47x200/helpdata/de/54/de9e3887d6174fe10000009b38f842/frameset.htm
In that case, the "key" tag points to the external system, but has an "localkey" parameter, that holds the R/3 instance of the workflow task. "ProcessInstanceKey" seems to be the key for the external system. Completely confusing!!
Whenever we build our XML message in that way, we got the error 104 which means, that a process state change from [blank] to [blank] is not foreseen.
Can anybody help further?
Is there any document, that describes clear, how to build up such answer messages in WF XML?
Thanks in advance for the answers!!
Cheers
Jens

Hi Martin,
thank you for your reply!
Unfortunately, there is no way, to generate the incoming answer, because it comes from a domino server, who has implemented it through raw coding&MS XML. The only way to generate would be, to implement a workflow call from
Domino to R/3, but i think in this case, it will consume to much time and R/3 documentation seems to be definitely wrong.
Just have a look: abc.com is the WF-Initiator, xyz.com the consumer, localkey from abc.com is a part of xyz.com and the target in that case must be abc.com with this localkey.
I studied the Wf-XML specification and, allthough it uses a different dialect (1.1), it seems to be, that the Key-Tag and ProcessInstanceKey-Tag are wrong in R/3 documentation. The error codes thrown in our implementation are 104 in the XML response and 200 in HTTP response, so this indicates a wrong key-value.
We just want to implement a short test scenario, to proof our thing working, but my customer and the Domino developer are houndreds of miles away and time becomes very short from all sides. Every change on side of Domino seems to be a very complicated task and the developer wants a exact example of how to implement the interface, which i can't deliver ad hoc. Trial&error is a very bad idea in this case..
OSS call is opened now, hope, they respond quickly, because i only can set the call to middle priority, no production - but development stop.
Cheers
Jens

Similar Messages

  • Can't parse "bad" characters - need help

    Hey everyone, this should be simple. I am trying to parse (DOM parser) and XML string that has some funky characters in it. I am getting the following error:
    Illegal XML character: & # x 1 d ; (had to use spaces so that it would print out properly...otherwise: &#x1d;
    I have a findAndReplace method that I can use to replace the bad characters with their proper values (copy paste from Word to notepad of single quotes really screws things up), but I can't seem to get it to work. What should I pass in to be replaced? I know that this is a hexadecimal for '29', but I can't seem to get my findAndReplace to work by passing in &#x1d, & # x 1 d ;, or java.lang.String.valueOf(29). Please help, thanks!
    FYI...here's my findAndReplace method.
    public static String findAndReplace(String original, String replaceThis, String withThis) {
    if (original==null || replaceThis==null || withThis==null) {
    return null;
    int i = original.indexOf(replaceThis);
    if (i == -1) {
    return original;
    int replaceThisSize = replaceThis.length();
    int withThisSize = withThis.length();
    while (i != -1) {
    String beforeString = original.substring(0, i);
    String afterString = original.substring(i + replaceThisSize);
    original = beforeString + withThis + afterString;
    i = original.indexOf(replaceThis, i + withThisSize);
    return original;

    warnerja, you're right. That character should not be
    there. However, I can not guarantee that it will not
    be there as it comes from a different system and
    people are pasting Word docs into this system all the
    time. You can train people all you want, but they
    don't always listen. So, I need to make sure my code
    doesn't blow up when the do do this. Hence my issue.I'd follow the GIGO (garbage in, garbage out) principle. Are you also going to need to code it to read their minds when they provide no sensible input whatsoever, like:
    <hey, figure this>junk<out/>man</hey, figure this>

  • You must authorize this computer before you can download previous purchases. Need help for MacBook Pro

    Need help to authorize my computer

    Open iTunes
    From the Store menu, choose Authorize This Computer. (In earlier versions of iTunes, access this option from the Advanced menu).
    When prompted, enter your Apple ID and password, then click Authorize.
    http://support.apple.com/kb/HT1420?viewlocale=en_US&locale=en_US

  • I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    http://www.apple.com/support/itunes/contact/

  • HT1386 my Ipod will not connect to my computer it worked yesterday but not today and it is only a new ipod touch, it will not even be recognised on my itunes but yet it can charge off my computer. need help!

    it worked yesterday but not today and it is only a new ipod touch, it will not even be recognised on my itunes but yet it can charge off my computer. need help!

    iOS: Device not recognized in iTunes for Mac OS X
    or
    iOS: Device not recognized in iTunes for Windows

  • How can i deinstall the rotten ADOBE HELP for Flash CS5 an install a new one (Mac OS X 10.6.8 )

    My Flah Help can't download newer Versions and Ressources. So i can't use it. And i have to. And i paied for it.
    So: How can i deinstall the rotten ADOBE HELP for Flash CS5 an install a new one (Mac OS X 10.6.8 )?

    Do you receive an error message when trying to use the help files?  What have you tried so far to resolve your difficulties?

  • Can i assign a collective srch help for select option in list display

    can i assign a collective srch help for select option in list display

    Hi,
    Yes ,u can assign a collective search help for select-option in list display.
    Eg:
    Define your select option like this
    SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
    Regards,
    Shiva.

  • Please help! i have just upgraded to an iphone 5 for work, so i have started to backup my iphone 4 but it is stuck on 'finishing sync' and has been for 20hours!what can i do?i need it for work tomorrow

    please help! i have just upgraded to an iphone 5 for work, so i have started to backup my iphone 4 but it is stuck on 'finishing sync' and has been for 20hours!what can i do?i need it for work tomorrow

    Is this what you downloaded: iTunes 10.7?
    When the update fails what if any error report do you get, specifically? Please do this before trying again:
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • Hello i need help for adobe creative cloud...when i launch application adobe  cc 2014  for photoshop or illustrator.....the apps launch and i can see the workspace and menu bar  for a while and  suddenly this application close automatic

    hello i need help for adobe creative cloud...when i launch application adobe  cc 2014  for photoshop or illustrator.....the apps launch and i can see the workspace and menu bar  for a while and  suddenly this application close automatic

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • I need help! I updated the new 6.1.3 last night. Since that time my phone will not charge. The phone is plugged in and shows as charging but the battery still drains. What can I do? I need help!

    I need help! I updated the new 6.1.3 last night. Since that time my phone will not charge. The phone is plugged in and shows as charging but the battery still drains. What can I do? I need help!

    Restore iPhone with iTunes on your computer.

  • Urgently  need help for parsing IP header

    Hi, could anyone tell which class I should use to parsing the IP header of a packet?
    Thanks many many times!

    > Hi, could anyone tell which class I should use to
    parsing the IP header of a packet?
    DatagramPacket?
    > Urgently need help for parsing IP header
    Don't flag your question as urgent, even if it is for you.
    * We all answer questions here voluntarily, in our leisure time. We do that because doing so is fun for us, because we enjoy helping people and having interesting discussions. Guess what, it is much less fun if it gets stressful. So the last thing you want to do to get us to answer your question is to pass your stress over to us.
    * People who are stressed and want a fast answer often don't even find the time to do the necessary research or to formulate their question in an easy to comprehend way. That's even less fun to work with. So you really don't want us to feel your stress. Instead you want to take your time to write a well formulated post that is fun to answer. The less likely it is for us to know that your question is urgent, the more likely you are to get a fast answer!
    * The simple notion that you want your post to be answered faster than those of the other members might feel rather unfair to some of us. Doubly so because often "urgent" questions actually are homework questions. Yours might be different, but someone who had bad experiences with this type of question might not read far enough to notice.

  • After installing Lion the microsoft office programs do not run!  What can I do as I need them for external communication?

    After installing Lion the microsoft office programs (word, excel,...) do not run!  What can I do as I need them for external communication?

    There are also free alternatives such as Neo Office.
    You can also install the Office 2011 30 day trial if it's urgent.

  • How can I change the answers I gave for my security questions

    I can't remember the answers I gave for my apple ID security questions, how van I change/update them?

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • HT1937 I have an iphone bought in the UK but I'm in Europe and can not use it I need help please help me thanks

    I have an iphone bought in the UK but I'm in Europe and can not use it I need help please help me thanks

    wiliiam rrichard wrote:
    Because My iphone is Locked on the United Kingdom
    No it is not.  iPhones, like all cell phones are not locked to countries.  They are locked to carriers.
    Only the carrier to whom the device is locked can unlock it.  Contact the carrier.

  • All of my photos are displayed as BW because somehow I've saved a quick develop preset and it saves as BW.  This is for all of my photos.  I can individually undo them but need help in how to get rid of the preset so it goes to Default. thanks

    All of my photos are displayed as BW because somehow I've saved a quick develop preset and it saves as BW.  This is for all of my photos.  I can individually undo them but need help in how to get rid of the preset so all photos goes to Default or as shot. thanks

    Go to the develop module and highlight all of the images in the filmstrip at the bottom of the screen. Then activate Auto-sync and click on the Reset button. That should reset all of the images to your camera default settings.

Maybe you are looking for

  • Apache Authentication

    We recently setup an Open Directory server on OSX 10.4 and we're having issues getting our GNU/Linux Apache 2.0 web server to authenticate against it. Here is the section in our httpd.conf: LoadModule ldap_module modules/mod_ldap.so LoadModule authld

  • Business Partner assignment

    Hi all Can one business partner be both a key user and a message processor? All help appreciated. Judy

  • Broken ADOBE Link for CS3 System Requirements?

    The link for general CS3 systemm requirements at http://www.adobe.com/products/premiere/systemreqs seems to work, but ... Does this link, http://www.adobe.com/products/premiere/dvhdwrdb.html for the full compatible hardware listing for the video card

  • Restoring iPhone backup to iPod touch?

    Hi guys! Due to hardware issues, I'm replacing my first generation iPhone with a used 1st generation iPod touch. Is it possible to save my progress in the applications I've used on my iPhone? I tried restoring my iPod touch from the iPhone's backup,

  • Not able to download mp3 streams into iTunes like it used to.

    I am using iTunes v.2.0.3 on my Powerbook G3 with Internet Explorer 5.1.7 for a browser. I use iTunes to listen to mp3 radio streams w/o any problems until I downloaded Windows Media Player 7.1 for Mac & iCab 3.0 as a backup web browser. Now, I am no