The Artima Developer Community
Sponsored Link

.NET Buzz Forum
InfoPath and EDRA

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Anand M

Posts: 984
Nickname: anandm
Registered: May, 2004

Anand M is a VB.NET MVP working as a Senior Architect @ Polaris Software Lab Ltd
InfoPath and EDRA Posted: Dec 1, 2005 7:49 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Anand M.
Original Post: InfoPath and EDRA
Feed Title: .NET From India
Feed URL: http://www.dotnetindia.com/index.rss
Feed Description: Your daily dose of .NET From India
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Anand M
Latest Posts From .NET From India

Advertisement

If you are using EDRA based Webservices, do note that you may have a problem accessing them from Infopath.

There are two problems with EDRA WS that makes it difficult to use with Infopath.

1. EDRA by default packages the response with UTF-16 encoding. Infopath 2003 SP1, supports only UTF-8. So Infopath will not be able to understand the data coming back from the WS. This is easily fixed, by changing the Encoding in the XMLWriter part.
2. The more serious one is the way EDRA actually parses the incoming message. When a .NET program calls a web service it actually create the SOAP envelope without any spaces. But if you look at Infopath's SOAP envelope, it is formatted with tabs and whitespaces. EDRA currently seems to have a problem with this as it does not expect whitespaces in the incoming message. Thus the Infopath call will fail. The way to fix this is to change the XML reader to read with IgnoreWhiteSpaces setting.

I am not sure if these changes affect anything else, but they sure make your WS accessible from Infopath. And the worst thing is that due to Error 1, Infopath cannot even show you the error the web service raises "Client Error", since it is returned as a SoapException (encoded in UTF-16), but rather shows a Soap parsing error.

More testing is needed, but stuff seems to work as of now. :-)

Read: InfoPath and EDRA

Topic: IT Forum 2005 - O12 Server slides Previous Topic   Next Topic Topic: [Development] Microsoft SSE - Simple Sharing Extensions for RSS and OPML

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use