Tracing of client's part request's with OO4O

any sugestions about subj ?
(like as OracleMonitor for DOA does)
thanks

I only know of two ways to get the Client IP address. The first is using the WebUtil library and the webutil_clientinfo.get_ip_address method. WebuUtil is included with Oracle Forms, but you have to complete the configuration for it and download the JAva COMmunication Bridge (jacob.jar) from SourceForge. The instructions for completing the configuration are found in the Forms Help System. Just search on "WebUtil" and print/read the following articles: Configuring WebUtil and Runtime Setup Checklist. These articles will get you started. I would also recommend reading the Introduction to WebUtil, WebUtil User's Guide 11g, and Functions in WebUtil to get acquanted with what WebUtil can do.
The second method is using the "clientinfo.jar" Java Bean which can be obtained from Oracle Forms Community - Pluggable Java Components & Java Beans' library operated by Francois Degrelle. I've used both methods with Forms 11g. Both methods require some configuration setup in order to use, but the "clientinfo.jar" is probably the easiest to setup, but you get far more functionality with WebUtil. If you don't need the extra functionality offered by WebUtil, then the "clientinfo.jar" is most likely the best option for you; but you will need to evaluate both options and decide which is best for you. :)
Hope this helps.
Craig...

Similar Messages

  • KDE Printer Manager fails with "client-error-bad-request"

    I'm having some trouble with printing on my system. The KDE printer manager shows "client-error-bad-request" and no other information. When I run the KCM from the command line, I also get "kcmshell(17286) KCupsRequest::serverError: status unrecognised:  1024" on the console. I wasn't able to find any useful information on this issue on google or these forums; not even what the 1024 status code means. It seems to me that this may be a bug in the kcm_printer_manager module, but I'd like to rule out other possibilities first. Unfortunately, I don't know what to try from here. I'll provide as much potentially relevant information as I can think of below.
    Changes since last successful print job:
    Multiple updates to KDE packages
    Update to cups that changed systemd unit file names.
    Stopped and disbled old units
    daemon-reload
    Enable and start new units
    Other updates to cups since then, if I recall correctly.
    Packages and versions:
    kdeutils-print-manager 4.14.3-1 (owns kcm_printer_manager module for kcmshell4)
    kdebase-runtime 4.14.3-1 (owns kcmshell4 binary)
    cups 2.0.1-1
    libcups 2.0.1-1
    systemd 218-1
    linux 3.17.6-1
    Let me know if any other information might be helpful.

    Anyone please help.
    Thanks,
    Orton

  • Access Exchange Service From SharePoint 2013 Custom Web part getting The request failed with HTTP status 401: Unauthorized.

    I want to Fill a drop down with Outlook Meeting of Current log-in user in SharePoint 2013 web part for default credentials I am using the following code
     ExchangeServiceBinding binding = new ExchangeServiceBinding();
                ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
                binding.RequestServerVersionValue = new RequestServerVersion();
                binding.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2010_SP2;
                binding.PreAuthenticate = true;
                binding.UseDefaultCredentials = true;
                binding.Credentials = CredentialCache.DefaultCredentials ; 
                string server = "https://*********/ews/Exchange.asmx";
                binding.Url = server;
    I Am Getting the Error "The request failed with HTTP status 401: Unauthorized."
    but when I Replace  the line  
    binding.Credentials = CredentialCache.DefaultCredentials ; 
    with 
     binding.Credentials = new NetworkCredential(userName, password, domain);
    Its run fine.  Is there any way I could able to use default credential.
      

    Hi,
    As this question is more relate to Exchange development, I suggest you post it to the corresponding forum, you will get more help and confirmed answers from there.
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=exchangeserver
    Best regards
    Patrick Liang
    TechNet Community Support

  • Service Clients failing with "The request failed with HTTP status 401: Unauthorized"

    Hello,
    We have implemented a solution using the SSRS web service clients as produced by the WSDLs.  We have deployed the application on one server, and via the code we are calling the SSRS on another server (i.e., not using ReportViewer, etc.).  We do
    know that the user signed in has permissions since from the same staging server the Report Manager and Reports can both be accessed and viewed.  However, it's only when we run the application and attempt to execute a report on the remote SSRS server that
    we get the following error:
    The request failed with HTTP status 401: Unauthorized. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
    methodName, Object[] parameters) at AMC.AssetTracker.Reporting.ReportExecution.ReportExecutionService.LoadReport(String Report, String HistoryID) at AMC.AssetTracker.Reporting.Report.GetReportByteArray() at AMC.AssetTracker.Reporting.Report.get_ReportStream()
    at AMC.AssetTracker.Reporting.Report.get_GetWebUIDisplay() at AMC.AssetTracker.UserControls.AssetTrackerMain.btnGenerate_Click(Object sender, EventArgs e)
    The credentials we have tried are the DefaultCredentials.  One question I have is how do you use custom credentials if neither the DefaultCredentials or the DefaultNetworkCredentials work?  Also, this service call does have to go through an ISA
    server before reaching the SSRS server.
    Any ideas?
    Thanks.

    It sounds like Kerberos authentication is needed in your situation since it's not on the same box.
    There is a one-hop limit with NTLM authentication.
    For more info please see the link below:
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/452e9627-cd8e-4709-bdd0-fbafcf9fd719
    Hope this helps!
    Thanks, Michael Mei

  • "The request failed with HTTP status 401: Unauthorized"

    Hi,
    I'm trying to get both RSS feeds and SSRS reports on a web application which is having NTLM authentication without Kerberos. The catch is proxy setting, if I give <proxy autoDetect="false" /> in web.config of my sharepoint web
    application SSRS reports will be rendered in SQL Server Report viewer perfectly (I deploy using BIDS), but RSS viewer webpart will not display my internet feeds. If I give
    <proxy autoDetect="true" /> RSS feeds are displayed properly but SSRS report will throw the following error.
    The request failed with HTTP status 401: Unauthorized.
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [WebException: The request failed with HTTP status 401: Unauthorized.]
    System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +412862
    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
    Microsoft.SqlServer.ReportingServices2005.Execution.ReportExecutionService.ListRenderingExtensions() +53
    Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.ListRenderingExtensions() +207
    Microsoft.Reporting.WebForms.ServerReport.ListRenderingExtensions() +130
    Microsoft.ReportingServices.SharePoint.UI.WebParts.ActionMenu.OnPreRender(EventArgs e) +180
    System.Web.UI.Control.PreRenderRecursiveInternal() +108
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
    I tried to work around this by adding proxy settings with bypass list.
    <system.net>
        <defaultProxy useDefaultCredentials="true">
          <proxy proxyaddress="http://<proxy IP address>:<port>" bypassonlocal="true" usesystemdefault="true" />
          <bypasslist>
      <add address="<my report server>" />
      <add address="http://<report server>:8080/reportserver/" /> 
      <add address="<IP of my report server>" />
          </bypasslist>
        </defaultProxy>
    </system.net>
    This makes RSS feed to work but SSRS throw the above error. I would need some advice from Microsoft on how to fix this.
    Note: My sharepoint site cannot be anonymous. I have just once service account that runs sql server service, report service, sharepoint services etc. This account is local admin on all servers, has highest access on sql box, run SSRS web service and app
    pools, etc.
    I have four servers, 2 WFE in windows load balanced, 1 app server (running Central admin and report service in sharepoint integrated mode), 1 db server hosting all content and config dbs and report server db.
    Regards,
    Manoj
    Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

    Hi,
    Thanks to share your post.
    For the issue,
    do you mean that the error happen with the use of NTLM authentication without Kerberos? If yes, the possible cause should be the lacking of Kerberos.
     My suggestion is to implement the Kerberos authentication in your environment. You may check it and test it. For the detailed steps of implementing of the Kerberos:
    http://blogs.msdn.com/b/martinkearn/archive/2007/04/23/configuring-kerberos-for-sharepoint-2007-part-1-base-configuration-for-sharepoint.aspx.
    http://blogs.msdn.com/b/james_world/archive/2007/08/20/essential-guide-to-kerberos-in-sharepoint.aspx.
    Hope this could help you!
    Leo

  • The request failed with HTTP status 404: Not Found

    Hi
    BPC version we are using is : 5.0.502
    When we  Publish all reports using the steps below:
    a. Log into BPC Web
    b. Click on Available Interfaces> Select BPC for Administration
    c. Under Web Admin Task Click Publish Reports
    d. Select all of the reports and click the green check mark to publish the
    reports.
    I am getting following message 'System.Exception: The request failed with HTTP Status 404: Not Found. Event log relation to this error is given below.
    Event Type:     Error
    Event Source:     OutlookSoft log
    Event Category:     None
    Event ID:     0
    Date:          12/8/2008
    Time:          11:26:42 AM
    User:          N/A
    Computer:     BPCAPP
    Description:
    ==============[System Error Tracing]==============
    [System  Name] : OSoftCPM
    [Message Type] : ErrorMessage
    [Job Name]     : AuditMgrService/SetAuditReportFiles
    [DateTime]     : 12/8/2008 11:26:42 AM
    [UserId]       : MMPlanning
    [Exception]
        DetailMsg  : {The request failed with HTTP status 404: Not Found.}
    ==============[System Error Tracing  End ]==============
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.
    We tried ' Publish all reports' as the resolution of error 'object variable or with block variable not set' on modifying an application as per sap note Note 1131320
    If anyone knows the resolution for the above issue, please help me.
    Thanks in advance
    Sajeev Abraham

    Hi
    Thanks for the response.
    Below are the full contents of the error message pop-up.
    ( System.Expection: the reguest failed with HTTP status 404:Not found at
    Microsoft.Visualbasic.CompierServices.lateBinding.LateGet(Object o, Type,String name, Object
    []args,sTRING[]paramnames, Boolen[]CopyBack)
    at OSoft.Services.WebServices.ReportmanageProxy.ReportManageProxy.SetPubishReport(String strAppSet,string
    strApp,string strFiter)
    url is given below
    http://<HostName>/osoft/Admin/WebAdminMain.aspx
    BPC Deployment is Multiple server ( Two servers) Database and Application deployed seperately.
    Sql Reporting server is working.. I could connect using sql management studio.
    Thanks

  • 'System.Exception: The request failed with HTTP Status 404

    Hi
    BPC version we are using is : 5.0.502
    When we  Publish all reports using the steps below:
    a. Log into BPC Web
    b. Click on Available Interfaces> Select BPC for Administration
    c. Under Web Admin Task Click Publish Reports
    d. Select all of the reports and click the green check mark to publish the
    reports.
    I am getting following message 'System.Exception: The request failed with HTTP Status 404: Not Found. Below are the event log relation to this error.
    Event Type:     Error
    Event Source:     OutlookSoft log
    Event Category:     None
    Event ID:     0
    Date:          12/8/2008
    Time:          11:26:42 AM
    User:          N/A
    Computer:     BPCAPP
    Description:
    ==============[System Error Tracing]==============
    [System  Name] : OSoftCPM
    [Message Type] : ErrorMessage
    [Job Name]     : AuditMgrService/SetAuditReportFiles
    [DateTime]     : 12/8/2008 11:26:42 AM
    [UserId]       : MMPlanning
    [Exception]
        DetailMsg  : {The request failed with HTTP status 404: Not Found.}
    ==============[System Error Tracing  End ]==============
    We tried ' Publish all reports' as the resolution of error 'object variable or with block variable not set' on modifying an application as per sap note Note 1131320
    If anyone knows the resolution for the above issue, please help me.
    Thanks in advance
    Sajeev Abraham

    Hi,
    This forum is for BI Integrated planning an BW/SEM BPS. For BPC related questions please post this message in the forum for Enterprise Performance Management (Enterprise Performance Management (SAP EPM)).
    Best regards,
    Gerd Schoeffl,
    SAP NetWeaver RIG BI

  • How can I force a out-of-date client to do a sync with master?

    I use 'DB_REPMGR_ACKS_NONE' for some clients which locate in different areas. But sometimes the network is not that good, and causes the client data out-of-date.
    My question is that:
    1. Is there a api that can do a manual sync without restarting the deamon? It seems 'DB_ENV->rep_sync' does not work. I know if I restart the client deamon, I can do it. But if I not?
    2. If I continue to put lots of data on a master, it seems the client can catch up with master because I found that the 'next_lsn' of client is same with master. But if I only put some small data on a master, the 'next_lsn' of client still fall behind..Can you tell why?
    Here's my environment:
    Linux
    db-4.6.21
    using repmgr, not base api
    Regards,
    Steve

    Hi Steve,
    There is no API for on-demand synchronization with the master. The
    rep_sync method is for something else. Please read about
    "Synchronizing with a master":
        db-4.6.21/docs/ref/rep/mastersync.htmlThe only way to force resychronization on demand is to close the
    environment and open it again.
    A replication client checks the log sequence number of each incoming
    log record, and can detect gaps in the sequence. If some log records
    are lost due to network problems, then when later log records arrive
    the client detects the missing records.
    Generally the client will then request a new copy of the missing log
    records from the master. However, it does not do so immediately,
    because a perceived gap in the sequence of log records could instead
    be nothing more than the fact that incoming log records can sometimes
    be processed out of order. (Log record messages can also be
    transmitted out of sequence in some network environments that don't
    use TCP/IP -- but if you're using repmgr that is of course not the
    case.)
    Instead, the client waits for some number of out-of-sequence log
    records before issuing the request for retransmission. One thing that
    you can do is to tune the parameters governing this gap processing
    algorithm. However, most users should not need to do this.
        db-4.6.21/docs/api_c/rep_request.htmlAlan Bram
    Oracle

  • Archive log missing on standby: FAL[client]: Failed to request gap sequence

    My current environment is Oracle 10.2.0.4 with ASM 10.2.0.4 on a 2 node RAC in production and a standby that is the same setup. I'm also running on Oracle Linux 5. Almost daily now an archivelog doesnt make it to the standby and oracle doesnt seem to resolve the gap sequence from the primary. If I stop and restart recovery it gets the logfile and continues recovery just fine. I have checked my fal_client and fal_server settings and they look good. The logs after this error do continue to get written to the standby but the standby wont continue recovery until I stop and restart recovery and it fetches this missing log.
    The only thing I know thats happening is that the firewall people are disconnecting any connections that are inactive for 60 minutes and recently did an upgrade that they are claiming didnt change anything:)  I dont know if this is causing this problem or not. Any thoughts on what might be happening?
    Error in standby alert.log:
    Tue Jun 29 23:15:35 2010
    RFS[258]: Possible network disconnect with primary database
    Tue Jun 29 23:15:36 2010
    Fetching gap sequence in thread 2, gap sequence 9206-9206
    Tue Jun 29 23:16:46 2010
    FAL[client]: Failed to request gap sequence
    GAP - thread 2 sequence 9206-9206
    DBID 661398854 branch 714087609
    FAL[client]: All defined FAL servers have been attempted.
    Error on primary alert.log:
    Tue Jun 29 23:00:07 2010
    ARC0: Creating remote archive destination LOG_ARCHIVE_DEST_2: 'WSSPRDB' (thread 1 sequence 9265)
    (WSSPRD1)
    ARC0: Transmitting activation ID 0x29c37469
    Tue Jun 29 23:00:07 2010
    Errors in file /u01/app/oracle/admin/WSSPRD/bdump/wssprd1_arc0_14024.trc:
    ORA-03135: connection lost contact
    FAL[server, ARC0]: FAL archive failed, see trace file.
    Tue Jun 29 23:00:07 2010
    Errors in file /u01/app/oracle/admin/WSSPRD/bdump/wssprd1_arc0_14024.trc:
    ORA-16055: FAL request rejected
    ARCH: FAL archive failed. Archiver continuing
    Tue Jun 29 23:00:07 2010
    ORACLE Instance WSSPRD1 - Archival Error. Archiver continuing.
    Tue Jun 29 23:00:41 2010
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    Tue Jun 29 23:00:41 2010
    FAL[server, ARC2]: Begin FAL archive (dbid 0 branch 714087609 thread 2 sequence 9206 dest WSSPRDB)
    FAL[server, ARC2]: FAL archive failed, see trace file.
    Tue Jun 29 23:00:43 2010
    Errors in file /u01/app/oracle/admin/WSSPRD/bdump/wssprd1_arc2_14028.trc:
    ORA-16055: FAL request rejected
    ARCH: FAL archive failed. Archiver continuing
    Tue Jun 29 23:00:43 2010
    ORACLE Instance WSSPRD1 - Archival Error. Archiver continuing.
    Tue Jun 29 23:01:16 2010
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    Tue Jun 29 23:15:01 2010
    Thread 1 advanced to log sequence 9267 (LGWR switch)
    I have checked the trace files that get spit out but they arent anything meaningful to me as to whats really happening. Snipit of the trace file:
    tkcrrwkx: Starting to process work request
    tkcrfgli: SRL header: 0
    tkcrfgli: SRL tail: 0
    tkcrfgli: ORL to arch: 4
    tkcrfgli: le# seq thr for bck tba flags
    tkcrfgli: 1 359 1 2 0 3 0x0008 ORL active cur
    tkcrfgli: 2 358 1 0 1 1 0x0000 ORL active
    tkcrfgli: 3 361 2 4 0 0 0x0008 ORL active cur
    tkcrfgli: 4 360 2 0 3 2 0x0000 ORL active
    tkcrfgli: 5 -- entry deleted --
    tkcrfgli: 6 -- entry deleted --
    tkcrfgli: 7 -- entry deleted --
    tkcrfgli: 8 -- entry deleted --
    tkcrfgli: 9 -- entry deleted --
    tkcrfgli: 191 -- entry deleted --
    tkcrfgli: 192 -- entry deleted --
    *** 2010-03-27 01:30:32.603 20998 kcrr.c
    tkcrrwkx: Request from LGWR to perform: <startup>
    tkcrrcrlc: Starting CRL ARCH check
    *** 2010-03-27 01:30:32.603 66085 kcrr.c
    Beginning controlfile transaction 0x0x7fffd0b53198 [kcrr.c:20395 (14011)]
    *** 2010-03-27 01:30:32.645 66173 kcrr.c
    Acquired controlfile transaction 0x0x7fffd0b53198 [kcrr.c:20395 (14024)]
    *** 2010-03-27 01:30:32.649 66394 kcrr.c
    Ending controlfile transaction 0x0x7fffd0b53198 [kcrr.c:20397]
    tkcrrasgn: Checking for 'no FAL', 'no SRL', and 'HB' ARCH process
    # HB NoF NoS CRL Name
    29 NO NO NO NO ARC0
    28 NO YES YES NO ARC1
    27 NO NO NO NO ARC2
    26 NO NO NO NO ARC3
    25 YES NO NO NO ARC4
    24 NO NO NO NO ARC5
    23 NO NO NO NO ARC6
    22 NO NO NO NO ARC7
    21 NO NO NO NO ARC8
    20 NO NO NO NO ARC9
    Thanks.
    Kristi

    It's the network that's messing up; unlikely due to firewall timeout as it waits for 60 minutes and you are switching every 15 minutes. There may be some other network glitch that needs rectified.
    In any case - arch file missing/ corrupt / halfway through - FAL setting should have refetched the problematic archive log automatically.
    As many had suggested already, the best way to resolve RFS issues I believe is to use real-time apply by configuring standby redo logs. It's very easy to configure it and you can opt for real-time apply even in max-performance mode that you are using right now.
    Even though you are maintaining (I guess) 1-1 between primary & standby instances, you can provide both primary instances in fal_server (like fal_server=string1,string2). See if that helps.
    lastly, check if you are having simiar issue at other times as well that might be getting rectified automatically as expected.
    col message for a80
    col time for a20
    select message, to_char(timestamp,'dd-mon-rr hh24:mi:ss') time
    from v$dataguard_status
    where severity in ('Error','Fatal')
    order by timestamp;
    Cheers.

  • User exit  or BADI to validate service request value with PO value

    Dear gurus,
    Is there any userexit or BADI to validate service request value with PO value. Please help me regarding this.
    Thanks in advance

    Hi,
    Please check these enhancements (SMOD) for user exits available of transaction ML81N.
    SRV_FRM  - SRV: Formula calculation (obsolete since 4.0A!)             
    SRVSEL   - Service selection from non-SAP systems                      
    SRVREL   - Changes to comm. structure for release of entry sheet       
    SRVQUOT  - Service export/import for inquiry/quotations                
    SRVPOWEB - Purchase order for service entry in Web                     
    SRVMSTLV - Conversion of data during importing of standard service cat.
    SRVMAIL1 - Processing of mail before generation of sheet               
    SRVLIMIT - Limit check                                                 
    SRVKNTTP - Setting the account assgnmt category when reading in, if "U"
    SRVEUSCR - User screen on entry sheet tabstrip                         
    SRVESSR  - Set entry sheet header data                                 
    SRVESLL  - Service line checks                                         
    SRVESKN  - Set account assignment in service line                      
    SRVESI   - Data conversion entry sheet interface                       
    SRVENTRY - Unplanned part of entry sheet (obsolete since Rel. 3.1G)    
    SRVEDIT  - Service list control maintenance/display)                  
    SRVDET    - User screen on tab strip of service detail screen           
    INTERFAC  - Interface for data transfer                      
    Regards,
    Ferry Lianto

  • Error http the request failed with http status 401: unauthorized

    Hi,<o:p></o:p>
    We are currently developing a Web Part for a
    dashboard that connects from SharePoint 2010 to Project Server, we are trying
    to connect via the PSI web service and fetch the project data but it is giving
    the same error "The request failed with HTTP
    status 401: Unauthorized". We are having a huge
    issue with gaining authorization through the PSI and cannot figure out what the
    problem is. We are using Project Server 2010, SharePoint 2010 and Visual Studio
    2010.<o:p></o:p>
    The person developing this has administrative
    rights on both servers and it is running on his account. However, this is his
    first experience with Project Server. Could some provide some guidance?<o:p></o:p>
    Does anyone have any suggestions?<o:p></o:p>
    Thanks,<o:p></o:p>
    Aba
    <o:p></o:p>

    Hi,
    Have the credentials been set for the web service? Or are you trying to pass the credentials of the user accessing the webpart? In the second case, the user must have permissions in project server
    It would be useful if you can share the part of the code that fails
    Paul

  • The request failed with HTTP status 401: Unauthorized Invoke Webservice

    I want Adding a Web reference dynamically at Runtime follow
    SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true)]
    internal static object CallWebService(string webServiceAsmxUrl, string serviceName, string methodName, object[] args)
    System.Net.
    WebClient client = new System.Net.WebClient();
    client.Credentials =
    new NetworkCredential("username", "pass");
    // Connect To the web service
    System.IO.
    Stream stream = client.OpenRead(webServiceAsmxUrl + "?wsdl");
    // Now read the WSDL file describing a service.
    ServiceDescription description = ServiceDescription.Read(stream);
    ///// LOAD THE DOM /////////
    // Initialize a service description importer.
    ServiceDescriptionImporter importer = new ServiceDescriptionImporter();
    importer.ProtocolName =
    "Soap12"; // Use SOAP 1.2.
    importer.AddServiceDescription(description,
    null, null);
    // Generate a proxy client.
    importer.Style =
    ServiceDescriptionImportStyle.Client;
    // Generate properties to represent primitive values.
    importer.CodeGenerationOptions = System.Xml.Serialization.
    CodeGenerationOptions.GenerateProperties;
    // Initialize a Code-DOM tree into which we will import the service.
    CodeNamespace nmspace = new CodeNamespace();
    CodeCompileUnit unit1 = new CodeCompileUnit();
    unit1.Namespaces.Add(nmspace);
    // Import the service into the Code-DOM tree. This creates proxy code that uses the service.
    ServiceDescriptionImportWarnings warning = importer.Import(nmspace, unit1);
    if (warning == 0) // If zero then we are good to go
    // Generate the proxy code
    CodeDomProvider provider1 = CodeDomProvider.CreateProvider("CSharp");
    // Compile the assembly proxy with the appropriate references
    string[] assemblyReferences = new string[5] { "System.dll", "System.Web.Services.dll", "System.Web.dll", "System.Xml.dll", "System.Data.dll" };
    CompilerParameters parms = new CompilerParameters(assemblyReferences);
    CompilerResults results = provider1.CompileAssemblyFromDom(parms, unit1);
    // Check For Errors
    if (results.Errors.Count > 0)
    foreach (CompilerError oops in results.Errors)
    System.Diagnostics.
    Debug.WriteLine("========Compiler error============");
    System.Diagnostics.
    Debug.WriteLine(oops.ErrorText);
    throw new System.Exception("Compile Error Occured calling webservice. Check Debug ouput window.");
    // Finally, Invoke the web service method
    object wsvcClass = results.CompiledAssembly.CreateInstance(serviceName);
    MethodInfo mi = wsvcClass.GetType().GetMethod(methodName);
    return mi.Invoke(wsvcClass, args);
    else
    return null;
    When i call CallWebService method , it is error
    The request failed with HTTP status 401: Unauthorized.
    Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
    Source Error:
    Line 1880: MethodInfo mi = wsvcClass.GetType().GetMethod(methodName);
    Line 1881:
    Line 1882: return mi.Invoke(wsvcClass, args);
    Help me solve this problem.
    Thanhks

    Thank advance
     I tried it, but it till error
    Stack Trace:
    [WebException: The request failed with HTTP status 401: Unauthorized.]
    System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +431201
    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204
    HSCVWS.HelloWorld() +31
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
    System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
    System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
    WsProxy.CallWebService(String webServiceAsmxUrl, String serviceName, String methodName, Object[] args) in d:\ViDu01\ttt.aspx.cs:1882
    ttt.Page_Load(Object sender, EventArgs e) in d:\ViDu01\ttt.aspx.cs:27
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2009-06-09 02:43:10
    #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2009-06-09 02:43:10 192.168.2.46 GET /_vti_bin/testwebservice.asmx wsdl 80 - 192.168.x.xx - 200 0 0
    2009-06-09 02:43:13 192.168.2.46 POST /_vti_bin/testwebservice.asmx - 80 - 192.168.x.xx Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.3053) 401 5 0
    2009-06-09 02:43:16 192.168.2.46 GET /_vti_bin/testwebservice.asmx wsdl 80 - 192.168.x.xx - 200 0 0
    2009-06-09 02:43:17 192.168.2.46 POST /_vti_bin/testwebservice.asmx - 80 - 192.168.x.xx Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.3053) 401 5 0
    2009-06-09 02:44:42 192.168.2.46 POST /_vti_bin/testwebservice.asmx - 80 servername\username 192.168.x.xx Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.3053) 200 0 0

  • Add fields to IW31 WO: Parts Requested, Order Date, Target Date

    Hello,
    We have been requested to add 3 dates fields to a Work Order to help identify status for WO.
    The dates fields we will have to include in the WO is:
    -Parts Requested Date
    -Order Date
    -Target Date
    In addition they want this report to be included in IW37N.
    Is there a way to pull this off or are there fields that I can utilize in the current WO table that I can use to input this information?
    Thanks.

    Hi,
    If you want fields at order header level it is best to add some custom fields to the Enhancement Tab with help of exit IWO10018. This solution involves creating a new screen SAPLXWOC 0900 and adding the custom fields to structure CI_AUFK.
    For fields at operation level you can choose to use a limited set of user fields on the Operation Enhancement Tab. Create a field key with transaction OILJ and select the fields to be used. This will determine which user fields are available in the operation.
    These fields will not appear on IW37N output list. You would need to append the user fields to the outout structure RIH_ORDER_OPERATION_LIST.
    -Paul
    Please use [Enterprise Asset Management (EAM)|Enterprise Asset Management (SAP EAM); forum for PM/CS specific topics

  • Change of Source client in transport request

    Hi Gurus,
    I want to change source client of transport request
    Since I want to transport request between clients of same server.
    I did it using scc1
    But when I want to make any changes to form which was included in that request it is saying
    Request/task DEVK***** has invalid source client XXX
    I am trying this in YYY client
    Please provide solution
    Thanks in advance for your efforts

    Yogesh,
    Does both the clients allow development in the server? Generally it should not be the case.
    Does the client still exists in the server?
    Here is a thread with replies for such an error message.
    Re: regarding Client change for transport request
    Check it,it may give you some lead.
    K.Kiran.

  • 30k+ Members - 'The request failed with HTTP Status 401: Unauthorized'

    Hello everyone,
    I'm starting a new Netweaver client on v7 SP4 and I'm getting an error when administrating dimensions.  I can add up to 30k members in admin to a dimension and process without a problem, but when I try to go over 30k members, I get the following error:
    'The request failed with HTTP Status 401: Unauthorized'
    It's as if the dimension processing is locking the table on a time-out and not finishing the process.  Thoughts anyone? 
    Also, thoughts in general on the fact that we're probably going to have a dimension with 90k members?
    Thank you,
    Grant

    Well, it turns out that the issue doesn't seem to be a client issue.  I can get up to 60k members to save to the server if I don't have a lot of properties, but if I put in 10-15 properties and fill them out, it seems like my file gets too big to be handled and I get this error.  Maybe there's a timeout occurring?  We've tried this on multiple computers on both v7 Sp4 and v7 Sp6 and are getting the same issue when we get a large dimension file.
    Thanks,
    Grant

Maybe you are looking for

  • Help need in Stacked bar vertical - No data found message

    I am using Stacked bar vertical with the 3 series. The problem is if any one of the series returns zero rows for the query it displays the No data found message for all the series and blank graph is there on screen with just x and y axi with the name

  • BPM attachments and comments where do save?

    Hi there, I develop a process with oracle bpm. this process have some activities that send attachments and comments together. my question is that where do save this attachments and comments? in database or file system? which table or which directory?

  • Playhead In Log & Transfer Viewer Doesn't Stay Where It's Put?

    I've noticed this minor quirk that happens with AVCHD footage in the Log & Transfer window. If I drag the playhead (in the L&T Viewer) and let go to set an In or Out point, the playhead jumps back slightly on most occasions making it impossible to ch

  • On-going logging problems

    Tomcat 6.0, despite having this in my code: public class AppInitializer implements ServletContextListener     public void contextInitialized(ServletContextEvent e)         log2.log(Level.FINEST, "\n************ In contextInitialized **************\n"

  • Revision Field in WO - dropdown list of Revisions no longer appears in 6.0

    In 4.6C (in the Work Order or Notification), if you clicked on the dropdown button, a whole list of Active Revisions would appear.  Now in 6.0, there are several search methods instead.  Users would like to revert back to simpler screen.  Does anyone