• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Name collision using connect-webservice




I am using the connect-webservice script from http://www.leeholmes.com/blog/
to access a remote database. My problem is that the remote database
has a wsdl for each table. The two objects I need to create to access
two tables have the same name (get). How can I fix this so that the
two object types do not collide?

Basically, I have something like:

$tableA_adapter = connect-webservice http://server/tablea&WSDL
$get = newobject get
$results = $tableA_adapter.get($get)
$tableB_adapter = connect-webservice http://server/tableb&WSDL

This causes an error since $tableA_adapter and $tableB_adapter have
the same type name ,but in reality they are two different types which
correspond to the respective tables.

Sorry if this is confusing. I'd appreciate it if anyone can point me
in the right direction. I don't have any access to the server so I
cannot change the wsdl at all.


My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)