How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Complete

Written by Cornelius J. van Dyk on . Posted in Blog

As we know, InfoPath forms have the ability to consume data from SharePoint’s User Profile Service Application through the SharePoint Web Services or to be more exact, through the UserProfileService.asmx web service specifically.  The question is how to do that?  It can be achieved by following a few simple steps as outlined below.

1.  From InfoPath, click the “Data” tab in the top menu.

2.  From the Data tab ribbon that opened, click “Data Connections”.

screenshot.615

3.  The “Data Connections” dialog window opens.

4.  There should be one data connection named “Main Data Connection” displayed already.

5.  Click the “Add” button to add a new connection.

screenshot.616

6.  The “Data Connection Wizard” appears.

7.  Select the “Create a new connection to:” radio button.

8.  Select the “Receive data” radio button.  NOTE:  These are usually set by default, but if they’re not selected on your form, select them.

9.  Click the “Next” button. 

screenshot.617

10.  Select the “SOAP Web service” radio button.  This should be the default value, but if it isn’t, select it.

11.  Click the “Next” button.

screenshot.618

12.  Now enter the location of the target service to be consumed in the edit box.  In our case, we are trying to consume the “UserProfileService.asmx” service which resides in the /_vti_bin/ virtual location off your current SharePoint site.  Simply copy the site URL of your site and append “/_vti_bin/UserProfileService.asmx” to it.  For example, if your site URL is http://www.crayveon.com/sites/SuperTeam/default.aspx, drop the page reference and append the above text to give you a value of http://www.crayveon.com/sites/SuperTeam/_vti_bin/UserProfileService.asmx which you enter into the edit box.

13.  Click the “Next” button.

screenshot.619

14.  InfoPath will connect to the web service and display the list of valid operations.

15.  Scroll down the list and locate the “GetUserProfileByName” operation and select it.

16.  Click the “Next” button.

screenshot.620

17.  On the parameter screen, simply click the “Next” button.

screenshot.621

18.  Ensure that the “Store a copy of the data in the form template” option is unchecked.

19.  Click the “Next” button.

screenshot.622

20.  On the next screen, you can specify the name you wish to give this data connection.  By default it will be called “GetUserProfileByName”, but you can change it if you’d like.

21.  Click the “Finish” button.

 screenshot.624

22.  The new data connection is now shown in the “Data Connections” dialog window.

23.  Click the “Close” button.

 screenshot.625

Now by simply using this data connection in your form, you have access to the vast array of data made available to you via SharePoint’s User Profile Service Application.

 



Cheers
C




image

How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Part 3

Written by Cornelius J. van Dyk on . Posted in Blog

Continued from…

How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Part 1

How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Part 2

 

17.  On the parameter screen, simply click the “Next” button.

screenshot.621

18.  Ensure that the “Store a copy of the data in the form template” option is unchecked.

19.  Click the “Next” button.

screenshot.622

20.  On the next screen, you can specify the name you wish to give this data connection.  By default it will be called “GetUserProfileByName”, but you can change it if you’d like.

21.  Click the “Finish” button.

 screenshot.624

22.  The new data connection is now shown in the “Data Connections” dialog window.

23.  Click the “Close” button.

 screenshot.625

Now by simply using this data connection in your form, you have access to the vast array of data made available to you via SharePoint’s User Profile Service Application.

 

For the sake of improved load time and user experience, this article is divided into three parts.  If you wish to read or print the complete article, it can be found here:

 

How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Complete

 

 

 



Cheers
C




image

How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Part 2

Written by Cornelius J. van Dyk on . Posted in Blog

Continued from…

How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Part 1

 

10.  Select the “SOAP Web service” radio button.  This should be the default value, but if it isn’t, select it.

11.  Click the “Next” button.

screenshot.618

12.  Now enter the location of the target service to be consumed in the edit box.  In our case, we are trying to consume the “UserProfileService.asmx” service which resides in the /_vti_bin/ virtual location off your current SharePoint site.  Simply copy the site URL of your site and append “/_vti_bin/UserProfileService.asmx” to it.  For example, if your site URL is http://www.crayveon.com/sites/SuperTeam/default.aspx, drop the page reference and append the above text to give you a value of http://www.crayveon.com/sites/SuperTeam/_vti_bin/UserProfileService.asmx which you enter into the edit box.

13.  Click the “Next” button.

screenshot.619

14.  InfoPath will connect to the web service and display the list of valid operations.

15.  Scroll down the list and locate the “GetUserProfileByName” operation and select it.

16.  Click the “Next” button.

screenshot.620

 

Click HERE to continue to Part 3

 

 



Cheers
C




image

heartbleed

Heartbleed – You MUST take action!

Written by Cornelius J. van Dyk on . Posted in Blog

What is Heartbleed?

If you haven’t heard of the Heartbleed (CVE-2014-0160) bug in the OpenSSL library, it’s time to pay attention!  I’m not going to regurgitate already available information here, but I’ll provide some pointers for you to get more of said information.  There’s a good explanation of the bug located here.  If you think it isn’t serious, consider the fact that services such as Google, Facebook and YouTube were affected while at the same time, hardware manufacturers did not escape scott free either.  Cisco published a security advisory here noting affected equipment as well as equipment being investigated for the vulnerability.

What do I need to do?

Here’s a non exhaustive list of things to do in order to address this:

  1. Make a list of services you use.  CNet maintains a page with a list of the top 100 US sites which should give you a good starting point.  If you are not using a password manager such as RoboForm, now might be a good time to consider starting to use one.  I personally use RoboForm and because I do, all my services are within easy reach.  It makes the creation of this list automatic and more importantly, it will have services on your list that you may forget about because you don’t use them on a daily basis.  Remember, this bug has been around for 2 years!!!  Any vulnerable service you accessed over the past two years could have resulted in your security passwords being stolen.
  2. Once you have the list, check each of the services for the vulnerability.  There are several checkers out there like this one from LastPass.  Personally, I like this one published by Filippo Valsorta.
  3. Once your service site clears the check, change your password.  It’s important NOT to change your password until the service provider has both patched their software AND updated their SSL certificates.  Changing your password before both of these are done, would still leave you vulnerable.
  4. DO NOT access any vulnerable services until they’ve been patched and are secure again.  The very first login to a previously vulnerable service should be to change your password.  Once changed, logoff completely and then log back onto the service using the new password.  For an extra measure of security I would recommend doing it in Incognito or InPrivate mode in your browser, closing the browser between logons.
  5. If you’re responsible for hardware, be it at home or at work, do research to see if your hardware such as routers are affected.  If your hardware is affected, patch it!  If no patch is available, pull the hardware and replace it with something that isn’t vulnerable.

It’s important to realize that it’s going to take time to patch all the services, especially smaller sites, and that continued use of these services will remain risky unless they’ve been properly secured.

Well what are you waiting for???!!!  Get started!!!  (And you thought you’re going to be doing this and that over the weekend… :-?  )



Cheers
C




image

How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Part 1

Written by Cornelius J. van Dyk on . Posted in Blog

For the sake of improved load time and user experience, this article is divided into three parts.  If you wish to read or print the complete article, it can be found here:

How do I – Add an InfoPath Data Connection to consume the UserProfileService.asmx web service – Complete

 

As we know, InfoPath forms have the ability to consume data from SharePoint’s User Profile Service Application through the SharePoint Web Services or to be more exact, through the UserProfileService.asmx web service specifically.  The question is how to do that?  It can be achieved by following a few simple steps as outlined below.

1.  From InfoPath, click the “Data” tab in the top menu.

2.  From the Data tab ribbon that opened, click “Data Connections”.

screenshot.615

3.  The “Data Connections” dialog window opens.

4.  There should be one data connection named “Main Data Connection” displayed already.

5.  Click the “Add” button to add a new connection.

screenshot.616

6.  The “Data Connection Wizard” appears.

7.  Select the “Create a new connection to:” radio button.

8.  Select the “Receive data” radio button.  NOTE:  These are usually set by default, but if they’re not selected on your form, select them.

9.  Click the “Next” button. 

screenshot.617

 

Please click HERE to continue to Part 2

 



Cheers
C




image

%d bloggers like this: