Error "401 Unauthorized" calling wshandler service

Greetings,
On a 620 system I'm trying to complete a webservice workitem via the wshandler service using CL_SWF_IFS_WS_EXPORT=>LAUNCH_CALLBACK.
It fails with cx_swf_ws_http_exception after getting a response 401 - "Unauthorized".
WF_HANDCUST is setup, I checked SICF, the service is set for anonymous logon. Authorization is correct, since it's being called inside an authenticated session from a BSP (checked SU53 just to be sure). The URL is also correct as it works if I paste it straight from the debugger into a browser - it works and completes the item. I've tried both http GET and POST methods. I've pulled a couple of hairs out but that had no effect whatsoever.
Any ideas of what else might be wrong would be greatly appreciated...
Cheers,
Mike
(Crossposted on WUG and SDN BPM & BSP Forums)

Found it...
I created an alias for wshandler and gave it explicit logon details and now it's happy.

Similar Messages

  • Error "401 Unauthorized" calling wshandler

    Greetings,
    On a 620 system I'm trying to complete a webservice workitem via the wshandler service using CL_SWF_IFS_WS_EXPORT=>LAUNCH_CALLBACK.
    It fails with cx_swf_ws_http_exception after getting a response 401 - "Unauthorized".
    WF_HANDCUST is setup, I checked SICF, the service is set for anonymous logon. Authorization is correct, since it's being called inside an authenticated session from a BSP (checked SU53 just to be sure). The URL is also correct as it works if I paste it straight from the debugger into a browser - it works and completes the item. I've tried both http GET and POST methods. I've pulled a couple of hairs out but that had no effect whatsoever.
    Any ideas of what else might be wrong would be greatly appreciated...
    Cheers,
    Mike
    (Crossposted on WUG and SDN BPM & BSP Forums)

    Found it...
    I created an alias for wshandler and gave it explicit logon details and now it's happy.

  • The remote server returned an error: (401) Unauthorized. + Web Service userprofileservice.asmx

    Hi Community,
    I need you assistance on an issue I'm facing.
    The remote server returned an error: (401) Unauthorized.
    The remote server returned an error: (401) Unauthorized.)
    I'm connecting to a web service (userprofileservice.asmx) to auto populate email address in an Info Path form. It was working fine Friday/Monday. Open the form today and I received error:5566
    It's populating in preview but when I open the form in the browser (info path web part) that's when I receive error:5566
    I need your help guys please, this is doing my head in.
    Cheers Matt
     

    Not sure how you do that?
    I'm using SOAP UI to test I can connect to the web service and check the envelope request
    details. Before it was giving me 401 error until I granted my account permission to that asmx on the web server.
    It's strange because I can connect to the web service by soap UI and see all the information.
    I can connect to the web service by using the URL.
    Works fine in preview mode. 
    Was working fine on the production environment until yesterday and now I have error 5566.
    All the configuration on the web server is the same.
    I'm at a brick wall.. Help

  • Call Adapter Error - 401 Unauthorized

    Hi,
    We are using Multi Mapping where it splits 1 message into n messages. The n messages split by this scenario in trun calls another scenario configured in the same PI server using SOAP Adapter.
    The called scenario is SOAP --> Siebel using iWay Adapter.
    When the number of messages split are huge in order of thousands, the server is going for a toss and the called scenaio is failing at Call Adapter Step in IE with HTTP Error 401 Unauthorized. Few of the messages manage to pass successfully.
    Anticipating your valuable inputs.
    Thanks.
    Regards,
    Sudharshan N A

    Hi Sudharshan,
    There can be different reasons for getting HTTP 401: Unauthorized error. As you said, few of the messages are being passed to the called application, I would request you to check the scalability of the Seibel Server.
      Also if you are using a connections from a connection pool, then it may be that the pool itself is getting exhausted, though mostly we get Socket exception/Connection Exception/IO Errors in these cases.
      The other reasons can be that the user you are using to connect Seibel dont have enough permissions. But it is ruled out as you said some messages have been processed.
    If the Seibel server is SSL enabled, and your PI doesn't have any certificate configured, then also you may get such errors.
    Regards,
    Sugata

  • ALUI-Create Web Service - Remote Portlet Error 401:Unauthorized

    I have some problems during user ALUI(AquaLogic User Interaction 6.1).
    I created a Web Service - Remote Portlet,then set value of Basic Authentication Settings is "User's Basic Authentication Information". When related remote server refer to tomcat5.5,the Web Service - Remote Portlet is fine to run,but not when the related remote server refer to weblogic9.2.
    When value of Basic Authentication Settings is "Use Remote Server Basic Authentication Information", related remote server refer to weblogic9.2 or tomcate5.5, the portlet is fine.
    error detail:
    Error
    sso Portlet cannot be displayed because the remote server returned an invalid HTTP response code.
    We recommend:
    • Refresh sso Portlet
    • Accessing this portlet at a later time.
    • Contacting your portal administrator if problems persist.
    Detailed error information
    • Response status: 401
    • Response body:
    Error 401--Unauthorized
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.2 401 Unauthorized
    The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11.

    How to configure remote server to accept authorization header?
    I set value of Basic Authentication Settings is "User's Basic Authentication Information" because the Web Service - Remote Portlet need to get the portal's login user infomation.If the value is "Use Remote Server Basic Authentication Information",the application is fine to run.
    The follow is the way to get login user infomation.
    IPortletContext portletContext = PortletContextFactory.createPortletContext(request, response);
    ICredentialProvider cProvider = portletContext.getCredentialProvider();
    String username = cProvider.getUsername();
    String password = cProvider.getPassword();
    Do you have other way to authenticate users?
    Thanks.
    Edited by: user2233298 on 2009-4-22 下午8:25

  • REST call in FBA WebApp returns error 401 unauthorized

    Update:
    I found out that this is happening only in a webapplication where FBA is activated. How can this be related? As soon as I deactivate FBA, 401 is gone.
    Hello,
    I'm trying to do a very basic REST call from a Console application to my SharePoint 2013. As I understand, that might be already the problem, as I'm having a hard time to authenticate my console app using oauth (which is necessary if I'm not mistaken). If
    I use default credentials, everything is working just fine. If not, I receive an error 401 unauthorized. This is my code when I try to use very basic authentication using CredentialCache:
    var req = (HttpWebRequest)HttpWebRequest.Create("http://{serverurl}/_api/lists/");
    req.Method = WebRequestMethods.Http.Get;
    var ccache = new CredentialCache();
    ccache.Add(new Uri("http://{serverurl}/"), "Basic", new NetworkCredential("{username}", "{password}", "{domain}"));
    req.Credentials = ccache;
    req.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f");
    var response = (HttpWebResponse)req.GetResponse();
    I've only replaced some irrelevant data with some placeholders. Thanks for your help and any clearification
    Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

    Hey Amr,
    thanks for your feedback. Let me write down some more facts about my environment so we might be able to track down what's going wrong:
    - Virtual PC using Windows Server 2012
    - SharePoint 2013 with September CU
    - Compatibility Level 15 Webapplication using Default "Claims Based Authentication" with form based authentication activated
    - Visual Studio 2013 Console Application .NET 4.5 x64 Build Target
    Writing down what my base configuration is seems to have brought light into the dark. As soon as I deactivated FBA authentication I was able to execute the request without any problems. So now I know what I have to look for. Thank you!
    Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

  • SAP XI error: 401 Unauthorized (When calling from Enterprise Portal)

    Hello Friends
    I am trying to access an SAP table from IVIEW of portal via XI. Using the latest and greatest version of all SAP Components. (We just installed couple of weeks back).
    I keep getting the following error message when I try to access data from IVIEW of portal.  
    "SAP XI error: 401 Unauthorized"
    What may be the reason? If some one can help me, I would really appreciate it.
    Thanks
    Ram

    Thanks Srinivas for your help.
    I tried accessing the URL directly and got the error message
    "User Credentials not passed via Enterprise Portal. Please contact your Administrator"
    Any more suggestions?
    Thanks again
    Ram

  • The remote server returned an error: (401) Unauthorized error while using Microsoft.SharePoint.Client.dll

    I have access to sharepoint site and I have tested this by manually creating the lists and announcements in the sharepoint site.
    now the same thing when I try to do it through the c#.net code it always gives me the following :
    "An unhandled exception of type 'System.Net.WebException' occurred in
    Microsoft.SharePoint.Client.dll Additional information: The remote server returned an error:
    (401) Unauthorized."
    My code looks like below:
    string userName = "[email protected]";
    SecureString password = new SecureString();
    foreach (char c in "abc123".ToCharArray()) password.AppendChar(c);
    using (var context = new ClientContext("https://sharepoint.partners.extranet.adlabs.com/sites/UniTest"))
    context.Credentials = new SharePointOnlineCredentials(userName, password);
    context.Load(context.Web, w => w.Title);
    context.ExecuteQuery();
    Krrishna

    Hi Krrishna,
    You code is used to access SharePoint Online, if you are use SharePoint 2007, we can use SharePoint web service or custom web service to achieve your requirement. 
    Lists Web Service
    http://msdn.microsoft.com/en-us/library/lists(v=office.12).aspx
    Creating a Custom Web Service
    http://msdn.microsoft.com/en-us/library/ms464040(v=office.12).aspx
    About SharePoint 2007(MOSS 2007), you can also post it to the forum below, you will get more help and confirmed answers there.
    https://social.technet.microsoft.com/Forums/en-US/home?forum=sharepointdevelopmentlegacy
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • SOAP Sender Adapter gets error '(401) Unauthorized.'

    Hi all,
    we are using XI 3.0 and have a scenario with a SOAP Sender Adapter, which is using "HTTPS with Client Authentication". I have configured everything I have found on the forum at Visual Admin and Integration Directory:
    Set the UME property ume.logon.allow_cert to TRUE in 'Service-->UME Provider'
    Imported client certificate and root CA certificate to 'Service-->Keystore'
    Created user with role role SAP_XI_APPL_SERV_USER
    Assigned this user to the client certificate in 'Security Provider-->UserManagement'
    Added the user to xi_adapter_soap_message and xi_adapter_soap_help in 'Security Provider'
    Added the root CA in 'SSL Provider>Dispatcher>Client Authentication' and marked 'Request client certificate.
    Added the user to BusinessSystem at tab 'Assigned Users'
    Added the user to Sender Agreement at tab 'Assigned Users'.
    Our business partner got a certificate of our server and the according PrivateKey is added to 'SSL Provider>Dispatcher>Server Identity'
    Unfortunately, our server certificate is not verified by an root CA!!
    When the business partner now browse the URL 'https://url:port/XISOAPAdapter/MessageServlet?channel=:BS_3RD_PARTNER:SOAP_SENDER&nosoap=true' on his system, he will get a 'Message Servlet is in Status OK'.
    But when he tries to process the URL directly in his messaging system, he gets an error '(401) Unauthorized.' 
    Any hints what could be the problem between browing the URL in InternetExplorer and sending from the messaging system?
    Does it really mean that authorization was successful, when getting  'Message Servlet is in Status OK' in the Browser?
    How can I assign an user when not using ClientAuthentication?
    I would be very thankful for every help...
    Grtz, Juergen

    Hi Satish,
    could the user or password also be wrong, even if you get 'Message Servlet is in Status OK' when browsing the URL in the Internet Explorer? I would have seen this as a sign, that the user authentication works basically...
    Is there a special place to store the password in the Visual Admin, or will the password be used, which is available in the SU01 ?
    Grtz,
    Juergen

  • The remote server returned an error :(401) unauthorized in Provider hosted app deployment

    Hi,
    We are trying to deploy the provider hosted app in server environment . we are getting the "The remote server returned an error :(401) unauthorized" error after deploy the app in server.
    stack Trace:
    [webException:Te remote server returned an error:(401) UnAuthorized.]
    System.Net.HeepWebRequest.GetResponse().
    Followed the same MSDN steps , but sill same error. We have attached the certificate and using the same issuer ID in the app web.config.
    Verified the IIS setting and still getting the same error when we call the "Clientcontext.ExecuteQuery()" method.
    Same code is working fine in my Local dev environment.
    If anyone have idea about this issue, please let me know.
    Thank you,
    Mylsamy

    Hi ,Thank you for your response. We have tried all the options and everything is same (Client ID,Issuer ID...etc) and finally figured out the issue.The below link saved my day.http://msdn.microsoft.com/en-us/library/office/dn762439(v=office.15).aspxIn "TokenHelper.cs" GetRealmFromTargetUrl method always return null andWhen we analyze the issue we found some variable name assigned for "Realm" Instead of GUID in SP server.Power shell command to get the Realm in SP server:  Get-SPAuthenticationRealmWe have followed below article to generate the new GUID for realm.http://technet.microsoft.com/en-us/library/jj219756(v=office.15).aspx$c =Get-SPServiceContext -Site "http://<websiteurl>"Set-SPAuthenticationRealm -ServiceContext $c -Realm "a686d436-9f16-42db-09b7-cb578e110ccd".
    Thankyou,Mylsamy

  • HTTP error: 401 Unauthorized while uploading photo in hr master data

    Hi All,
    Transaction code OAAD while uploading a photo  iam faceing a problem
    i am getting error massage *HTTP error: 401 Unauthorized"
    i have done modifications in the transaction codes
    OANR ,OAC2,TABLE: V_T5850,OAC0,OAOH,OAAD,
    IN OAAD Transaction code i am getting this error
    HTTP error: 401 Unauthorized
    please guide me on this issue

    Hi Sai,
    First create a communication type user (via SU01) with SAP_ALL profile.
    Then goto SICF transaction.
    While hierarchy type is SERVICe hit "Execute" button.
    Find contentserver under default_host -> sap -> bc.
    Double click the service.
    Press Logon tab.
    Enter the relevant user info.
    Save - Back button.
    Activate the service (if it is not already active)
    Regards,
    Dilek

  • HTTP Error: 401 unauthorized when executing a costcenter report.

    Hi.
    I get this HTTP error when executing an costcenter report.
    The steps I do is following.
    Call upp the report Y_D02_77000xxx
    Under the "kostenstellen:Selection I Fill in this values.
    Controlling area
    Fiscal Year
    From Period
    To     Period
    Plan version
    and finally i enter the "Cost Center group"
    Then i press "execute" and get the result for differrent Cost Element, i get 2 lines "*Total" and
    "**Over/underabsorption"
    Now i doubleclick Over/underabsorption and select report "Cost Centers: Actual Line Items"
    Now i Should get a new window woth results but instead i get a blank screen with the errormessage:
    "HTTP error: 401 unauthorized"
    This procedure worked fine until a couple of weeks ago.
    Anyone have any ideas about what could be the problem?
    Regards Johan

    You might want to check all of your connections in SM59. When you get the 401 error, this is sometimes due to a connection failure (bad password and so on) in the RFC connections (this can also happen if you are using the Content Manager).
    Hope that helps.
    J. Haynes

  • HTTP error: 401 (unauthorized)  "Error in configSet"

    Hi ,
    I am getting this error "HTTP error: 401 (unauthorized)  "Error in configSet"  in the following scenarios.
    A. Creating a content repository from SAP in T-code "CSADMIN"
    B.Accessing the http://<domainname>:<portno>
    If i give complete URL it is working.
    Example :
    http://<domain name>:<port no>/ContentServer/ContentServer.dll?serverInfo
    when i provide,only with domain name and password in the url
    it is asking for username & password and later it gives 401 unauthorized error
    http://<domainname>:<portno>
    I assume that this error is due the security settings either in IIS or in OS level.
    system landscape:
    CRM :5.0
    SAP Content Server :6.3
    Win server 2003 with sp2
    Note:
    Content Server is running and i can see the status from SAP.
    Thanks in Advance.
    Points will be awardeed for right answers.
    Regards
    Ganesh
    Edited by: ganesh subbiah on Aug 13, 2008 4:39 PM

    Check the following :
    - In IIS application pools check "Identity" property for the content server application is "LocalSystem", and not ApplicationPoolIdentity
    - in IIS "handler mapping" on your content server site, check ISAPI-dll is enabled
    - user access for "NETWORK SERVICE" following note 658442 - execute command :
    cacls <INSTDIR> /T /E /G "NETWORK SERVICE":F
    The first point has solved the issue for me.
      Pierre

  • HTTP error: 401 Unauthorized. ICS:3001: The referenced certificate having been issued by 'CN=DEC' with serial :0x20140423094001 is.

    Dear Experts,
    Transaction code : ME23N
    while create a document by through a GOS (Generic Object Service), Iam facing a problem and it through a error message:
    HTTP error: 401 Unauthorized. ICS:3001: The referenced certificate having been issued by 'CN=DEC' with serial :0x20140423094001 is.
    Please giude me  on this issue.
    Thank & Regards,
    Mahendra.

    Hi Janos,
    by through a GOS under a GOS by using a  Store Business document to create a document in Transaction. Please find the below attached screenshots has i following to create a document in a Transaction. So , while creation a document in T-code am facing a error like:
    HTTP error: 401 Unauthorized. ICS:3001: The referenced certificate having been issued by 'CN=DEC' with serial :0x20140423094001 is.

  • Archive link error:HTTP error: 401 Unauthorized

    Hi all,
    I am getting "HTTP error: 401 Unauthorized" error while uploading pdf via archive link  store business document
    from front end.
    Any solution
    Regards
    Abhijit

    Abhijit,
    Check that the OS user that is used to run the web application has read/write permissions for the both the "installation path" and the "repository path" - for UNIX its the Apache user id and for Windows its the user that started the IIS service.
    This may resolve your issue.
    -Srini

Maybe you are looking for

  • Calendar App on iPad can't add events or toggle calendars

    Something strange is going on with my Calendar app (New iPad...iOS5). It was working fine, with my local calendar and 2 subscribed calendars. But, after going in to Settings and turning on Calendar sync for my Google account, now when I open Calendar

  • How to use a USB-to-par​allel adapter to communicat​e with my switch device?

    My computer doesn't have a parallel port, so I must use the USB port and a USB-to-parallel adapter to communicate with my switch device. Unfortunately in WindowsXP printer configure that show USB001 Virtual printer for USB. How should I control my US

  • Xml webservices configuration problem

    WHILE EXECUTING set long 500 set pagesize 100 XQUERY declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd"; for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-

  • IBooks author : ajax/jquery

    Hi all, I know it is possible to create and customize widgets (with Dashcode or Hype for example), but also insert scripts and libraries like JQuery. My question is quite simple: in a html widget, is it possible to send data to a server, using JQuery

  • Using a Plug-In

    I've downloaded the clock plugin so that I can put a countdown in my FCE video. I've put the plugin in the correct folder on my hard drive (\Library\Application Support\Final Cut Express Support\Plugins). But at this point, I'm not sure how to incorp