Microsoft Live & Word AddIn

D

David Thielen

Hi;

In my AddIn I call the following code where the filename is the file I
am editing and it is a Microsoft Live file

filename="http://adamm515.workspace.office.live.com/90359bb4-dede-494c-b024-57dc8611d0f5/Docs/Windward
Trucking Template 2.docx"

Also weird that the file will not come up if pasted in a browser. But
it is the filename returned by Word to my AddIn.

WebRequest req = WebRequest.Create(filename);
WebResponse resp = req.GetResponse();

And on GetResponse() I get the exception:

System.Net.WebException occurred
Message="The remote server returned an error: (501) Not
Implemented."
Source="System"
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at net.windward.utils.FileUtils.GetStream(String filename) in
C:\src\holomua\Kailua\net\windward\utils\FileUtils.cs:line 113
InnerException:

Any idea why?

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jie Wang [MSFT]

Hi David,

I'm not the Office Live guy but here are my thoughts about the question...

The files stored in the Office Live are secured by the Windows Live ID
(formerly .NET Passport), if one can just paste the URL into the browser or
sending an HTTP request to the server and the file gets downloaded, that
would be a huge security hole!

The filename we see here may just be an identifier of the actual file, the
Office Live add-in for Word will actually utilize the Windows Live ID
authentication and call the Office Live service to get the real file stream.

Besides, the Office Live is still in Beta, the "Not Implemented" error may
indicate that the direct URL access feature may be available in the future
(just a wild guess).

I'm not aware of any "Office Live APIs" available at this time. Take a look
at http://dev.live.com/, the developer center for Live services related
programming, you may find more relevant information there.

Best regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jie Wang [MSFT]

Hi David,

Just did some research, here is an update:

You need "Windows Live ID Client SDK" to access these files. Quoting from
the Office Live FAQ:

Q. Can I write a Windows App that talks to the Office Live Business
Applications?

A. Yes! Using the Windows Live ID Client SDK, you can authenticate against
the Live ID authority, determine which subscription(s) the user has access
to and then start interacting with the Business Applications associated
with that account. This could range from adding/updating/retrieving
contacts, reviewing project milestones & tasks, or working with files
stored in a document library. It's up to you and your imagination.

URL:
http://social.msdn.microsoft.com/Forums/en-US/olbasics/thread/f2259247-e930-
498d-8f09-992fe01e58d4

Windows Live ID Client SDK:

http://social.msdn.microsoft.com/forums/en-US/olbasics/thread/3d31e8e9-58ca-
48e4-82a7-02b47b89ade2/

Hope this info helps.

Best regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

Ok, will try this - thanks - dave

Hi David,

Just did some research, here is an update:

You need "Windows Live ID Client SDK" to access these files. Quoting from
the Office Live FAQ:

Q. Can I write a Windows App that talks to the Office Live Business
Applications?

A. Yes! Using the Windows Live ID Client SDK, you can authenticate against
the Live ID authority, determine which subscription(s) the user has access
to and then start interacting with the Business Applications associated
with that account. This could range from adding/updating/retrieving
contacts, reviewing project milestones & tasks, or working with files
stored in a document library. It's up to you and your imagination.

URL:
http://social.msdn.microsoft.com/Forums/en-US/olbasics/thread/f2259247-e930-
498d-8f09-992fe01e58d4

Windows Live ID Client SDK:

http://social.msdn.microsoft.com/forums/en-US/olbasics/thread/3d31e8e9-58ca-
48e4-82a7-02b47b89ade2/

Hope this info helps.

Best regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
D

David Thielen

Hi;

We are hitting a problem here that I think is a Word issue, not an
Office Live issue. Office Live provides a url to a word document that
we can read from our program. It works perfectly.

However, the url that Application.Name gives us is not that url. It is
a url that as far as we can tell from working with Office Live points
to nothing.

How can we get the correct url from the Office API?

thanks - dave


Hi David,

Just did some research, here is an update:

You need "Windows Live ID Client SDK" to access these files. Quoting from
the Office Live FAQ:

Q. Can I write a Windows App that talks to the Office Live Business
Applications?

A. Yes! Using the Windows Live ID Client SDK, you can authenticate against
the Live ID authority, determine which subscription(s) the user has access
to and then start interacting with the Business Applications associated
with that account. This could range from adding/updating/retrieving
contacts, reviewing project milestones & tasks, or working with files
stored in a document library. It's up to you and your imagination.

URL:
http://social.msdn.microsoft.com/Forums/en-US/olbasics/thread/f2259247-e930-
498d-8f09-992fe01e58d4

Windows Live ID Client SDK:

http://social.msdn.microsoft.com/forums/en-US/olbasics/thread/3d31e8e9-58ca-
48e4-82a7-02b47b89ade2/

Hope this info helps.

Best regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jie Wang [MSFT]

Hi David,

The Document.Path returns a URL that can be recognized by the Live Add-in
and grab the file from the server. However, that URL is not necessarily
valid to other applications.

I'll try to find out more with Office Live team and get back here.

Thanks,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

Hi David,

The Document.Path returns a URL that can be recognized by the Live Add-in
and grab the file from the server. However, that URL is not necessarily
valid to other applications.

I'll try to find out more with Office Live team and get back here.

thank you very much. I think we can provide some very very cool (and
useful) functionality for OfficeLive if we get this. And it will be
functionality that Google Apps cannot do :)



david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jie Wang [MSFT]

Hi David,

Just confirmed that Office Live Workspace does not expose API for 3rd party
use at this time.

However, the Office Live Small Business service does provide APIs and
developer references here:
http://msdn.microsoft.com/en-us/library/bb187381.aspx

A complete code sample for Client Application Connection:
http://msdn.microsoft.com/en-us/library/bb862331.aspx

Regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top