User events in web services
Can I use "User Events" in Lab View Web Services
Creating a Web Service VI: http://zone.ni.com/reference/en-XX/help/371361E-01/lvhowto/web_service_ex/
User Events: http://zone.ni.com/reference/en-XX/help/371361D-01/lvconcepts/user_events/
As Nathan said, the user events must be created, registered, handled, and destroyed within the same Web Services application.
Product Support Engineer
National Instruments
Similar Messages
-
How to assign Tasks to other users using Exchange Web Service.
How to assign Tasks to other users using Exchange Web Service.
Any workaround also would helpHi Glen,
I am trying to use ExtendedPropertyType and put in UpdaterItemType as in this code as below. Although it is not updating the Owner
field.
I have tried it both by Propertyname and PropertyID. Although new custom property's canbe
added but to change an existing one like 'Owner' ? Would this be the right method.
2. And Is ProprertyID a fixed value as 0x811f or does it need to be calculated.
3. Is 'Owner' the right propertname for assigning a task ?
Thanks a lot.
Please see code below for reference.
PathToExtendedFieldType pathExtended = new PathToExtendedFieldType();
//pathExtended.DistinguishedPropertySetId = DistinguishedPropertySetType.PublicStrings;
pathExtended.DistinguishedPropertySetId = DistinguishedPropertySetType.Task;
pathExtended.DistinguishedPropertySetIdSpecified = true;
pathExtended.PropertyId = 0x811f;
pathExtended.PropertyIdSpecified = true;
//pathExtended.PropertyName = "Owner";
pathExtended.PropertyType = MapiPropertyTypeType.String;
ciSetAT.ExtendedProperty = new ExtendedPropertyType[1];
ciSetAT.ExtendedProperty[0] = new ExtendedPropertyType();
ciSetAT.ExtendedProperty[0].ExtendedFieldURI = pathExtended;
ciSetAT.ExtendedProperty[0].Item = "[email protected]";
SetItemFieldType set1 = new SetItemFieldType();
set1.Item = pathExtended;
set1.Item1 = ciSetAT;
UpdateItemType request = new UpdateItemType();
request.ItemChanges = new ItemChangeType[1] { new ItemChangeType() };
request.ItemChanges[0].Item = itemId;
request.ItemChanges[0].Updates = new ItemChangeDescriptionType[2];
request.ItemChanges[0].Updates[0] = setstart;
request.ItemChanges[0].Updates[1] = set1; -
Creation of LDAP User for Discoverer Web Services
Hi all,
this isn't a Discoverer issue per se, but I couldn't find where to post this in other forums.
After installing the web services patch for Discoverer (5648158), I need to create a bipublisher user
in OIDDAS right? However our installation seems a bit ***** up. So I need to do it from the command line.
I found some instructions in: here
and created the following bipublisher.ldif file:
cn=bipublisher,cn=users,dc=company,dc=com
objectclass=top
objectclass=person
objectclass=inetorgperson
objectclass=organizationalperson
objectclass=orcluser
objectclass=orcluserv2
objectclass=orclUserProvStatus
givenname=Web
userpassword=oracle123
displayname=bipublisher
orcldefaultprofilegroup=cn=sr_users ,cn=groups,dc=company,dc=com
preferredlanguage=en-US
sn=Services
orcltimezone=Europe/Athens
mail=[email protected]
uid=bipublisher
orclactivestartdate=20080612000000z
cn=bipublisher
orclisenabled=ENABLEDthen inserted the entry with:
ldapadd -h my.host.com -D"cn=orcladmin" -w oracle123 -v -f bipublisher.ldif
However when I try to login in the web services from Discoverer, I still get invalid credentials
Any clues? Thanks
PS I'm talking about the login web service method, not the basic web authentication. I am past that.
Edited by: dvm on Mar 6, 2009 3:30 AMNevermind, it seems the server was just a bit slow to take the new account under consideration.
-
Unauthenticated user when using web service
Hi,
I have built a session bean accessing some KM functionality. This sessionbean has a couple of business methods exposed as web services.
The business methods are called fine, but when I try to access the KM Resource Context I get the following exception
ResourceContext.setUser called with unauthenticated user MJOH
In the web service I have turned on basic authentication, and it's obviously trying to use my user MJOH. I have logged on to the portal containing KM to verify that my user indeed works.
Both the web service and KM are running on the same J2EE-server.
In the web service descriptor I have the following settings
<global-features>
<feature name="http://www.sap.com/webas/630/soap/features/authentication" protocol="SecurityProtocol">
<property name="AuthenticationMethod" value="BasicAuth"/>
<property name="AuthenticationMechanism" value="HTTP"/>
<property name="SupportsSSO2Authentication" value="false"/>
</feature>
</global-features>
Does anyone know if there are more settings that need to be done?
Regards
MattiasThere are intermittent problems with JSF pages and WS DataControl in the preview. This is logged as a bug.
Thanks, Guus (JDev PM) -
SUP user authentication for web services
Hi there.
Has anyone in the comunity had any experience with building Web Service based Mobile Business Object (MBO) in SUP 1.5.2. We have built a mobile application for a blackberry device which consumes two ERP web services. The application deploys successfully and runs on the blackberry device just fine. However, untill now the user credentials needed to authenticate a consumer to a web service has been hard-coded into the mobile business object. This, from an accountability point of view, is not an acceptible model (i.e. all mobile users would be logging in to the ERP backend with 1 common user ID).
Has anyone had any experience and could suggest an an alternative solution to this that would support accountability i.e. map SUP users to ERP users, trusted connections etc. and is this possible with SUP 1.5.2?
SActually, SUP 1.5.2 just provides the HTTP basic authentication for WS-MBO. It is enable that to create 'username' and 'password' on the WS-MBO as two input parameters. Thus, you can design your device app in SUP to prompt the dialog to accpet the username and password before you access your WS-MBO. Similar, if your web-service has input argument for username and password, you also can design a dialog like above.
-
User Authentication for Web Services
Hi,
I am developing a web services that resides in Intranet. Thus, would like to implement application layer of user authetication, i.e. to match the input user name and password against Database record through a web service logon() method. If authentication is passed, the client program is allowed to call subsequence web service methods, else exception needs to be thrown when calling subsequence methods.
As understand that each method call to web services is treated seperately. Thus, how can we implement the authentication so that the client program only passes in the user name and password at once through logon() method, instead of perfoming the authentication for each method?
Appreciate the advice. Thanks.Hi,
But, I need to develop the web services logon method using WSDL which generated the LogonBindingImpl.java, instead of web services using EJB bean.
Besides, the Web Service logon method (LogonBindingImpl.java) need to accept the input user name and password to check with the user name and password that stored in database table through the EJB bean. If checking successful, client program is allowed to invoke other WebServices method, else login failed exception need to be thrown when client calling other web services methods.
Appreciate the advice here on how to achieve that. Thanks. -
Configure User Authentication in Web Service
Hi,
I have a receiver soap channel that consume a web service with user authentication. I am setting the user/password in Connection Parameters section, but I'm getting the error from the web service:
Incoming message does not contain required Security header
Any ideas about what's wrong in my channel?
Regards,
IsmaelHi,
It doesn't work in my case (It's said in the first post).
I have tested it using PI 7.1 using:
- "Message Protocol=SOAP 1.1." and filling user/password in "Configure User Authentification" and I get the error:
soap fault: WSDoAllReceiver: Incoming message does not contain required Security header
- "Message Protocol=Axis ." I get the error:
com.sap.engine.interfaces.messaging.api.exception.MessagingException:
javax.ejb.EJBException: Exception in getMethodReady() for stateless bean sap.com/com.sap.aii.axis.app*xml|com.sap.aii.adapter.axis.ejb.jar*xml|AFAdapterBean;
nested exception is: com.sap.engine.services.ejb3.util.pool.PoolException: javax.ejb.EJBException:
Exception raised from invocation of public void com.sap.aii.adapter.axis.modules.AFAdapterBean.ejbCreate() throws javax.ejb.CreateException method on bean instance com.sap.aii.adapter.axis.modules.AFAdapterBean@5902bd4b for bean sap.com/com.sap.aii.axis.app*xml|com.sap.aii.adapter.axis.ejb.jar*xml|AFAdapterBean; nested exception is: javax.ejb.CreateException: java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
Regards, -
Pass ODI User/Password To Web Services
Hi Experts,
If we use 11g ODI WebService to invoke an ODI scenario, what's the best practice to pass in the ODI username/password to the web services client, in a passwd ecypted format?
Thanks for your input.The answer to this question was to use another function exposed by the Directory Management Web services, {domain}/soap/services/DirectoryManagerService?WSDL&lc_version=9.0.1.
The function in question is called updateLocalUser().
You can find more information here, http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/com/adobe/idp/um/api/Directory Manager.html#updateLocalUser%28com.adobe.idp.um.api.infomodel.User,%20java.lang.String%29. -
Hello,
if i define a secure web service, i also have to define one or more users which are allowed to access this web service. I only found instruction for defining such users on the application level. If i undeploy or redeploy the web service i lost this users.
Is there any possibility to store users for an application permanently or to define allowed users during the deployment?Hello,
I suppose that you are in OracleAS 10.1.3.x and you are using the WS-Security built in the product. If this is the case...
The WS-Security handlers are based on the JAAS security model, this means that the security processing is based on the container security. The user credentials are not related to the WS application but how the J2EE application security provider has been configured.
So by default you are using the FileBased Security provided that stores the data in the system-jazn-data.xml, but you can easily configure your application to use any other system to store user information such as a LDAP server for example.
I am inviting you to take a look to the Security Provider documentation:
- Introducing the OracleAS JAAS Provider and Security Providers
Regards
Tugdual Grall -
Access user inside of web service stub (or web service)
i am trying to access the current portal user from inside a web service and/or a web service stub. (note, ws is generated using xslt)...
i found in an otn document (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.web.services.for.portlets.html) the following:
*** begin
By using information specified in the XML provider definition (provider.xml), the renderers allow inputs to a web service to be "wired up" declaratively to any of the following sources of information.
Portlet render request parameters, such as the username, locale and authentication level
*** end
it continues, but the above section seems relevant to me. it indicates that i should be able to get this information to my web service (through the renderer???). can someone please explain how? are there examples of this?
thank you very much.
chrisfound it...
http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/HOW.TO.BUILD.WEB.SERVICES.PORTLETS.HTML -
Propagating user credentials to Web Services in WebLogic 6.1
Hi All,
Does anybody provide me some information about propagating client
credentials to the Web Service. Agree with documentation I have tried as in
code below, but it doesn't work. On a server i still have a guest user.
Thanks in advance for any help.
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
RaServices.class.getName() );
h.put(Context.SECURITY_AUTHENTICATION,"simple");
h.put(Context.SECURITY_PRINCIPAL,"user");
h.put(Context.SECURITY_CREDENTIALS,"password");
Context context = new InitialContext(h);Hi Jerzy,
Were you actually able to achieve what you wanted? I'm not exactly sure, because
you said "it began to work", but you also said I "wasted much of your time". If
you still are not satisfied, I'm sure the folks in our tech support area can help
you.
Regards,
Mike Wooten
"Jerzy Nawrot" <[email protected]> wrote:
Hi Mike,
Thank you for comprehensive explanation how to resolve my problem. I
have
done all work exactly
as you wrote and then it began to work, both for static and dynamic
client.
As is written in WebLogic documentation
I only restricted access to the stateless session bean that implements
my
Web Service, not the SOAP servlet.
It seams that in this case user credentials are not propagated from servlet
to ejb.
Thanks once again you wasted much time for me.
Regards ,
Jerzy Nawrot
"Michael Wooten" <[email protected]> wrote in message
news:[email protected]...
Hi Jerzy,
This does indeed work, because I just verified it. Let's go througheverything
to make sure you have all the pieces.
1. You need client code that looks something like
proxy.setUserName(userName);
proxy.setPassword(password);
where "userName" has been assigned the value of the user and "password"is
a clear-text
representation of their password.
2. You need to use the Admin console to add the user to the system.I add
mlwooten
as a user, and employees as a group. Then I put mlwooten in the employeesgroup.
3. The web.xml file for your web service should contain lines similarto
this:
<security-constraint>
<web-resource-collection>
<web-resource-name>PhoneBookService</web-resource-name>
<url-pattern>/examples/webservices/security/PhoneBookService</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>AuthorizedUsers</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<security-role>
<role-name>AuthorizedUsers</role-name>
</security-role>
4. The weblogic.xml for your web service should look something like:
<weblogic-web-app>
<security-role-assignment>
<role-name>AuthorizedUsers</role-name>
<principal-name>employees</principal-name>
</security-role-assignment>
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>examples.webservices.security.PhoneBookService</ejb-ref-name>
<jndi-name>examples.webservices.security.PhoneBookService</jndi-name>
</ejb-reference-description>
</reference-descriptor>
</weblogic-web-app>
6. That's all I did to get it to work.
NOTE: wsgen does not add the stuff in 4 and 5, above. You must addit
manually.
Regards,
Mike Wooten
"Jerzy Nawrot" <[email protected]> wrote:
Hi Michael,
Thanks for your advice.
The way you have proposed I've tested earlier and unfortunately this
method
does'nt work properly too.
It seams that session bean used as a Web Service knows nothing about
user
credentials passed from a client aplication.
Maybe, there is a bug in servlet
weblogic.soap.server.servlet.StatelessBeanAdapter wchich does'nt
propagate
credentials to a session bean implementing a Web Service, or some
configuration tasks are required on the WebLogic Web Server Components
Jerzy Nawrot
"Michael Wooten" <[email protected]> wrote in message
news:[email protected]...
Hi Jerzy,
You must do this through the WebServiceProxy object. The methods
you
want
are:
setUserName(String userName);
setPassword(String password);
The internals of WebServiceProxy will Base64 encode the password
before
it
invokes
the target web service.
Regards,
Mike Wooten
"Jerzy Nawrot" <[email protected]> wrote:
Hi All,
Does anybody provide me some information about propagating client
credentials to the Web Service. Agree with documentation I have
tried
as in
code below, but it doesn't work. On a server i still have a guestuser.
Thanks in advance for any help.
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
RaServices.class.getName() );
h.put(Context.SECURITY_AUTHENTICATION,"simple");
h.put(Context.SECURITY_PRINCIPAL,"user");
h.put(Context.SECURITY_CREDENTIALS,"password");
Context context = new InitialContext(h); -
Update User Password via Web Services
Hello. I am attempting to update the password for a user via the Rights Management web services, https://{mydomain}/soap/services/RightsManagementService?wsdl&lc_version=9.0.1, using .NET 4.0 (C#).
Below is the function I have written. When I execute the code it always returns false. I have searched the documentation and forumns but have not found anything. Can someone provide any ideas on how I can successfully update a users password in LiveCycle via the exposed web services?
public bool UpdateUserPassword(string userName, string password)
bool result = false;
WebServices.RightsManagement.UserImpl user = new WebServices.RightsManagement.UserImpl();
user.userid = userName;
user.canonicalName = userName;
user.domainName = DefaultPolicySets.DefaultDomain;
user.principalType = "USER";
user.local = true;
user.locked = false;
user.disabled = false;
user.system = false;
Console.WriteLine(this.rmSvc.resetExternalUserPassword(user, password));
return result;The answer to this question was to use another function exposed by the Directory Management Web services, {domain}/soap/services/DirectoryManagerService?WSDL&lc_version=9.0.1.
The function in question is called updateLocalUser().
You can find more information here, http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/com/adobe/idp/um/api/Directory Manager.html#updateLocalUser%28com.adobe.idp.um.api.infomodel.User,%20java.lang.String%29. -
User Management via Web Services
Hi,
We are investigating building a user management application that will control user creation and management across a range of applications, including SAP ECC6 and BW. The idea is to use web services to interact with the systems. I have seen that a range of BAPIs exist for managing users (e.g. BAPI_USER_CREATE, BAPI_USER_CHANGE) - does anyone have any experience in using these BAPIs via web services that they would be willing to share?
ThanksHI Colin,
We did that successfully. It was webservice/infopath based Interactive . net form which would do user management and also Workflow funtionality. In summary from my experience
- Initial cost would be cheaper, however ongoing maintainance on whole infrastructure should be considered.
- SAP BAPI/FM/webservice development was very easy
- Integration with Infopath was challange
- Fronted development was pain as you would need other people to do that for you
- Once operational, was very easy to managed
- Future enhancement was limitless
- Limitation of integration to other technology
- Should only be justifiable in absence of IDM solution
- Too much custom development
- Change management in SAP was easy (Transport, testing, QA etc) however Infopath and Frontend change Management was not easy
Let me know what other information you need. Finding BAPI's and designing in SAP is the easy part, you should think more about how you are going to deploy Webservice to end users.
However if your IT department has more bucks to spend, think about more longer term solution and towards IDM or product such as GRC etc. -
How to access Sap portal login user in ejb web service
Hi,
I wnt to access SAP Portal login user in my ejb application which resides on the same server.
I am using following code
try {
IUser user =null; IWDClientUser wdUser = WDClientUser.getCurrentUser();
user = wdUser.getSAPUser();
} catch (WDUMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Some additional jar files are required for this?
The same code works fine with webDynpro but not with ejb.
Thanks in advance
Best regards,
NileshThanks for reply.
I have already added com.sap.security.api in my EJB module project classpath. How to add the same in EJB application Project (application-j2ee-engine.xml)?
Best regards,
Nilesh -
How to trigger an event web service when a mail received in Exchange Server ?
Hi,
I have a requirement of Triggering the event in Web-service with related data (Mail Details) whenever mail received in Exchange Server..
I have done R&D on this, but I couldn't find answer.
Is there any possibility of triggering the service ? If Yes, how can I achieve this?
Thanks in Advance.Hi Jason,
Using above link, I am getting notifications only for the logged in user
service.Credentials = new NetworkCredential(EmailAddress,Password,domain);
I want a way to get the notification or callback when a email comes from any user to the server. I tried as above , but i could get the notifications for a logged in user with his credentials.
Please help me to find out a way to get the notifications from the server irrespective of the user login.
Maybe you are looking for
-
Switch and Router Redundant Network
I am trying to learn as much as possible about networking and cisco. I trying to build the following network to practice redundancy. I set up HSRP on my routers because it the only protocol available on packet tracer. The following setup works but ho
-
Can't preview my ibook on my iPad!
Hi, I'm working on iBooks Author and I need to test my book to see how it looks like, before proceeding even more with writing. What I did: 1- I downloaded iBooks on my iPad. 2- I connected it to my Macbook pro, using Mountain Lion 10.8.1 3- I clicke
-
How to make sum (function) discrimination in report?
Hi all, I need to create a report for item sales. The sale (item) can be canceled by a customer but it still need to be in the report as well. Foe example, suppose the customer buy four items (banana, apple, orange, grape) each for 100 items, but dec
-
Motion 5 Crashes when selecting a .txt file in the file browser.
This is my crash log: Process: Motion [2693] Path: /Applications/Motion.app/Contents/MacOS/Motion Identifier: com.apple.motionapp Version: 5.0.7 (221398) Build Info: Motion-22139008018000000~1 App Item ID: 434
-
SXMB_MONI shows error in Java Proxy (Inbound)
Hi All, My scenario is FTP->XI->Java Proxy->FTP I have configured the JPR Adapter and registered it correctly. But in SXMB_MONI, I am getting the error in JPR Adapter(Response) stating that, <u><b>Error when receiving by HTTP (error code: 108, error