Trigerring BPM from Web Dynpro screen not working

Hi Guys,
I am trying to trigger a BPM process from a Web Dynpro screen so I created a BPM process and created a WSDL and consuming the WSDL in the Web Dynpro app but getting an exception "Exception on creation of service metadata for web service mass config parameters service reference ID '28af57ab-9212-4ffd-90c6-0779c78a8da3' and application name 'demo.sap.com/testwd'. Check mass configuration has been done properly."
Please assist with what I am missing.
Thanks,
-Ash

I ran into the same error when attempting to consume a Process as a web service from my Web Dynpro component.  I found that it is actually succeeding in kicking off my process, but it looks like it fails from my calling component.  It seems to be related to calling a service meant to be asynchronous as a synchronous service.  In my case, it throws a SOAP fault "com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException: Process start has been triggered" when I run it from the WS Navigator manually.  It turns out that the same error is getting wrapped by the exception you were experiencing.  Try using the getCause method to see if the same is true for you.  This environment is still new to me so I don't have good solution on how to make it not throw that error in the first place.
[addendum] I ran across [this|Start BPM Process Trigger - Read timed out] thread that explains exactly what I had guessed.  You can remove the response part of your WSDL and it will get called successfully in an asynchronous manor.  Note that you must manually remove some of the entries in the WSDL since the visual editor with the 7.1 environment doesn't clean up after itself as well as it should.
Edited by: Joseph Robertson on Jan 12, 2011 11:04 PM

Similar Messages

  • NW 7.3 + iView from remote source wizard + R3 Web Dynpro ABAP, not working

    Hi,
    I think this forum is my last resort.
    I'm running NetWeaver 7.3 Enterprise Portal and also have an existing ECC6 on backend.
    Our ABAP Programmer has built some WD4A application on ECC, I'd like to made them available
    on EP as ABAP WebDynpro iView.
    From the document, I know the way to create ABAP WD iView is different since 7.3. I have to use "iView from remote source" to do it.
    On EP side, I have made an system alias (test ok) for ECC, assigned permission, provide mapping id/pwd, and test. 
    On ABAP side, all webdynpro app are activated (T-code sicf, /sap/bc/webdynpro, /sap/public/bc/webdynpro...). I can even test WAS by bringing up browser and access some sample ABAP webdynpro .
    However, I cannot success on "iView from remote source" wizard and it always show me "Nothing found. Check your search Criteria.".   Eventhough I use "*" as search criteria.
    Anyone has the similar situation ? I even doubt that it is a placeholder of a feature , not working for now. Anyone made it work on NW 7.3 ?
    More detail:
    My System Alias for ECC:   
          Application Host: myr3.mydomain.com
          SAP Client: 600
          SAP System ID:   DEV
          SAP System Number: 00
          Server Port:  <leave it blank>
          System Type: SAP_R3
          Logon Method:  UIDPW
          User Mapping Type: admin,user
          ICM Host: myr3.mydomain.com:8000
          ICM Protocol: http
          ICM URL prefix: <leave it blank>
          SAP Netweaver AS Description: <leave it blank>
    All other fileds are leave it as default value
    I also assign a group to have "read" and "user" permission to this system
    Also assign Alias to the system.
    I also create a user belong to the group, assign his system mapping an ECC user ID & PWD to it.
    I tested the System alias, it is working (both WEB AS  test, and R3 test)
    Then I try to create an iView on EP, under a PCD folder , new->iview->iview from remote source. A wizard show up. Then I can select the ECC alias just created, and provide * as application search criteria, and then select "WEB DYNPRO ABAP" as the application type. Then "GO"
    as I mentioned, it always show "Nothing Found. Check your search crieteria"
    But I'm sure the web dynpro applications are activated on R3.
    OK, that's it, please help this one. Thanks
    IF YOU DID MAKE IT WORK ON YOUR NW 7.3, PLEASE DROP A LINE HERE SO I KNOW IT IS MY OWN PROBLEM !!!
    Edited by: Wilson KU on Nov 14, 2011 10:42 AM
    Edited by: Wilson KU on Nov 14, 2011 10:46 AM

    Thanks for the reply,
    [About Backend]
    I feel confident about the backend R3 system because I can use the WAS URL to access the sample WD4A application, for example, I can bring up the wd4a application ui in my browser. It is purely browser and R3 stuff, no EP involved.
    http://soeprdev.mydomain.com:8000/sap/bc/webdynpro/bobf/demo_sales_order?sap-client=600&sap-language=ZF
    I also already activate all nodes and sub-nodes (in SICF Services) under /sap/bc/webdynpro as well as /sap/public/bc/webdynpro. (and some other nodes to make icon and include work)
    [About the system object in EP]
    I have done all kind of test on the system object (alias):
    1. In EP System Administration -> Landscape Configuration, I select the system object, click "Test Connection", It shows me a Check mark, and the detail message is SOE_DEV_600 connection
    2. Edit the System object, then click on "Connection Tests" page, I see two lines there, check both and click test, here is the result:
    SAP Web AS Connection:
    : Test Details:
    The test consists of the following steps:
    1. Check the validity of the system ID in the system object
    2. Check if the system can be retrieved
    3. Check if the system object has a valid system alias
    4. Check if an SAP system is defined in the system object
    5. Validate the following parameters: Web AS protocol; Web AS hostname
    6. Checks if the host name of the server can be resolved.
    7. Pings the Web AS Ping service (works only if the service is activated on the Web AS, and only on ABAP Web AS)
    8. Check HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. System retrieved successfully
    3. Retrieval of the default alias was successful
    4. The system object represents an SAP system
    5. The following parameters are valid: ICM Protocol (http) ICM Host Name (soeprdev.mydomain.com:8000)
    6. The host name (soeprdev.mydomain.com) was resolved successfully
    7. The Web AS ping service http://soeprdev.mydomain.com:8000/sap/bc/ping was pinged successfully
    8. An HTTP/S connection to http://soeprdev.mydomain.com:8000 was obtained successfully.
    Connection Test for Connectors:
    : Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the back-end application using the connector defined in this system object
    Results
    Default alias retrieved successfully
    Connection successful

  • Submit Button In Web Dynpro Layout not working.

    Hi All,
             I have integrated an adobe form in my web dynpro application.According to my requirement the view of screen should change when the user clicks on submit button.So I have given the submit button as one of the UI element in my WD object along with the form.But when I click on the submit button the functionality doesnot work.
    The same submit button works when there is no adobe form integrated in my WD application.
    Please let me know what needs tyo be done so make that submit button work.
    Thanks and Regards,
    Sarang

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • SAP Web Dynpro iView not working!

    We are trying to run BI reports based on Web Dynpro ABAP in portal.  I created a SAP Web Dynpro iView with following parameters
    System : SAP_LocalSystem
    Namespace : sap
    Applicatioin Name : ZXXXXX_RRE  (This is the template name)
    When I try to preview the report I get portal runtime error with following error dump in log file
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template
    &#39;&lt;System.Access.WAS.protocol&gt;://&lt;System.Access.WAS.hostname&gt;/sap/bc/webdynpro/&lt;WebDynproNamespace&gt;/&lt;WebDynproApplication&gt;/;sap-ext-sid=&lt;ESID[url_ENCODE]&gt;?sap-ep-iviewhandle=007&lt;ESID[HASH]&gt;&amp;sap-wd-configId=&lt;WebDynproConfiguration&gt;&amp;sap-ep-iviewid=&lt;IView.ShortID&gt;&amp;sap-ep-pcdunit=&lt;IView.PCDUnit.ShortID&gt;&amp;sap-client=&lt;System.client&gt;&amp;sap-language=&lt;Request.Language&gt;&amp;sap-accessibility=&lt;User.Accessibility[SAP_BOOL]&gt;&amp;sap-rtl=&lt;LAF.RightToLeft[SAP_BOOL]&gt;&amp;sap-ep-version=&lt;Portal.Version[url_ENCODE]&gt;&amp;sap-wd-tstamp=&lt;$TimeStamp&gt;&amp;&lt;ProducerInfo&gt;&amp;sap-explanation=&lt;User.Explanation[SAP_BOOL]&gt;&amp;&lt;StylesheetIntegration[IF_true PROCESS_RECURSIVE]&gt;&amp;&lt;Authentication&gt;&amp;&lt;DynamicParameter[PARAMETER_MAPPING PROCESS_RECURSIVE]&gt;&amp;&lt;ForwardParameters[QUERYSTRING]&gt;&amp;&lt;ApplicationParameter[PROCESS_RECURSIVE]&gt;&#39;; the problem occured at position 310. Cannot process expression &lt;System.client&gt; because Invalid System Attribute:
    System:    &amp;#39;SAP_LocalSystem&amp;#39;,
    Attribute: &amp;#39;client&amp;#39;.
    I have checked SAP_BW system object and tested the connections all connection test for SAP_BW is successful.  BI Portal system is set up with SAP web dispatcher, ITS and WEB host names in system object are configured something like xxxx.hostname.com:443 since it's SSL.
    Am I missing anything here?
    Thanks
    Praveen

    Hello Pravin,
    Currently i am also facing the same error. I am having set of Webdynpro-ABAP applications, and accessing from Portal.
    I tested respective applications from SE80, all are working fine.But while accessing from Portal its giving Portal runtime error-Unable to parse etc....
    I checked my system object.. both WAS and ITS connections are successful.but i mentioned its related to ITS, where can i test my ITS further level..
    Though these are WDA applications , how these related to ITS..
    I am also getting same error message.. Please suggest how can i go head
    Thanks in Advance
    Ganesh

  • Web Dynpro applications not working on ECC 6.0 IDES

    Hi,
    I'm new to Web Dynpro and developed a custom Web Dynpro (including the application) on a ECC 6.0 IDES system. It's simple with a couple of input fields. When I test it (either via SAP GUI 7.1 or 7.2, or Web GUI), it appears on the browser ok but the screen is frozen. I can't enter anything into the fields, etc. I also tested SAP Web Dynpro applications and they act the same way, frozen screen. There aren't any errors displayed or any runtime errors in ST22. Please advise. I searched this forum but didn't see any issue similar to mine. The IDES vendor suggested I post the issue on SDN.
    John

    I guess it has do to with some sort of browser's font size or view settings.
    press ctrl +0  make the zoom 100% and font size medium and try again.
    thanks
    sarbjeet singh

  • Web dynpro URL not working in user's UWL

    Hi,
    I am not sure if this is the right place for this question. I have created a web dynpro application and copied the URL and we put this URL in the UWL of a user using workflow, now the issue is when a user click on that URL on the portal side it's not doing anything but when I go r/3 side and click on the URL in my inbox I can see my web dynpro application running.
    Any idea why is this happening.
    Thanks,
    Raj

    Hi,
    Have you checked the proxy settings in server? If yes use this code
    URL u = new URL("http://download.finance.yahoo.com/d/quotes.rss?s=gm&d=t&f=l1t1c1");
    System.getProperties().put("proxySet", "true");
    System.getProperties().put("proxyHost", <HTTP Proxy Host> );
    System.getProperties().put("proxyPort", <HTTP Proxy Port> );
    InputStream is = u.openStream();
    DataInputStream dis = new DataInputStream(new BufferedInputStream(is));
    You can check the proxy settings in System Administration - >System Configuration -> Service Configuration -> Applciations ->com.sap.portal.ivs.httpservice -> Services -proxy.
    Regards
    Suresh Bachimanchi

  • After applying SP21 the web dynpro is not working (WDTypeNotFoundException)

    Hi
    We have recently applied SP21 to our NW04 system.
    The patch was successfully applied. But while accessing the Web Dynpro, we are getting WDTypeNotFoundException exception.
    The Error Message is as follows :
    +500 Internal Server Error
    Web Dynpro Container/SAP J2EE Engine/6.40
    Failed to process request. Please contact your system administrator.
    Hide
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    500 Internal Server Error
    Web Dynpro Container/SAP J2EE Engine/6.40
    Failed to process request. Please contact your system administrator.
    Hide
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type jp.co.companyname.projectname.pp.fnp09.datapreparemodel.types.Ru_cnfind not found
    at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:224)
    at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:318)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.addAttribute(NodeInfo.java:517)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.addAttribute(NodeInfo.java:530)
    at jp.co.companyname.projectname.pp.fnp09.main.RawMaterialView.wdDoModifyView(RawMaterialView.java:191)
    ... 28 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
    Version
    DOM version
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, Build ID: 6.4021.00.0000.20070905102710.0000 (release=630_VAL_REL, buildtime=2007-09-19:20:40:15UTC, changelist=460812, host=PWDFM026)
    J2EE Engine 6.40 patchlevel 109749.313
    Java VM Java HotSpot(TM) Server VM, version:1.4.2_13-b06, vendor: Sun Microsystems Inc.
    Operating system Windows 2003, version: 5.2, architecture: x86
    Other
    Session Locale ja
    Time of Failure Mon May 17 18:35:52 JST 2007 (Java Time: 1197884152810)
    Web Dynpro Code Generation Infos
    companyname.co.jp/pp~fnp09
    SapDictionaryGenerationCore 6.4010.00.0000.20040910101802.0000 (release=630_VAL_REL, buildtime=2004-12-09:22:23:41UTC, changelist=280522, host=PWDFM026.wdf.sap.corp) +
    If you have any ideas please let me know.
    thanks and Regards
    Raghunahth L

    Hi raghu,
    You can go to Visual administrator (/usr/sap/<SID>/JCxx/j2ee/admin--go.bat)
    Give administrator credentials..
    Cluster-Server-Services-webdynpro Runtime.
    See if it is stopped.You can see red croos,if it is stopped.If it is,
    Right click on Webdynpro Runtine and  start.
    One more option,you can give a try is start all teh srvices manually through
    telnet
    This can be done with "run' command on you system
    telnet <IP adress> telnet port
    telnet port will be http port ending with 8.
    then give administrtaor credentials.
    then go with these commands,
    jump 0
    add deploy
    list_app
    start_app-all
    Try looki in for detailed error messages in default trace and application logs.
    Loc : /usr/sap/<SID>/JCxx/j2ee/cluster/server0/log
    Regards
    Usha

  • Import photo from web to iphoto not working

    I follow the directions of Apples own design to download photos to a folder and then transfer them into an album in iPhoto. Each time I do so, I get the follow error message:
    __Can't make «class impo» of application "iPhoto" into type boolean. (-1700)__
    Here is a link to page describing how to do this.
    http://www.apple.com/macosx/features/automator/example2.html
    Thought maybe had a corrupt or something wrong with library. I decided to copy library to new drive and start fresh with a new library. Used the program iPhoto Library Manager to do this. Now I have deleted the old library under Pictures and have created new library. Still the same results.
    I also try the contextual method where I can select "Add Image to iPhoto Library" but nothing happens there either. I don't get the error message.. iphoto launches but no added image.
    This has never worked for me. Anyone have any ideas?

    I have been sucessfully downloading linked photos from some web pages with Automator. I have been able to download them into a folder on the desktop with
    out using iPhoto. It is the website that determines if they can be downloaded. If each page of the website has a different URL and each photo has it's own URL then they can be downloaded by the page with Automator. If the URL at the top of the page remains the same as you move from page to page or image to image then Automator will not download any of the images. My website is the type with a different URL for each page and image. Give it a try with Automator. http://www.philsaeronauticalstuff.com. I use tables to build my webpage;not CSS.

  • Input element in web dynpro java not working

    Hi,
    Iam new to webdynpro java. iam trying on external context mapping example from sap help.when i run the application i have assigned a context to a input element that should be accessed  by another other component's window view .when i follow steps given in diagram for external context mapping when i run the application i am not able to enter the data into the input textbox.it became read only.plz suggest me a good example for external context mapping and some times i am not able to enter a value for input field when i assign a context attribute to it.i have assigned a node context to the input element.
    Thanks and regards
    prasad

    Hi Prasad,
    An externally mapped node always exists within the context of a component interface controller and have its isInputElement property set to true.
    External context mapping is possible only for independent nodes of a component interface controller not independent attributes.
    Also, for external context mapping, look at below thread -
    external context mapping
    Regards,
    Sen

  • UWL - Records not getting into LeaveRequestApproval web dynpro screen

    Hi,
    We are on EP7 sp9 and ECC 6.0. We are working with UWL. In UWL, we downloaded the standard XML file and done changes for removing the other tabs except the 'Tasks' tab and also placed the refresh button on main screen. It looks fine. Now, the problem is the web dynpro screen is not pulling data from backend. Previously, when we click on 'LeaveRequestApproval' work item, we use to get ITS screen. at backend we did changes in SWFVISU transaction to get web dynpro popup screen when user clicks on 'LeaveRequestApproval' work item. We could able to get the popup web dynpro screen, but it is not pulling any records from backend.
    Now, let us know where we are doing mistake? do we need any more configuration at backend? If so, let us know the work around for it.
    Thanks in advance.
    Kind regards,
    Raj.

    Hi,
    But are you able to see the labels, buttons etc ? Or is it that the entire page itself is not visible ?
    Please check the log file and see what is the error you get there ? Or probably check on the backend side if there is a dump.
    You can also check with the debugger on the backend side...see what exactly happens on the backend when the page is getting loaded.
    Cheers,
    Sunil
    PS: Reward points for helpful answers.

  • My tx is so slow, the web cam is not working, the screen freezes and got color distortions

    - My tx is so slow, and heats up very fast... so i think that the advance is not working properly
    - the web cam is not working, since the 3th time iused... when i try to use it with my msn... got freezed, then y try ending the process and doesnt work, y     have to restart it but it stay just on logging off... and do nothing more... so i have to switch off directly from the power button
    - The screen freezes... some thimes the screen got freezed... and got color distortions too... so i have to to switch off again directly from the power button
    i was thinking that it was a software problem... but i restore my lap and it doesnt work cuz it still being with the same problems... so lately im thinking that its a hardware problem... i call to technical support from mexico... but they can do nothing for me cuz i bought my lap at circuitcity from el paso... and that store close a few months ago... so i need help before de warrantie expires...
    This is the second time that my lap gives me problems, last time I made the change at the store but this time it will be impossible cuz is now closed...
    that is why I seek your help...
    i will be grateful if you answer in Spanish because my English is not very good...
    thankyou so much...

    If your warranty has not yet run out get it serviced, now!  All of the comments seem to indicate that it is the motherboard>

  • How to create PDF from a web dynpro screen

    Hi all,
    I am in the process of creating my first web dynpro application for parking a document, the new requirement is when the user parks the document, a PDF of the web dynpro screen should also be generated. Can you please tell me how can I achieve that.
    Thanks,
    Rajat

    A PDF generated from the screen?  There is no SAP delivered functionality to do this. I might suggest that you just use the browser print and print to a PDF generated virtual printer.  Otherwise you would have to design an Adobe Form (and run it within WDA using the InteractiveForm) that matched the interface of the WDA screen.  There is no automatic generation.  You would have to design and maintain each independently.

  • Replaced iPod screen myself, screen not working. Will i be eligible to get a screen   LCD repair from Apple ?

    I dropped my ipod by accident and i decided to repair the ipod myself by buying a screen off eBay. I replaced the the screen and everything was working when i tested the iPod before screwing the backplate back on. When i closed the iPod, it had a white screen when i power up. I held the power and home button for 30 second and nothing happens. The power button still powers the screen on and home, and when i hold it down it powers off the iPod.Replaced iPod screen myself, screen not working. Will i be eligible to get a screen + LCD repair from Apple ?
    Will i still be eligible to get a screen + LCD repair from Apple ?

    No, you are not eligible.

  • How to hide Interactive form in Web dynpro screen

    Hi all,
    I am working on an application where a user will enter the vendor number and based on that vendor the information of the vendor such as his name, address should get filled in the interactive form that we have created. I am able to get the vendor information at the back end and I have created a print button and hitting on that print button will actually fill the form. But now my problem is when I run the application the form is already displayed on the web dynpro screen (without any vlaues) and when I hit print button the form gets filled with correct values but I don;t want form to be pre displayed until and unless user hits print button. Can you please tell me how can I do this.
    Thanks,
    Rajat

    Hi Thomas,
    Thanks for quick reply.
    Let me explain you what I want... I am very new to webdynpro so my questions may sound very basic or may be weird.
    I have an application where the user will enter the vendor number on the web dynpro screen and then will hit the button PRINT and when he hits print  button the PDF form should be displayed on the web dynpro screen. So far when I run my application the vendor number (input field) is there and a print button is also there but beneath there is the whole interactive form is showing up (a balnk) and when I enter the vendor number and hit print the same form will get filled up with the required data.
    What I want is when I execute my application and on the web dynpro screen only the vendor number field and the print button should be visible and not the PDF form, the PDF form should only be displayed once user hit print button. I tried to change the value of the property from visible to none and what it did was the PDF form was not visible on the web dynpro screen on both the occassion i.e. when I execute the the web dynpro applkication and after when user hits print button.
    Thanks,
    Rajat

  • How to get the Response Code when a URL is launched from Web Dynpro

    Hello Experts,
    I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
    But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
    I am using the following code to get the Response Code:
    try{
    URL url = new URL("Some Url");
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.connect();
    wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
    }catch(Exception e){
    wdComponentAPI.getMessageManager().reportSuccess("Exception");
    Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
    i always get Response Code=  500 (which is for Internal Server Error) shown in the messgae i have printed.
    Please let me know the correct way of getting the Response Code from Web Dynpro.
    Also my resource is lying on a SAP Portal 6.4
    Best Regards
    Sundeep
    Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
    Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AM

    Hi,
      Check this code from /thread/5242768 [original link is broken] if it works.
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    // print exception
    Regards,
    Harini S

Maybe you are looking for

  • JRE 1.3.1 Bug May Screw Up Your Executable JAR File

    Hi; I just submitted this bug report to sun. It could save you a lot of pain. If you have both the JDK and a seperatley obtained Sun JRE on your computer you could build a deprecated code and not know it until you distribute your app to your user or

  • How to add files from iPod to new hard drive after krasch?

    My hard drive recently crasched. I use my iPod as back up. But now, I cannot find out how to copy the files back to the new hard drive on the computor. The iTune program only advices me to delite all information on the iPod to substitute it with the

  • Weblogic Console or applications not responding and non responsive

    Hi! We are using Bea Weblogic 10 app server which is deployed on an AIX(6.1) machine. Everything was working fine until 2 days ago. What happens is, periodically ( like once every hour) none of the applications work and even the Admin console is not

  • Overrides on Styles for Imported files

    I am importing word docs into InDesign to apply formatting and layout but it is applying overrides to the styles. Is there a way to import without overrides?

  • Next Number Maintenance - IncrementBy is used for what?

    Hello everybody, as I'm developing a webservice I've used the "IncrementBy" of my next number template as the value which is added to the current sequence of the number. Let me provide an example: The current sequence is 1 The IncrementBy value is 6