Web Services with Authentication - User Name and Password.
How to create a web service and web service client where the need is to authenticate using SOAP Header based authentiacation. The authentication is to be based on UserName and Password in the SOAP Header.
Regards
Pramod.
Dear Pierluigi Vernetto
What is meant when they say to include SOAPHeader with the parameters UserName, Password for Authentication. How this type of authentication is done.Can you please provide some code snipped to facilitate. I am new to the web services and did successfully a web service generation and client generation using WSDL.
WSDL Snippet :
- <wsdl:operation name="RegisterService">
<soap12:operation soapAction="http://www.abc.com/webservices/RegisterService" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
<soap12:header message="tns:RegisterServiceAuthenticate_Info" part="Authenticate_Info" use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.abc.com/webservices/">
- <s:element name="RegisterService">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="InputText">
- <s:complexType>
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="RegisterServiceResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="RegisterServiceResult">
- <s:complexType>
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Authenticate_Info" type="tns:Authenticate_Info" />
- <s:complexType name="Authenticate_Info">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
</s:sequence>
<s:anyAttribute />
</s:complexType>
If i simply create the web service using the WSDL , will the Authenticate_Info will be taken care of.
What needs to be done for the Client side .jsp code and how this information of UserName and Password will be passed while making the call to the web service.
regards
Pramod.
Similar Messages
-
I did not know my kids had set up an Itunes account for me with one user name and password. then i got an i phone and set it up with a different email address and new password. how can i get my accounts to merge so i can have all of my music on my iphone
Quote: "You cannot merge two or more Apple IDs into a single one. You can, however, use one Apple ID for iCloud services and another Apple ID for store purchases (including iTunes in the Cloud and iTunes Match). See “Using one Apple ID for iCloud and a different Apple ID for Store Purchases” above for details." See also Apple ID & iCloud FAQ: http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US
You can set up your iCloud account on your iOS device under: "Settings > iCloud" and a other account for store purchases under "Settings > iTunes & App Stores". Unfortunately merging accounts is not possible but you could transfer all of your music manually via iTunes from your Mac or PC. -
Invoke-sqlcmd with domain user name and password
I am trying to execute below small SQL script from powershell by passing my domain user name and password..but it is throwing an error login failed for the user.
Howerver I am able to execute the same query by passing normal user 'non domain' and password. The issue is only when i am trying to connect with domain username.
Can you please suggest if there is any way to execute below query with domain user..
Invoke-Sqlcmd
-query "select name from master.sys.databases"
-ServerInstance "CM-NCKM-DBTST04\SQL2012" -username "sos\9venk" -password "xxxx"
Thanks
Venkat
venkatHi Venkat,
Agree with Mike, to connect sql via powershell, you can refer to this article about authentications:
Connecting to SQL Server through Powershell
Please try to gather credentials using Get-Credential, and then use New-PSSession -Authentication CredSSP to open the pssession.
A similar discussion about this issue is for your reference:
Invoke-SQLCmd with Different Credential
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
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 Support, contact [email protected] -
Problems with invalid user name and password
We have a one week old MacBook 2.2GHz basic white model that is generally working well.
However a problem has now arisen whereby on any attempt to shutdown or restart it won't accept the administrator user name and password, returning an 'invalid' warning. The issue seems to be the user name as the administrator password has worked OK in other situations. Naturally I have checked and re-checked the user name (which was in the form (first name followed by surname in upper and lower case) and it was OK (in any case it was being prompted automatically by the system.)
I have subsequently changed the administrator name (to the form first name only in upper and lower) and the password as suggested by the following article:
http://docs.info.apple.com/article.html?artnum=306876
Nothing has changed. Can anyone help?HI Martin, a late post to confirm the solution from the last post by using the "RETURN" key works..
(mouse click worked ok in Tiger 10.4.x I thought).
Tis was a delight and so obvious after seeing these symptoms.
I have posted this entry in case anyone else get's into this situation since OSX LEopard 10.5. Several people have encountered this issue where they may have:
• LEopard 10.5.x installed
• have 2 or more active users LOGGED into the OSX system via fast user / fastuser switching
• request a SHUTDOWN or RESTART from an user
• get a OSX request to supply administrator attributed user and it's associated password to validate SHUTDOWN | RESTART request,
• have admin | root account verification failure of password after 'clicking'.
After some months of frustration, it seems a simple PRESS of the "RETURN key" works!
Simply, DON'T mouse click after entering admin user/password.... instead press "RETURN" key.
fwiw.
w -
Always prompted for "802.1X Authentication" user name and password
Hi,
Just had the logic board replaced in my Macbook Pro, but that's an different story...
The most recent side effect of this is that I am always prompted for my password/user name when I connect to the wireless network at work.
Obviously, I enter the name and password. However, I didn't used to have to do this. In other words, it's not being saved.
Any suggestions on what I can do so it's saved again?
The Network preference panel reports:
Authenticated via PEAP (Inner Protocol:GTC)
The 802.1X pane shows I have 1 'User Profiles':
WPA:<network>
Which has:
my name
a password
Authentications enabled:
PEAP
TTLS
EAP-FASTHi,
it might have something to do with your logic board exchange. Your MAC address (Media Access Control, Ethernet-ID, AirPort-ID, Hardware Address or what you want to call it) has changed. Every network interface has a distinct address which looks like that: 01:23:45:ab:cd:ef
I would ask your company's admin first if it has something to with you having a new MAC address.
Alternatively you could try to remove the wlan from Sys Prefs/Network/AirPort/Options/Preferred Networks. Also remove any saved passwords of this network from your keychain and then try adding it again with the remember-checkbox on.
Björn -
I don't know what else to say about this but I guess I have to enter something in this box.
gemma252 wrote:
I have just installed snow leopard and reset my admin name and password.
Likely because both occurred at the same time and/or you created another Admin user/ didn't allow the new Admin to admin the machine?
Hold c and boot off your Snow Leopard install disk and second screen in under the Utilities menu is Reset Password.
There is also a Single User mode (caution root user!) way to reset passwords on each account.
http://osxdaily.com/2011/04/25/change-admin-password-mac/
Before you do that, make sure at any opportunity to backup your files manually to a external drive and disconnect. -
Settings use mail.btinternet.com as smtp, SsL is on, port 995
Hello Bigstorr,
It sounds like you are not able to send emails from your iPad. I found a couple of resources that address issues with email on the iPad:
Setting up and troubleshooting Mail
https://www.apple.com/support/ipad/assistant/mail/
iOS: Unable to send or receive email
http://support.apple.com/kb/ts3899
Thank you for using Apple Support Communities.
Best,
Sheila M. -
How can I hide the user name and password from the url address?
Good afternoon every body,
I have a form running with Oracle9i Developer Suite Release 2 and when I run the form on the web it shows the user name and password of my data base. Can anyone of you please help me to hide the user name and password, if there's any way of course?.
Thanks a lot!!.Luis,
Then, as inolau's notice, create logon screen (or use the default one) and force the users to logon at runtime. Do not pass username/password as parameters.
inolau,
True that if the connection is specified in the config it will be the same for everyone. However, every case is different. For example one of our apps gets S3 credentials (from non-Oracle S3) as session parameters. It uses this common db connection to validate some stuff with the database, read security definitions and then it re-connects the forms using the credentials. -
Invalid User Name and Password in RCU
I am trying to install SOA 11g in my machine (Windows 7 64 Bit).
I have successfully installed the following
1. JDK (Java 6 Update 45)
2. Oracle XE 10g Database
3. Weblogic Server
While installing RCU, I am facing issue with Invalid User Name and Password. <<Attaching File = RCU_Error.jpg>>
I am able to connect to database using sqlplus (for XE) with user = system. <<Attaching File = sqlplus.jpg>>
Can anyone help on this?Hi Banerjee,
SOA 11g is not certified or supported with DB 10.2.0.1 so request you to either upgrade the DB to 10.2.0.4 or use 11g DB.
Regards,
Prakash. -
Case 1, for a NON-JNDI based database connection:
Connection conn = DriverManager.getConnection(url, "username", "password");
Case 2, for a JNDI based database connection:
Context context = new InitialContext();
DataSource dataSource = (DataSource) context.lookup("java:comp/env/jdbc/test");
Connection conn = dataSource.getConnection();
Notice that for NON-JNDI based database connection, the username and password are specified. But for the
JNDI based database connection, there is no username and password specified. How come? If I want to specify the username and password for JNDI based connection, how can I do it?
Thanks
Scottscottjsn wrote:
Though your example shows using a jndi file, you user name is actually hard coded.There's no such thing as a "jndi file". The username is not hard coded because that's not code, it's a configuration file.
I believe my original question is how to use JNDI with the user name and password.The username and password are always the same. You have one set of those for the database, for all the users in your application. The only situation where that might differ is for example a testing server or development server having a different username and password.
They would have their own configuration files then.
The user name and password can be dynamically retireved and set for each authorized user on the fly.Authorization is a different beast. This (your code) is about getting database connections through a DataSource object. -
My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.
Hmmmm... would appear that you need to be actually logged in to enable the additional menu features.
Have you tried deletting the plists for MAS?
This page might help you out...
http://www.macobserver.com/tmo/answers/how_to_identify_and_fix_problems_with_the _mac_app_store
Failing that, I will have to throw this back to the forum to see if anyone else can advise further.
Let me know how you get on?
Thanks. -
User Name and Password in weblogic realm while invoking a web service
Hi,
I deployed a rpc web service using WLS 7.0 SP2 in HP-UX 11 environment. When I
invoke the web service through my browser (IE 6.0) using the web services url,
it brings my service method correctly. From there, if I click the invoke button
it asks me for a network user name and password under "weblogic" realm??? If I
provide the admin user credentials (which I supplied while creating my domain)
it is not accepting that it keeps popping up this network user password window
over and over. Not sure which username/password I have to provide here to see
the result of my service.
If I try to invoke the web service through my client (static) I am getting a connection
refused exception. I guess either way, I am not able to access my web service.
In the attached file, I have cut and pasted the client stack trace as well as
the server log trace from weblogic.
Any ideas would be highly appreciated.
Thanks,
Ganesh
[errorstacktrace.txt]I think the client is not able to do a HTTP POST
to the WLS server but it can do a HTTP GET.
I dont know why.
http://manojc.com
"Ganesh" <[email protected]> wrote in message
news:3eba91bc$[email protected]..
>
Hi,
I deployed a rpc web service using WLS 7.0 SP2 in HP-UX 11 environment.When I
invoke the web service through my browser (IE 6.0) using the web servicesurl,
it brings my service method correctly. From there, if I click the invokebutton
it asks me for a network user name and password under "weblogic" realm???If I
provide the admin user credentials (which I supplied while creating mydomain)
it is not accepting that it keeps popping up this network user passwordwindow
over and over. Not sure which username/password I have to provide here tosee
the result of my service.
If I try to invoke the web service through my client (static) I am gettinga connection
refused exception. I guess either way, I am not able to access my webservice.
In the attached file, I have cut and pasted the client stack trace as wellas
the server log trace from weblogic.
Any ideas would be highly appreciated.
Thanks,
Ganesh -
User Name- and Password-Based Mutual Authentication
Hi,
The J2EE 1.4 Tutorial Update 1 shows an example of Client-Certificate Authentication over HTTP/SSL with JAX-RPC, but no User Name- and Password-Based Mutual Authentication example.
Does this work the same? Does the client need a certificate for User Name- and Password-Based Mutual Authentication?
I created my own self-signed certificate and imported it using the keytool. When I use my client to connect to my JAX-RPC web service, I get the following error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found.
It seems that no trusted certificate is found... on the client side?! How do I specify the client certificate at the client side? I created a client certificate and added it to the keystore in the application server...
If somebody should have an example of User Name- and Password-Based Mutual Authentication, I'd really apreciate it.
Thanks, d3m0.Hi,
I've almost the same problem.In an application based on Java Web Start, i try to attack a web service through HTTPS. Before the call of the web services, the client have discussed with the server through HTTPS, so the user have already accept the certificate (i use self-signed certificate too), i get the same exception.
At the begining i've used classes from axis. I've found that axis doesn't want to support non trusted certificate. Some workaround were that the client access the private key of the server ... not really secure. So i've tried to use the JAX-RPC classes, always the exception.
For the moment , we don't want to use trusted certificate and don't want to install on each user workstation the server certificate. I continue to investigate, if someone have some solution ? What i don't understand is why i've this exception altough i'm in a secure environment (JWS + user accepts the untrusted certificate).
Sorry, i've never work on User Name- and Password-Based Mutual Authentication, but i think your exception come because of self-signed certificate.
Regard,
Pierre. -
Log on the other computer with user name and password
How to use labview to write a software to log on the other computer with user name and password?
Jimmyzeng wrote:
Nobody can help on this?
Besides repeatedly asking the same question in thread after thread, you are not providing enough information to answer the question. You have been given answers already stating that operating systems do not make this very easy to do using programs for security concerns. In addition, the authentication process varies depending on what service you are communicating with. You really need to provide more information if you want to get meaningful answers to your questions.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
Trying to run it as the current user, or as one from a different account(administrator in this case) also doesn't work.
I think the client is not able to do a HTTP POST
to the WLS server but it can do a HTTP GET.
I dont know why.
http://manojc.com
"Ganesh" <[email protected]> wrote in message
news:3eba91bc$[email protected]..
>
Hi,
I deployed a rpc web service using WLS 7.0 SP2 in HP-UX 11 environment.When I
invoke the web service through my browser (IE 6.0) using the web servicesurl,
it brings my service method correctly. From there, if I click the invokebutton
it asks me for a network user name and password under "weblogic" realm???If I
provide the admin user credentials (which I supplied while creating mydomain)
it is not accepting that it keeps popping up this network user passwordwindow
over and over. Not sure which username/password I have to provide here tosee
the result of my service.
If I try to invoke the web service through my client (static) I am gettinga connection
refused exception. I guess either way, I am not able to access my webservice.
In the attached file, I have cut and pasted the client stack trace as wellas
the server log trace from weblogic.
Any ideas would be highly appreciated.
Thanks,
Ganesh
Maybe you are looking for
-
Jabber and IP Phone 8945 call history synchronisation
Hi We're running 8945 IP Phones and CUPC 8.5.5 and a few Jabber 9.0.4 in a CTI deskphone mode. Currently both call history are linked to the device. No synchronisation between IP Phone and CUPC / Jabber. Even the missed calls count is not cleared on
-
How can I re-install the last version of iPhoto, I hate this new version.
How can I re-install the last version of iPhoto. I hate this new version "Photos 1.0" which installed yesterday on my iMac. Please help. My operating system is OS X YOSEMITE 10.10.3. THANKS.
-
Customizing Requisition request in HCM Processes & Forms
Hi HCMers, We have just upgraded our development system to EhP4 in ECC and E-Recruiting systems, and SP5 in E-recruiting. We want to use the simple requisition request process in HCM Processes and Forms but have several customizations to apply. For e
-
How to run the Program given in JavaMail 1.4 Demos (folderlist.java)
Hi All, in the distribution of JavaMail 1.4, some programs are given, i want to run folderlist.java. But i m unable to run it? Can somebody tell me how to run it? i tried like this: java folderlist -T IMAP -H email.abcdef.com -U user -P password java
-
Why is my mac mail program freezing? I use an imac running os 10.7.2. My freezes occur when I'm not using mail but have it open. After a while I realize no new mail has been downloaded. If I try to close mac mail, nothing happens, so I do a "forc