passing parameter to webservice

H

H Lim

Hello,

I am trying to create a very simple form with a company text box and a
contact drop down list. When a company name is change, it calls a web
service to query contacts for that company and populate the drop down. I'm
using VS.NET 03 to do the coding. If anyone has any code sample or
suggestions, please help.

Thanks,
Howard.
 
H

H Lim

Hi Franck,

Thanks for the reply. I did look at the link but could not get it to work.
It's giving me the following error message when I try to run it,

System.NullReferenceException
Object reference not set to an instance of an object.
at
Microsoft.Office.Interop.InfoPath.SemiTrust._DataDOMEventSink_SinkHelper.OnAfterChange(DataDOMEvent
pDataDOMEvent)

the error line is exactly the same as the link below except I replace
DataSourceName with my web service function and param1 with my web service
parameter.

wsDOM.selectSingleNode("/dfs:myFields/dfs:queryFields/s0:DataSourceName/s0:param1").text
= thisXDocument.DOM.selectSingleNode("/my:myFields/my:wsParam1").text;

thanks for any other suggestions.

Howard.
 
H

H Lim

H Lim said:
Hi Franck,

Thanks for the reply. I did look at the link but could not get it to work.
It's giving me the following error message when I try to run it,

System.NullReferenceException
Object reference not set to an instance of an object.
at
Microsoft.Office.Interop.InfoPath.SemiTrust._DataDOMEventSink_SinkHelper.OnAfterChange(DataDOMEvent
pDataDOMEvent)

the error line is exactly the same as the link below except I replace
DataSourceName with my web service function and param1 with my web service
parameter.

wsDOM.selectSingleNode("/dfs:myFields/dfs:queryFields/s0:DataSourceName/s0:param1").text
= thisXDocument.DOM.selectSingleNode("/my:myFields/my:wsParam1").text;

thanks for any other suggestions.

Howard.
 

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