Call a web service

A

A.M

Hi,

Can I dynamically call a web service within my JavaScrtiot code?

That means I don't want to create a DataAdapter at design time. I want to
build a WebService adapter within the code at runtime and call its methods.

Thank you,
Alan
 
B

Brisk

I'm not sure what JavaScrtiot is, but JScript is the scripting language
supported by Infopath. :) Your best bet would be to install the .net
toolkit for infopath (do a search for the executable) and worked with
managed code (c# or vb.net) instead of jScript. Then, just set up your
web reference, include the reference as a 'using' or #include, and
create the object:

MyWebService mws = new MyWebService();
returnValue = mws.WebMethodName()
 
A

A.M

Hi Brisk,

Sorry about the typo. I use terminal services through a low speed connection
and sometimes I don't see what I type!

On the main topic, The problem is I cannot use VS.NET because we don't want
to install VS.NET on all support team computers.

Can I use JScript to re-configure DataAdapters?

Thank you for help,
Alan
 

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