Tcl - SOAP Problem


 
Thread Tools Search this Thread
Top Forums Programming Tcl - SOAP Problem
# 1  
Old 02-22-2008
Tcl - SOAP Problem

Hi,



Im working with client side Tcl implementation on unix box of web services, to login to a tool with web service method written in C# on windows box and it is accessed by its link from the browser on unix box.

Sorry that i have hidden the original names for security reasons.

Using SOAP im trying to access 'Connection' method of the web service which
has 3 arguments URL, Username and password.

The code for SOAP implementation is:


Code:
package require SOAP

Code:
SOAP::create Test \
-uri "http://xyz.net" \
-proxy "http://<ip address> /link.asmx" \
-name Connection 	-action "http://xyz.net/Connnection" \
-params {url string username string password string}



The method is called as:

Code:
Test "http://xyz.net/fbin" "username" "password"

On calling the method as the way specifed above it is throwing the following
exception:

Quote:
ERROR {EXCEPTION {System.Runtime.InteroptServices.COMException (0x80040154)
: Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG))
at API.ConnectionClass.Init (String ServerName)
at A.B.Connection(String url, String username, String password) in
<PATH> \File.cs.line 31}}
Additionally i tried the Tcl code with "?WSDL" option which also does not
work.

There is also no change from using in the '-params' tag of defining the
three inputs as string with quotes/without quotes.

I suspect there is some mistake in my code in forming the method in my side
of implementation in Tcl.

Please let me know what may be the reason for this error as the method works fine from browser.

Also i found that the webservice is working fine for getting any data from server and only if i give any input to the server it is not even reaching the server end.

Thanks in advance.

Last edited by SankarV; 02-22-2008 at 05:49 AM.. Reason: additional information
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SOAP module in perl

Hi, I have executed the below perl code to check whether SOAP module is working or not. #!/usr/bin/perl use SOAP::Transport::HTTP; print "Hai"; But I got the below error message: Can't locate SOAP/Transport/HTTP.pm in @INC (@INC contains:... (2 Replies)
Discussion started by: liyakathali
2 Replies

2. UNIX for Advanced & Expert Users

Problem with TCL package

Following error encountered while executing characterizationEngine.tcl :confused::confused: $ ./characterizationEngine.tcl Tcl Client is running Ixia Software version: 5.60 Can't find tclx.tcl in the following directories: /usr/lib/tclX8.3 /usr/lib/tclX8.3 /usr/lib/tclX8.3... (0 Replies)
Discussion started by: hiten.r.chauhan
0 Replies

3. Shell Programming and Scripting

Soap client script

Hi everybody, I`d llike to know if it is possible to create a script that call a specific soap method and collect the response time of this method. Can someone give some tips and examples ? Thank you so much ! (0 Replies)
Discussion started by: robdcb
0 Replies

4. Shell Programming and Scripting

Problem capturing output in TCL script

I have a TCL script that logs into a switch using expect.I send a command "show port-security address" and it returns a table having a large number of rows.I need to capture this output(the table) and store it in a .txt file. I have done this: match_max 5000 set expect_out(buffer) {} set... (0 Replies)
Discussion started by: plasmalightwave
0 Replies

5. Shell Programming and Scripting

Writing in a socket trough TCL problem.

Hello everyone: I have a script that writes and read DATA in/from a socket, but i have a great problem while writing. My socket is created in this way: set connection fconfigure $connection -encoding binary -translation binary -blocking 1 And the writer procedure is this one: ... (0 Replies)
Discussion started by: trutoman
0 Replies

6. Programming

SOAP Client..!

Hi, Can anybody provide me a simple SOAP client in C/C++ ..? Thanks in advance....!! (1 Reply)
Discussion started by: Kattoor
1 Replies

7. Shell Programming and Scripting

tcl problem

I'm trying to write a script that will do the following: Open a text file for reading/writing. Read each line. When I find a specfic value in a line, append something to the end of that line. I loop through and read all the lines in myfile.txt looking for dev123_data_log and find a... (5 Replies)
Discussion started by: progkcp
5 Replies

8. UNIX for Dummies Questions & Answers

problem with tk_optionmenu in tcl/tk

hi how can i see all and select one option from tk_optionMenu in tcl/tk using keyboard only. Thanks (0 Replies)
Discussion started by: pankajbgarh
0 Replies

9. Solaris

no SOAP encoding under unix?

Under Unix however we had many many many many problems. We had to use Ansi2utf8(), repstr() and XMLval() to prevent "Invalid token" errors. And because we didn't know what the raw XML result was, it allways was a big problem to find the cause of it. (0 Replies)
Discussion started by: devotedsinner
0 Replies

10. UNIX for Advanced & Expert Users

problem with diff and tcl scripts freaking out unix

running solaris 2.5.1 on a sparc5, with less than 12 users runnign compilers, gui's, really not a heavy load on it however, sometimes, not always, when users run diff, or sdiff or a .tcl script, the computer locks up. One time right before everything froze, I noticed in top, that the sdiff process... (2 Replies)
Discussion started by: kymberm
2 Replies
Login or Register to Ask a Question