Java webservice client with windows domain authentication

I'm writing (well attempting to) a Java web service client using netbeans that consumes a web service written in C#, that uses NTLM authentication.
If I consume the webservice from a .NET client, authentication isn't a problem; I can just pass the crediantails in on an engine object.
eg engine.Credentials = System.Net.CredentialCache.DefaultCredentials.
Upon consuming this webservice in java the Credentials method doesn't appear on the engine object like it doesn't with it's C# counterpart.
I assume that Java goes about a different way of doing windows domain authentication?
Cheers

for what ever reason it just seemed to start working.

Similar Messages

  • Non Java Webservice client Authentication

    I see in the Weblogic docs many examples of Java webservice clients. Including
    one that passes a user id and password through the getXXXPort(userid, password)
    call for authenticating the user at runtime. My question is, can a non Java webservice
    client authenticate itself in somewhat the same manor? A non Java client wouldn't
    have the client jar file available containing the stubs and all.
    If someone has a code snippet they could send me it would be most appreciated.
    Thanks,
    Craig Lindley

    Hi Craig,
    An partial example using .NET is attached; in this environment you need
    to use their NetworkCredential class.
    Hope this helps,
    Bruce
    craig lindley wrote:
    >
    I see in the Weblogic docs many examples of Java webservice clients. Including
    one that passes a user id and password through the getXXXPort(userid, password)
    call for authenticating the user at runtime. My question is, can a non Java webservice
    client authenticate itself in somewhat the same manor? A non Java client wouldn't
    have the client jar file available containing the stubs and all.
    If someone has a code snippet they could send me it would be most appreciated.
    Thanks,
    Craig Lindleyusing System;
    using System.Net;
    namespace SecurityBasicClient
    class AuthClient
    [STAThread]
    static void Main(string[] args)
    SoapInteropBaseService ws = new SoapInteropBaseService();
    ws.Url = "http://webservice.bea.com:7001/base/SoapInteropBaseService";
    Console.Write("User:");
    string strUser = Console.ReadLine();
    Console.Write("Password:");
    string strPassword = Console.ReadLine();
    ICredentials credentials = new NetworkCredential(strUser,strPassword);
    try
    ws.Credentials = credentials;
    Console.WriteLine(ws.echoString("Hello World"));
    catch (Exception err)
    Console.WriteLine(err.Message);
    finally
    Console.ReadLine();

  • Windows domain authentication on Oracle Secure Global Desktop

    Hello,
    I made an upgrade of my oracle secure global desktop 4.62 version to 5.1 version.
    The problem is, I was using Windows Domain Authentication in 4.62 and this kind of authentication is not available in the 5.1 version.
    So now, my users cannot log in the application.
    Do you have a solution ?
    Thanks

    What are you authenticating to specifically?  An AD server?  Are you using any of the supported authentication mechanisms now supported?
    http://docs.oracle.com/cd/E41492_01/E41495/html/sgd-authentication.html#system-authentication-mechanisms-table

  • How to do HTTP getRequest() with windows NTLM authentication from OBPM..??

    Hello All,
    Please share your expert ideas how me can do HTTP getRequest() with windows NTLM authentication from OBPM..??
    I am not sure even whether its possible or not, if not what could be the alternative way to do integration with MS SharePoint ??
    Version : Oracle BPM v 10.3.1
    Cheers
    Parveen Jaswal

    You are only as secure as web browsing to the LogMeIn website is (which appears to use HTTPS). If your login on that site is compromised, they will have a list of your computers that they can attempt to connect to. As long as you don't save the login credentials, they would then also need to know what username and password to use to connect to the computer. Granted, a little social engineering, and they could probably get some good ideas what to try for those, but if you chose to make your computers secure with complex and hard to guess passwords then it should be fine.
    I've been using LogMeIn from my Mac to my mom's Windows XP system from July 2009, and to my wife's Thinkpad running Win 7 since Oct 2009. None of the computers involved have had any security issues at all, let alone any caused by LogMeIn. For my wife's PC, it sits behind our NAT Firewall in our LinkSys Router (although I did have it behind a CheckPoint VPN Edge router for a while). My Mom's PC sits behind a Netgear Router providing its NAT Firewall. When my Mac isn't at home, it's generally behind that CheckPoint VPN router at my office now. It all works nicely from behind one router to behind another. The Piece that you install on the PC will log it into the LogMeIN website and that is how it gets through the router to the PC. You login to the website, select the PC to control, then login to that PC.

  • Login error with windows AD authentication in IDT (Infomation Desugn Tool)

    HI,
    In IDT (Information Design Tool) I was not able to publish objetcs ( OLAP connections, Business View layer etc) to corresponding repository using windows AD authentication, but with enterprise I was able to do so.
    With the same AD authentications I was able to open universe design tool, BI launch pad .
    Please advise how to correct
    Error----
    Error:
    Failed to log on host com.crystaldecisions.sdk.exception.SDKException$SecurityError: Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserName@DNS_DomainName, and then try again. (FWM 00006)
    cause:java.lang.SecurityException: Unable to locate a login configuration
    detail:Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserName@DNS_DomainName, and then try again. (FWM 00006) Unable to locate a login configuration
    Cause of Error:
    Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserName@DNS_DomainName, and then try again. (FWM 00006)
    Error----
    Thanks in advance
    Regards
    Krishna

    Had the same problem and found note '1588487 - Active Directory authentication failed with InfoDesignTool'
    Problem solved for me.

  • Dynamic CRM connect outlook Client with different domain

    Hi Guys,
    I had installed CRM 2011 in cloud with different domain.
    If I use browser is working fine just that when i use Outlook client it show 
    15:24:16|  Error| Exception : The request for security token could not be satisfied because authentication failed.    at System.ServiceModel.Security.SecurityUtils.ThrowIfNegotiationFault(Message message, EndpointAddress target)
       at System.ServiceModel.Security.SspiNegotiationTokenProvider.GetNextOutgoingMessageBody(Message incomingMessage, SspiNegotiationTokenProviderState sspiState)
    I found that is because you must connect to the same domain.
    any idea that i can use my Outlook client to connect to CRM 2011 without changing my domain?
    Regards,
    Kim

    Yes - I've been scarred with this for many years :(
    If it is just CAS 1 that is causing issues, then focus in on that.  The support statement for Win 2008 R2 is that NLB is still a 3rd party component and support may ask for it to be disabled.
    http://support.microsoft.com/kb/278431 
    Does CAS1 and CAS2 have the same NICs (firmware as well), driver, teaming software, and teaming config? 
    I also want to ask what the network team did for configuring the switch ports on the servers?  This will vary from vendor to vendor  - did they do the same config on both?
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
    Thanks Rhoderick, issue still persists
    can you also help clarify what you meant by "configuring the switch ports on the servers"?
    thanks again

  • Java 7 compatibility with Windows XP Service Pack 3

    Hello,
    I am just looking for a bit of clarity. It is not quite clear from the hits on Oracle Support, some say yes and others say no.
    Is Java 7 compatible with the following browsers Internet Explorer 7, 8 9 and 10 for Windows XP Service Pack 3?
    The Client is currently using JRE6 which I knows fine with IE 6, 7, 8 for the current PC build
    Thanks
    Matt

    Matt,
    I am just looking for a bit of clarity. It is not quite clear from the hits on Oracle Support, some say yes and others say no.
    Is Java 7 compatible with the following browsers Internet Explorer 7, 8 9 and 10 for Windows XP Service Pack 3?
    The Client is currently using JRE6 which I knows fine with IE 6, 7, 8 for the current PC buildJRE 7 is not certified yet with 11i or R12.
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite 11i [ID 290807.1]
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1]
    Implications of Java 6 End of Public Updates for EBS Users
    https://blogs.oracle.com/stevenChan/entry/what_does_the_java_6
    Planning Bulletin for JRE 7: What EBS Customers Can Do Today
    https://blogs.oracle.com/stevenChan/entry/planning_for_jre_7
    Thanks,
    Hussein

  • Web Dispatcher with Windows Intgrated Authentication

    Hello,
    We are setting up the relay of Browser ==> IISProxy ==> Web Dispatcher ==> Cluster.  We plan to use Windows Integrated Authentication and terminate the SSL connection at the IIS.  We are wondering how smoothly this will go as we have read differences in the order between IISProxy and WebDispatcher (in these forums) and have found nothing on the combination with SSL.  I assume that the IISProxy will encrypt, authenticate, provide the cookie and then forward the request to the Web Dispatcher for further routing to the cluster.
    Needless to say, has anyone done this successfully?  Can anyone provide information, warnings, caveats, etc... so that we can decide to use the Web Dispatcher or another software-based NLB solution.  We understand the technical benefits - especially in an SAP shop, but if there are richer features for authentication in latter releases we may consider putting it on hold and going with a known solution.
    We have seen some appliances that can perform the SSL termination, 3rd party authentication, etc, etc,... are there any plans for the Web Dispatcher to be able to perform the authentication with windows (NTLM or Kerberos)?
    All of the other features are grat and a breeze to work with however authentication on the MS domain is a must here and it may be the missing functionality.
    Thanks and kind regards,
    Judson

    Hi Judson,
    currently there is no plan to enhance web dispatcher into that direction. Instead we started to work together with network technology providers to offer the funtcionality of web dispatcher together with additional security and authentication stuff.
    network is not our business, so there are no plans to boldly go into that direction. Because of that such combinations like authentication with wd are sometimes hard to do.
    If you want a tip for the future I'd say, what you will see is boxes that have everything in there and two plugs for the internet and the sap network -everything else (firewalls, authentication, load balancing with automatic recognition of the sap cluster) would be in the box.
    Regards,
    Benny

  • Unable to generate WebService Client with Exported (BAPI) WSDL file from XI

    Hi there,
    I, trying to setup a simple Web Service environment where I'll be exposing a BAPI as Web Service via XI.
    So these are the steps I followed:
    <b>1)</b> first I imported the BAPI meta data into my SWC in the repository. <b>2)</b> Second I defined my interrface etc.. <b>3)</b> Third I exported the generated BAPI WSDL file. <b>4)</b> Fourth, I tried to generate a Java proxy/client for my Web Service using a Java IDE (IBM WebSphere Application Developer and XML Spy).
    Now the problem is that Im not able to generate the Web Service client using the exported WSDL file, the WSDL seems not to be valid...From the generated errors in the IDE, I can see that the problem has to do somewhere/somehow with the WSDL Binding element, which input parameters do not match the input parameters of the port type.
    This is a small part of the WSDL file as generated by XI:
         <wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Input">
              <wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
         </wsdl:message>
         <wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Output">
              <wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS.Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
         </wsdl:message>
         <wsdl:portType name="BAPI_AR_ACC_GETOPENITEMS.PortType">
              <wsdl:operation name="BAPI_AR_ACC_GETOPENITEMS">
                   <wsdl:input message="s0:BAPI_AR_ACC_GETOPENITEMS.Input"/>
                   <wsdl:output message="s0:BAPI_AR_ACC_GETOPENITEMS.Output"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="BAPI_AR_ACC_GETOPENITEMS.SAPBinding" type="s0:BAPI_AR_ACC_GETOPENITEMS.PortType" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
              <s0:binding style="rfc"/>
    Has anyone faced a situation like this before? Any clues where to look? I appreciate any feedback, thanks!
    Rob.
    Message was edited by: rob viana

    Hi Rob!
    I'm facing the same problem - how did you solve your issue then? I'm getting following error during generation on .NET side:
    ============================================================================================
    Error: There was an error processing 'http://server/wsdl/MIAMI_ACCDOCPost.wsdl'.
      - The document at the url http://server/wsdl/MIAMI_ACCDOCPost.wsdl
    was not recognized as a known document type.
    The error message from each known type may help you fix the problem:
    - Report from 'DISCO Document' is 'Discovery document at the URL http://server/wsdl/MIAMI_ACCDOCPost.wsdl could not be found.'.
      - The document format is not recognized (the content type is 'content/unknown').
    - Report from 'WSDL Document' is 'There is an error in XML document (2, 70138).'.
      - Value cannot be null.
    Parameter name: name
    - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
    ============================================================================================
    kr Martin

  • How to run a pure java application client with ear deployed on 9ias

    Hello all,
    We want to run a pure java application client which is packed with target bean in the same ear file. In the application-client.xml we refer to some EJBs.
    We deployed the ear file which contains ejb jar module and application client module to oracle 9ias 904 through enterprise manager on unix. The jndi.properties we used looks like this
    java.naming.factory.initial=com.evermind.server.rmi.ApplciationClientInitialContextFactory
    java.naming.provider.url=opmn:ormi://opmn_host:opmn_port:oc4j_instance_name/application_name
    java.naming.security.principal=test
    java.naming.security.credentials=test
    Is there anybody knows how to run such an application client? Do we need to provide such a jndi.properties or not at all?
    Thanks,
    9ias user

    Refer OpenEJB User - Oracle ADF Essential and TomEE+
    Also refer Bug in tomee 1.5.2. Fixed in 1.6.
    https://issues.apache.org/jira/browse/TOMEE-756

  • SnpsFTP not working with Windows domain/username

    Hi All
    We are using the following script to delete a file in FTP server. Works well with UNIX FTP server but fails with WINDOWS FTP server. Windows FTP username happens to be of format "domain/username". Is backslash causing the issue?
    Jython
    import snpsftp
    ftp = snpsftp.SnpsFTP('#PVV_SFTP_SERVER', ur"#PVV_SFTP_USER", 'PVV_PLAINPWD')
    ftp.delete ('#PVV_SFTP_FOLDER/#PVV_FILE_NAME');
    ftp.close()
    Error Message
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "/apps/oracle/product/ODI11116_frsh/oracledi.sdk/lib/Lib/snpsftp.py", line 50, in __init__
    self.connect(host, port)
    File "/apps/oracle/product/ODI11116_frsh/oracledi.sdk/lib/Lib/snpsftp.py", line 58, in connect
    self.ftp.connect(host, port)
    File "/apps/oracle/product/ODI11116_frsh/oracledi.sdk/lib/Lib/ftplib.py", line 129, in connect
    raise socket.error, msg
    socket.error: (146, 'Connection refused')
    Regards
    Prasad Jayakumar

    There is a misunderstanding from my side. Windows server uses SFTP. Is there any script or ODI tools available to delete a file in remote server via SFTP. Thank you.

  • Help with Windows Domain Login on Mac

    Hello Everyone,
    We have two Mac Pros at my work running Mac OS 10.5.8 and they are attached to the Windows Server / Domain so when the Mac is turned on you login with your Domain credentials (using Win Server to Authenticate). Now all of this has been working fine since the computers were purchased a year ago, until two days ago that is. I turned on the Mac Pro in the morning and tried to login, and the Mac would freeze and do nothing. I restarted and tried again, using the same credentials I always use, but nothing worked. I called the IT guys and had my windows user account reset thinking that the password was expired, still didn't help, so I asked them to reset the whole account, still didn't help.
    At this point I asked a few of my co-workers to login on my Mac using their login info, and they had no problems at all. I decided to dig deeper into this problem and logging in under a "local" Mac account I went into the "Accounts" preferences to check what was going on, to my surprise my Domain account was visible (normally it wasn't unless you were logged in) and under the account it said "sharing only".
    I am still trying to figure out why my Domain account was changed from "Admin, Managed" to "Sharing Only"? So I decided that the easy fix here was to use a previously made (and tested) image file which I created when the Mac Pro was first setup and all the software was installed. So after cloning the image to the Mac HD I turned on the Mac and tried to login, again nothing happened. I can login using the local account, and my co-workers can login fine, but my domain login just refuses to work. I have also tired to login on other Macs in the department and I can login just fine on each one, the only Mac that doesn't let me login is my machine.
    I have run out of ideas, short of re-installing the entire system from scratch.. which I really don't want to do unless I have to. But if anyone out there has any ideas I would more than welcome them.
    Thanks in advance..

    It's probably related to some type of DRM (copy-protection) on the digital copy, and not due to it being any particular type of file format. The DRM scheme probably only works under Windows. And if that is the case, I don't think you will be able to get it to work under Mac OS X, short of running VMware Fusions or Parallels Desktop (or Sun's free VirtualBox) and installing Windows to run under Mac OS X.
    Considering the popularity of Macs recently, and higher use of Macs among creative folks, it's pretty stupid for the studio/distributor to make a key feature Windows-only.

  • NPE with WebService client with JDeveloper 10.1.3

    Hi folks,
    I am having weird NullPointerException with a WebService client I generated with the WEB Service Proxy wizard in JDeveloper 10.1.3.
    The thing is, the client runs fine as long as there are NO NULL FIELDs in the "double" type returned objects. I don't know about other types, but I am sure it fails with doubles.
    If there is a NULL value in the returned Bean, then marshaling fails with a NullPointerException.
    I guess it is not a Server problem since clients in .NET and AXIS works just fine.
    I don't think it has anything to do with it, but, server is in JBoss-4.0.4.GA with JBossWS-1.0.3.
    May be a bug in JDEV's WebService client code?
    The first line is the deserializer returning a null value. The second is the line with the NPE:
    member = myns2__double__double_Double_Serializer.deserialize(ns4_r1_IA_C1_QNAME, reader, context);
    instance.setR1_IA_C1(((Double)member).doubleValue());
    Any help will be appreciated.
    Best regards.

    This is not an elegant solution.
    I’ve the same problem you have, so the only thing that I thought to solve this problem was to change the sentences one by one replacing with if(member != null) between both sentences.
    I use an editor that can change regular expressions.
    This works fine, but I think there might be a better solution.
    I hope this can help.
    Regards.

  • Log In Automatically on horizon client with windows account

    Is it possible to login on horizon client with the windows credentials???
    for instance:
    I would like to double click on Desktop icon and it automatically login on horizon client and after desktop.
    Ive already try this command:
    C:\Program Files (x86)\VMware\VMware Horizon View Client\vmware-view.exe" vmware-view://[email protected]/cn=appxpto,ou=applications,dc=vdi,dc=vmware,dc=int -password MyPassword
    But;
    First: It didnt work, it still ask me the password
    Second: I dont want to write down my user, neither my password.

    Well I made a fatal error!!!
    I tried reinstalling OSX and archiving the users/settings...The installer couldn't finish.
    Now the Mac won't startup and won't work in Target disk mode!
    This is my Powerbook G4.
    Hard drive test shows no errors. Can't check permissions though.
    My only hope will be to go and buy disk warrior tomorrow and see if I can save something from the drive B4 a complete reinstall.

  • Windows 7 Client with Windows 2000 server

    Hi ,
    We are having an application developed in Delphi 6 and hosted in Windows 2000 server(sp4) .Recently we have migrated all our clients to windows 7 from XP.  Since then we are getting Access Violation error whenever we are using the application.
    We are accessing the application through RDP (Remote Desktop ) from Win 7 Clients to Windows 2000 server.
    Could any body help me how to resolve this issue as this is stopping the business.
    Regds 
    Vignesh Krishnan B

    Hi,
    As Windows 7 uses NTLM2 by default, please try to set it to “Send LM & NTLM – Use NTLMv2 session security if negotiated”
    How to:
    Open secpol.msc -> local policies -> security options -> Network security: LAN Manager authentication level.
    Best Regards.
    Jeremy Wu
    TechNet Community Support

Maybe you are looking for

  • I'd like a PLUGIN that plays RealPlayer - NOT REALPLAYER ITSELF

    Hello. I was trying to view some old David Pogue videos and the website said I needed RealPlayer. I don't want RealPlayer and I don't care if the OS X version is good or not. I'd just like a component that lets me play those files in Safari. MPlayer

  • Help - restore from time machine freeze

    I set up a clean install of Mountain Lion, which seemed to go fine... then restarted the PowerBook and settled back to let Time Machine restore my apps and documents. It took about six hours... but then, when the process had wound almost all the way

  • How do you export Motion 5 to Compressor 4?

    I can't find a reasonable way to export my Motion 5 output to Compressor 4. Motion 4 would create an Mpeg4 file, but haven't been able to find that capability in Motion 5. Compressor 4 can create the file, but I can't get there from here unless I exp

  • Missing Master Slides

    In one of my presentations all the masters have disappeared except "title and bullets". If I open a new presentation (all the masters are available) then copy any of the slides from the old presentation into the new one, all of the masters in the new

  • Posted in wrong forum

    wrong forum, sorry Edited by: CC on Oct 31, 2008 4:56 PM