namespaces ns2 tns - causing errors on webmethods

R

Rod

(using IP 2007 to create IP 2003 templates)

I've created a simple webservice (vb.net) that queries a db and
returns no more that 100 rows, five methods in total. Now i'm trying
to setup the corresponding data sources for each service into my
infopath
template and confige them to trigger upon load.

The problem is that only some of the methods are being accepted by
Infopath, while others simply cause the template not to display upon
clicking the option to see the preview ("Infopath cant open the
selected template").

I have noticed that the services that are being loaded ok have the
"ns2" namespace, while the ones failing have it set to "tns". If i
delete the data sources using "tns" as their namespace, everything
loads ok.

This one loads and displays ok.
/dfs:myFields/dfs:dataFields/ns2:ClientResponse/ns2:ClientResult/
ns2:ArrCte
If this one is present, it will make the template not to display and
is aborted.
/dfs:myFields/dfs:dataFields/tns:CatProjResponse/tns:CatProjResult/
tns:ArrCatProy/tns:Category

I don't know how i managed to have a namespace like "ns2" on the first
3 webmethods that work ok,
because now, every new data connection i create (from a webservice)
ends up having "tns" as their namespace, is this something
configurable? any idea on where the problem is?
 
S

Shiva (GGK Tech)

Hi,

You have to set the property of namespace ns2 and tns whichever web methods
generate. Whenever you load this method, you have to set the property and in
this which one you want specify the prefix of namespace mention. And this
namespace of the prefix you have to use in code
 

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