File to convert to IDOC from bus.service failes with ALE#LI

Hello,
we habe implemented a scenario:
Non SAP system sends a structure to be uploaded to an R/3 system as IDOC.
All config looks fine.
We followed this description:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
So system is identified in adapter specific data as log.sys. LS test1 .
But we have this error:
Unable to convert partner abc / ALE#LI into an IDOC partner (message in german, only translated)!
Does anybody has an idea what is wrong?
Is it necessary to have the log.sys name in the message e.g. in SNDPRN?
Here we have after mapping:
  <SNDPOR>testABC</SNDPOR>
  <SNDPRT>LI</SNDPRT>
Best regards
Dirk
Message was edited by: Dirk Meinhard
Message was edited by: Dirk Meinhard

Hi Nimrod,
looks like I am not totally wrong here, but working together with externals who provide the outbound side is not really easy for testing.
Here is the EDI_DC-40 segment AFTER the Mapping, so the XML for the inbound IDOC:
- <PORDCR05>
- <IDOC BEGIN="1">
- <EDI_DC40 SEGMENT="1">
  <TABNAM>EDI_DC40</TABNAM>
  <MANDT>010</MANDT>
  <DIRECT>1</DIRECT>
  <IDOCTYP>PORDCR05</IDOCTYP>
  <MESTYP>PORDCR</MESTYP>
  <SNDPOR>A000000039</SNDPOR>
  <SNDPRT>LI</SNDPRT>
  <SNDPRN>0005354880</SNDPRN>
  <RCVPOR>SAPK10</RCVPOR>
  <RCVPRT>LS</RCVPRT>
  <RCVPRN>LOG10</RCVPRN>
  </EDI_DC40>
Here is the error message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Aufruf eines Adapters
  -->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
  <SAP:Category>XIAdapter</SAP:Category>
  <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_INV_SND_PARTY</SAP:Code>
  <SAP:P1>Partner_ABC</SAP:P1>
  <SAP:P2>ALE#LI</SAP:P2>
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText />
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack>Sender XI Party Partner_ABC / ALE#LI / could not be converted to IDoc Partner </SAP:Stack>
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>
In my opinion we have to implement in WE20 of receiver R/3 system a partner LI with this number A000000039 from the EDI DC 40 segment? And we need to add it as identifier LOGICAL with ALE#LI and this number A000000039.
R/3 consultant says he cannot do this in the receiver R/3 system because the sender is no supplier in his system!
regards
Dirk

Similar Messages

  • OLEDB select from Analysis Services fails with error codes 0x80040E21 and 0xC0202009

    Hi,
    In IS2008 SP1, I have an OLEDB source component that uses an Analysis Services OLEDB connection to run an MDX statement (set in the "SQL command text" property). This already worked for other cubes with the same MDX statement (apart from different hierarchy
    and cube names) in several other IS packages.
    But in this package, I keep getting the following errors when executing:
    Error: 2011-12-08 14:12:42.70
       Code: 0xC0202009
       Source: myDataflow myOLEDBsource [190]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred.
     Error code: 0x80040E21.
    End Error
    Error: 2011-12-08 14:12:42.70
       Code: 0xC004701A
       Source: myDataflow SSIS.Pipeline
       Description: component "myOLEDBsource" (190) failed the pre-execute phase and returned error code 0xC0202009.
    End Error
    As usual with AS OLEDB, you get warnings for all columns that the data type is unknown and hence set to DT_WSTR(255). This is the case for the working packages and for the non-working one.
    And when I click on the "Preview" button in the OLEDB source, I see the three column two row resultset as expected.
    As I found some other posts with similar error messages that could be resolved by changing the 32 bit and 64 bit setting, I tried in BIDS 2008 (32 bit) on Vista 32 bit, dtexec 32 bit on the same computer, dtexec 64 bit and dtexec 64 bit on a Win2008 server,
    all with the same results.
    SQL Server Profiler shows that the MDX statement is executed without errors when running the package. I do not see any relevant difference between the working packages/cubes and those not working. I re-created the OLEDB source component several times, even
    copied it over from a working package, and still have no success.
    I even executed the statements in an XMLA sheet in Management Studio with the PropertyList taken from the trace, without seeing anything obvious in the result.
    Any ideas what I could do to get this working?
    Is there any reference explaining OLEDB error codes?
    Thanks
    Frank

    Hi,
    I finally got it working. Re-creating the connection manager solved the issue. There was no difference between the not working and the working connection in the Connection Manager Editor. When I compared on XML source level in the package, I found that the
    working version contained Format=Tabular in the connection string, while the not working version did not contain this.
    Frank

  • Error from EAS - "refreshing security from Shared Services failed"

    Hi,
    I was using Native only security in HSS for Essbase 11.1.1.3 and EAS allowed me to Refresh security from Shared Services. (Essbase security was already externalized to HSS.)
    However, after I added "MS Active Directory", and provisioned a MSAD user to a native Planning group, EAS errors out with "refreshing security from Shared Services failed" .
    I checked Essbase security and that MSAD user is not added to Essbase.
    From Essbase Log I see:
    Essbase failed to get roles list for [ESB:Analytic Servers:servername:1] from Shared Services Server with Error [32:1062:Failed to connect to the user directory [ HSS'sMSADname].
    I then tried to remove MSAD from our H Shared Services and see if this problem goes away. However, MSAD still shows on the left panel menu in H Shared Services. How can I get rid of MSAD?
    Any suggestions?
    Edited by: user643332 on May 12, 2010 12:05 AM

    Hi,
    Are you sure you have removed it from shared services, you may have just disabled it.
    You must restart the shared services application server to apply any changes made.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Refresh Security from shared services fails.

    Hello all,
    On our environment I went into shared services with admin rights and changed the native directory password. And from then on I have not been able to refresh the security of essbase server in EAS. I get the following error,
    Essbase failed to get roles list for [ESB:Analytic Servers:Servername:1] from Shared Services Server with Error [32:1062:Failed to connect to the user directory [Native Directoy].]
    Also I would like to know if native directory password means the password "password" which comes as default for the username admin. Am new to essbase and was under the impression that native directory password means the password "password" which came as default for the username admin. Please help, this is a production issue which started only because I changed the native directory password and now I need to get it fixed.
    Thanks.
    Edited by: Teddd on Jan 6, 2013 4:07 PM

    Please confirm the version of the Shared Services (HSS) and Essbase, EAS server.
    Also let me know, if the HSS, ESSBASE & EAS installed on the same box ?
    If they are on the different servers, ensure that there is no network communication issues.. (try performing telnet on the port from each other servers)
    E.g Open command prompt - telnet servername port (telnet HSS_SERVER 28080), hit enter.. if it shows the blank screen .. it is successful and there is no communication issues.
    Also you could try..
    On EAS server, add the below in windows registry under EAS... and restart the machine..
    ESS_CSS_JVM_OPTION1 = -Dcom.hyperion.css.socketTimeout=60000
    if you are not comfortable updating the registry contact you admin and ensure to take the backup before editing...

  • Ws manager service fails with non-soap-response

    I try to set up a service in wsm. Gateway, policy and service are defined via the defaults.
    I can access my original service via BPEL and via the WSM test page, but calling the wsm service fails
    with a non-soap-response error :
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">p:Client.GenericFault</faultcode><faultstring>Service gibt Nicht-SOAP-Response zurück</faultstring><detail/></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    This is returned by the original web service :
    <?xml version="1.0" encoding="UTF-8" ?>
    <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <n1:SendMessageResponse xmlns:n1="urn:ActionWebService"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    </n1:SendMessageResponse>
    </env:Body>
    </env:Envelope>
    What is going wrong here ?

    I try to set up a service in wsm. Gateway, policy and service are defined via the defaults.
    I can access my original service via BPEL and via the WSM test page, but calling the wsm service fails
    with a non-soap-response error :
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">p:Client.GenericFault</faultcode><faultstring>Service gibt Nicht-SOAP-Response zurück</faultstring><detail/></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    This is returned by the original web service :
    <?xml version="1.0" encoding="UTF-8" ?>
    <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <n1:SendMessageResponse xmlns:n1="urn:ActionWebService"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    </n1:SendMessageResponse>
    </env:Body>
    </env:Envelope>
    What is going wrong here ?

  • Possible convert to Blackberry from Palm - please help with outlook questions

    I'm debating switching from a Palm Treo 800 (battery life is awful) to Blackberry Curve. I chose the Treo because of active sync with my work exchange server and ability to open Office documents.
    Currently, I sync my outlook mail, tasks & calendar with work, and my contacts & notes with my home computer. So if i follow your instructions for using BIS instead of BES (my employer only provides BES service for a carrier which is not mine ...), will I be able to sync manually with a cable to my work computer for  calendar & tasks and then to my home computer for contacts & notes?
    I have to decide THIS WEEK if I'm going to switch from Palm to Blackberry, so please hurry! The blackberry seems like it's a lot more fun than the Palm, and your support is much more extensive and user-friendly!

    Ok, so if both machines are Outlook based, I would not see a problem,
    You would need  2 DM programs one at work and one at home.
    For work you can specify sync for tasks and calendar, for home sync contacts and notes.
    Both calendars would have to be the Outlook calendar as default.
    You can the have the synced BB and would have the ability to backup on both machines, or better yet, back up on one machine to eliminate confusion. In case of failure, you have a backup of ALL data.
    You wouldn't have to convert anything because Outlook is fully compatible with the Desktop Manager.
    I don't see a problem.
    Thanks
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Refresh security from Shared Services fails - System11

    Hi All,
    WHen refreshing the Essbase security from Shared Services in System 11 we get the following error:
    Error 1051522: Essbase failed to get group's member tree with Error [CSS Error: Unknown error: Could not get exception message from exception object]
    We see the same error in the Essbase log.
    In the Shared Service Security CLient.log we get the following warnings:
    2009-03-03 16:12:58,294 WARN [Thread-108] CSS dll either not found in java.library.path or can't be loaded[Root Cause: D:\Hyperion\common\CSS\9.5.0.0\bin\css-9_5_0.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform ] com.hyperion.css.spi.impl.ntlm.NTLMTrustedDomain.<clinit>(Unknown Source)
    2009-03-03 16:12:58,294 WARN [Thread-108] Error initializing trusted domains or the workstation name.[Root Cause: getNtTrustedDomains ] com.hyperion.css.spi.impl.ntlm.NTLMTrustedDomain.<clinit>(Unknown Source)
    Has anyone come across this?
    Thanks for your help.
    Seb

    Hi Seb,
    I take it you are using NTLM as your external authentication.
    The error message means that it can't see css-9_5_0.dll in the path, if you are on windows make sure the path contains <drive>:\Hyperion\common\CSS\9.5.0.0\bin\
    If it doesn't update the environment variables, not sure if you need to reboot it may pick it up straight away, you can check by going to a command prompt and running echo %path%
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Reports Service failes with 186 error after Disco4i Admin install.

    OS NT 2000
    DB 8.1.7
    9iAS 1.0.2.1
    Disco Admin 4.1.33e
    Everthing was working fine until the install of Disco4i Admin. It would error on the install until I stopped the Reports Service. Post install - The reports service failed to start. NT specific error 186.
    I've performed a TNSPING80.EXE myserver & verified the TNSNames.ora configuration in 806, iSuites, and 8.1.7. Everything looks ok.

    If you have set the TNS_ADMIN environment variable or registry key to an alternate value, Oracle9iAS Reports Services may fail to start with an error 186 or REP-0186. In such a case, you can start Oracle9iAS Reports Services from an MS-DOS command prompt as follows:
    prompt> setenv TNS_ADMIN <IAS_HOME>/6iserver/network/admin
    prompt> <IAS_HOME>/6iserver/reports60_server start
    replacing <IAS_HOME> with the directory where you installed Oracle9i Application Server. This will force Oracle9iAS Reports Services to use the tnsnames.ora file at <IAS_HOME>/6iserver/network/admin.
    Hope this will help
    null

  • Windows 8 backup (Win7 File Recovery system image) creation to NAS device fails with error 0x807800C5

    Hi,
    I have a ZyXEL NSA310 NAS device on my network that I use for backups (as well as a media server). I have been very happy with it as, amongst other things, it has a gigabit Ethernet connection. I recently upgraded my home laptop from Win7 Pro to Win8
    Pro. Under Win7 the NAS device worked perfectly as the backup target. I could back up file sets and - most importantly to me - create a system image on the device should I need to restore the system in the event of a full disk failure.
    When I upgraded to Win8 it kept the Win7 settings and it looked like it was just going to work, then as it came to create the system image it failed with error code 0x807800C5 and message "The version does not support this version of the file format".
    I have searched the internet and seen that others have had similar issues on Win7 and Win8 with NAS devices where they have had to hack the device to get it working - though it isn't clear that this has been successful for everyone. This isn't an option
    for me as the NSA310 is a closed device and in any event I don't see why I should have to hack the device when clearly this is a Win8 issue (since Win7 worked perfectly).
    Does anyone have any ideas how to fix this issue so that I can create the full backups I require?
    Thanks,
    Phil
    Event Log messages:
    Log Name:      Application
    Source:        Microsoft-Windows-Backup
    Date:          13/01/2013 23:14:52
    Event ID:      517
    Task Category: None
    Level:         Error
    Keywords:     
    User:          SYSTEM
    Computer:      Home-Laptop
    Description:
    The backup operation that started at '‎2013‎-‎01‎-‎13T23:13:43.523158000Z' has failed with following error code '0x807800C5' (There was a failure in preparing the backup image of one of the volumes in the backup set.). Please review the event details for a
    solution, and then rerun the backup operation once the issue is resolved.
    Log Name:      Application
    Source:        Windows Backup
    Date:          13/01/2013 23:14:56
    Event ID:      4104
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Home-Laptop
    Description:
    The backup was not successful. The error is: There was a failure in preparing the backup image of one of the volumes in the backup set. (0x807800C5).

    Thanks willis! I will look into the iSCSI route. A quick Google search and I can see some mention of the NSA310 and iSCSI so maybe it does support it.
    One question: Have you ever attempted to restore a system image from a NAS iSCSI device with a Win8 Restore Disk? Is it easy? I just want to be sure that it is possible to do so in case the worst happens and I need to restore the entire image onto a
    new disk.
    Hopefully Microsoft will fix the issue with the standard NAS setup with an update in the future, but I don't want to wait for it.
    Thanks again,
    Phil
    Hi Phil,  No I have not had to do this yet, but I see no reason why it shouldn't work as the iSCSI disk looks just like a regular hard disk to the OS. I agree that Microsoft should fix the direct NAS support as the iSCSI approach does have the downside
    of dedicating a fixed chunk of your NAS drive to the iSCSI disk that you have to choose when you create the disk whereas the direct NAS just uses the actual space currently needed by the backup. Also I had some trouble getting authentication (access rights)
    to work so I left the iSCSI portal as open access - which is OK for a home solution but not a good idea in general. I will revisit this for my own setup and see if I can get it working but just wanted to mention it in case you have the same issue. It manifests
    itself as not being able to connect to the iSCSI portal due to failed authentication when running iSCSI initiator setup.
    -willis

  • IDOC Posting To XI Failed With Status Text "::000" in SM58

    Hello Gurus
    Can u please suggest me how to overcome the problem with Custom Idocs while trying to send from SAP R/3 to SAP PI(XI).
    The status text is displaying as "::000" with no other details, in SM58 of the sender system i.e. SAP R/3.
    The Idocs status in the sender system is showing as 03 with the message "Idoc sent to sap system" in transaction BD87.
    So I am getting confused where I missed the configuration.
    Please suggest how I can troubleshoot the above.
    <<Text removed>>
    Regards,
    Rk.K
    Thanks in advance .
    Edited by: Matt on Jun 24, 2011 9:58 AM

    Thanks  a lot for your support.
    I have tried all the suggested solutions......but my problem was not solved.
    The Metadata should be automatically created when the IDOCS successfully received by the XI server.
    If it is not created then we should clear the SLD Cache in XI and try to create a new Metadata by giving the Custom IDOC Name and Port.
    Even I tried with a Standard Idoc ORDERS05 , but I failed to do so.
    After doing the above step I am getting the Information pop-up message "I::000".
    Regarding RFC, I have created 2 users in both the systems with the same name(ALEREMOTE) of type "System".But,I am unable to   Remote Login from XI to R/3 whereas the vice -versa is successful.
    Are there any chances for this being the reason for failure of Idoc processing?
    Such information message"I::000" is completely inexplainable.
    Kindly, suggest a solution for it. 
    Thanks.

  • Adding Silverlight-enabled WCF Service failed with error code 50

    Hello everyone,
    I am very new to Silverlight ,and I am working on silverlight with WCF.
    When I tried to add a silverlight-enabled WCF service. I kept getting the error
       Method failed with unexpected error code 50.
    I am working with Silverlight 5 and VS 2013 ,I have no idea about it. I appreciate that if anyone can help?
    Thank you

    Hi,
    Please make sure your wcf is valid.
    Here are some resources which could help you:
    https://msdn.microsoft.com/library/cc838234(VS.95).aspx
    http://www.codeproject.com/Articles/262164/Using-WCF-Service-with-Silverlight#_articleTop
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Generate AVI files. Convert in AVI from MOV. QUICKTIME PRO??

    Hi,
    First of all, I'd like to ask you an apology if my problem has been solved in another post, but I couldn't find it.
    I have an AVI file and I’d like to add the subs (srt file) My idea was to open the AVI file with a program, to add the file and finally to generate a new AVI file with the subs included.
    I had the wrong idea that with Quicktime I could make that, but after several intentions I have realized that I haven’t the Quicktime Pro, what I have is Quicktime X and with this version is not possible to generate an AVI file the way I need.
    I have read a few posts about the differences between Quicktime 7 Pro and Quicktime X, and before thinking in buy the Quicktime 7 Pro license, I want to know if it will make what I want.
    I also need to convert a MOV file into an AVI file or another smaller which I could share by email. I prefer AVI format because all users (MAC & WINDOWS) can play it.
    I am not sure if the Quicktime 7 Pro is the better solution for me. Maybe you know another program which I can get what I need.
    Thank you in advance, best regards.
    FJT

    If you are also running the 3ivX codec module and the movie is a DivX AVI, then you you may need to run the file through 3ivX's DivX Doctor II. This utility updates DivX .avi videos to 3ivX QT (.mov) videos. (This assumes other files still play correctly with audio.)
    http://www.3ivx.com/divxdoctor/
    "After the conversion you will be able to play the video smoothly, and the audio glitches inherent in the AVI format will be fixed" -- according to the 3ivX site.

  • TS3704 Trying to delete I Tunes because of missing MSVCR80.dll followed instructions from Apple to delete - Apple Mobile Device support keeps coming up its being used I have gone to program files deleted what I can from folder but left with 3 files

    I have been getting the MSVCR80.dll missing message.
    Been on the Apple site and following instruction.
    Going down the list has instructed I have Deleted I Tunes.
    Deleted Apple Software Update
    But when I try to delete Apple Mobile device it wouldn't delete so went into program files has the instructions say by going to Program Files\common Files\Apple\Apple Mobile Device Support Folder.
    It still wouldn't delete saying it was being used. 
    I opened the file and highlighted all the folders and pressed delete, most of them have disapeared into my recycle bin but the folder still holds AppleMobileService, AppleMobileDeviceService_main.dll and MobileDevice.dll. 
    Message when I right click the first file is AppleMobileService I am told this action can't be completed because file is open in Apple Mobile Device. Close and Try again. 
    When I click the next file AppleMobileDeviceService_main dll it says  It comes up with This action cannot be completed and File description Apple Mobile Device Service. Company Apple Inc. File Version 17.323.0.9 Date Created 7/9/2013. Try again...... and finally  MobileDevice.dll come up with same message but file version 710.0.0.4 Date Created 7/9/2013 Size 902KB Both say Try Again but the same thing just recurred.
    I have left my lap top on hoping that I a swift reply.
    I am certainly no computer wizard and simply trying to follow the instructions to get rid of the box which keep coming up everytime I switch the lap top on saying APS Daemon.exe-System Error. The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem.  I had looked at the internet and there appears to be warnings not to click on the button.
    I have had an apdate from Apple for the I Tunes but it wouldn't update. I thought that may have sorted it so whilst I had a few hours I thought I would go through the process that is advised on Apple's website. 
    I hope I have not ruined my computer. I haven't even tried deleting Bonjour or Apple Application Support (I Tunes 9 or later) has these are supposed to come after the step I am on.
    Please HELP!!!!!

    Sorry I missed your post. Anyone else with the same issue should find useful resources at Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Calling web service from oracle forms fails with ORA_JAVA.JAVA_ERROR

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://www.webservicex.net/CurrencyConverter.asmx?wsdl
    Calling the web service using JDeveloper works fine but from Oracle Forms returns ORA_JAVA.JAVA_ERROR; Unable to call out to Java, Invalid object type for argument 1
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    rv ora_java.jobject;
    ex ora_java.jobject;
    outString varchar2(2000);
    BEGIN
    jo:= CurrencyConvertorStub.new;
    --This will get the exchange rate from US Dollars to UK Sterling.
    rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD');
    message (float_.floatValue(RV));
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    outString := Exception_.toString(ex);
    message(outString);
    END;
    Any help/ideas on this is greatly appreciated. Thanks.

    Yes, it is the message line - so basically this call fails => rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD'); and control goes in the exception block
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    Below is the code from java stub that was generated using JDeveloper by using web services stub/skeleton and associating the WSDL
    public Double ConversionRate(String FromCurrency, String ToCurrency) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    String wrappingName = "ConversionRate";
    String targetNamespace = "http://www.webserviceX.NET/";
    Vector requestData = new Vector();
    requestData.add(new Object[] {"FromCurrency", FromCurrency});
    requestData.add(new Object[] {"ToCurrency", ToCurrency});
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "http://www.webserviceX.NET/ConversionRate", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    Vector responseData = responseBody.getBodyEntries();
    return (Double)fromElement((Element)responseData.elementAt(0), java.lang.Double.class);
    }

  • Urgent: Calling web service from PL/SQl fails with XML parsing

    Hi,
    I am trying to call a web service from PL/SQL (using SOAP protocol and UTL_HTTP built in Package).I am using Oracle 9i .I am calling from pl/sql block invoking web service method created in java.
    I am getting the below response object as a SOAP protocol, but i couldn't able to parse the SOAP.
    Could you please provide the values of FirstName, LastName and ErrorDescription
    declare
    request_env varchar2(32767);
    v_xml XMLTYPE;
    l_user_first_name varchar2(100);
    l_user_last_name varchar2(100);
    l_error_value varchar2(100);
    begin
    response_env:='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <UserInfoObjResponse xmlns:axis2ns1="http://www.test.com/services">
    <axis2ns1:FirstName >First Name Output</axis2ns1:FirstName>
    <axis2ns1:LastName>Last Name Output</axis2ns1:LastName>
    <axis2ns1:ErrorDescription />
    </UserInfoObjResponse>
    </soapenv:Body>
    </soapenv:Envelope>';
    dbms_output.put_line('Length of Request:' || length(response_env));
    dbms_output.put_line ('Request: ' || response_env);
    v_xml := XMLTYPE(response_env);
    -- SELECT EXTRACTVALUE(v_xml, '//UserInfoObjResponse/FirstName') INTO l_user_fast_name varchar2(100); FROM DUAL;
    dbms_output.put_line ('l_user_first_name: ' || l_user_first_name);
    dbms_output.put_line ('l_user_last_name : ' || l_user_last_name);
    dbms_output.put_line ('l_error_value: ' || l_error_value);
    end;

    In Oracle 9i:
    SQL> declare
      2    response_env varchar2(32767);
      3    v_xml XMLTYPE;
      4    l_user_first_name varchar2(100);
      5    l_user_last_name varchar2(100);
      6    l_error_value varchar2(100);
      7  begin
      8    response_env:='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      9                     <soapenv:Body>
    10                       <UserInfoObjResponse xmlns:axis2ns1="http://www.test.com/services">
    11                         <axis2ns1:FirstName >First Name Output</axis2ns1:FirstName>
    12                         <axis2ns1:LastName>Last Name Output</axis2ns1:LastName>
    13                         <axis2ns1:ErrorDescription />
    14                       </UserInfoObjResponse>
    15                     </soapenv:Body>
    16                   </soapenv:Envelope>';
    17
    18    dbms_output.put_line('Length of Request:' || length(response_env));
    19  --  dbms_output.put_line ('Request: ' || response_env);
    20
    21    v_xml := XMLTYPE(response_env);
    22
    23    select EXTRACTVALUE(v_xml,'/*:Envelope/*:Body/*:UserInfoObjResponse/*:FirstName/text()') first_name,
    24           EXTRACTVALUE(v_xml,'/*:Envelope/*:Body/*:UserInfoObjResponse/*:LastName/text()') last_name,
    25           EXTRACTVALUE(v_xml,'/*:Envelope/*:Body/*:UserInfoObjResponse/*:ErrorDescription/text()') error_description
    26      into l_user_first_name, l_user_last_name, l_error_value
    27      from dual;
    28
    29    dbms_output.put_line ('l_user_first_name: ' || l_user_first_name);
    30    dbms_output.put_line ('l_user_last_name : ' || l_user_last_name);
    31    dbms_output.put_line ('l_error_value: ' || l_error_value);
    32  end;
    33  /
    Length of Request:530
    l_user_first_name: First Name Output
    l_user_last_name : Last Name Output
    l_error_value:
    PL/SQL procedure successfully completed.In Oracle 10g:
    SQL> declare
      2    response_env varchar2(32767);
      3    v_xml XMLTYPE;
      4    l_user_first_name varchar2(100);
      5    l_user_last_name varchar2(100);
      6    l_error_value varchar2(100);
      7  begin
      8    response_env:='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      9                     <soapenv:Body>
    10                       <UserInfoObjResponse xmlns:axis2ns1="http://www.test.com/services">
    11                         <axis2ns1:FirstName >First Name Output</axis2ns1:FirstName>
    12                         <axis2ns1:LastName>Last Name Output</axis2ns1:LastName>
    13                         <axis2ns1:ErrorDescription />
    14                       </UserInfoObjResponse>
    15                     </soapenv:Body>
    16                   </soapenv:Envelope>';
    17
    18    dbms_output.put_line('Length of Request:' || length(response_env));
    19  --  dbms_output.put_line ('Request: ' || response_env);
    20
    21    v_xml := XMLTYPE(response_env);
    22
    23    select r.*
    24      into l_user_first_name, l_user_last_name, l_error_value
    25    from XMLTABLE('/' PASSING v_xml
    26                  COLUMNS
    27                  first_name varchar2(30) PATH '/*:Envelope/*:Body/*:UserInfoObjResponse/*:FirstName/text()',
    28                  last_name varchar2(30) PATH '/*:Envelope/*:Body/*:UserInfoObjResponse/*:LastName/text()',
    29                  error_description varchar2(30) PATH '/*:Envelope/*:Body/*:UserInfoObjResponse/*:ErrorDescrition/text()'
    30                  ) r;
    31
    32    dbms_output.put_line ('l_user_first_name: ' || l_user_first_name);
    33    dbms_output.put_line ('l_user_last_name : ' || l_user_last_name);
    34    dbms_output.put_line ('l_error_value: ' || l_error_value);
    35  end;
    36  /
    Length of Request:530
    l_user_first_name: First Name Output
    l_user_last_name : Last Name Output
    l_error_value:
    PL/SQL procedure successfully completed.Max
    http://oracleitalia.wordpress.com
    Edited by: Massimo Ruocchio on Feb 14, 2010 11:55 PM
    Added the first one.

Maybe you are looking for

  • Hissing noise in monitors when plugging external lcd

    Hi, this is a bit off topic, but it's logic related in a way .. When using an external monitor (lcd), as soon as the metal from the monitor plug touches my macbook pro dvi jack, my (audio) monitors produces a hissing noise. The power bar i'm using is

  • Sync problem...HELP!

    Just installed itunes 10.5 on my pc so I could try to upgrade my ipad2 with the ios5. Once 10.1 was installed, and computer restarted, I started Itunes and connected my Ipad2 and It tells me the following message: This Ipad cannot be used because the

  • Navigating to a tab page after a show_window() in on-commit trigger

    I have a multi-tab form. On-commit, the form checks for warnings. When there is one or more warnings it opens a window to list them. With or without warning messages, the data is committed with commit_form. Whenever window with warning messages is di

  • Title photos of web galleries are not changeable?

    Dear everybody, I've been trying to change the "title photo" of some of my web galleries - that is the picture a viewer sees first when entering the gallery overview. Simply putting the desired picture in first place via iphoto doesn't do the job. Do

  • Setting up the iphone

    I just updated my phone to the ios 7 and now the phone wont get through t the activating step. what do i do?