Sponsored Content
Full Discussion: Tcl - SOAP Problem
Top Forums Programming Tcl - SOAP Problem Post 302169684 by SankarV on Friday 22nd of February 2008 04:46:18 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SOAP::Transport::POP3(3pm)				User Contributed Perl Documentation				SOAP::Transport::POP3(3pm)

NAME
SOAP::Transport::POP3 - Server side POP3 support for SOAP::Lite SYNOPSIS
use SOAP::Transport::POP3; my $server = SOAP::Transport::POP3::Server -> new('pop://pop.mail.server') # if you want to have all in one place # -> new('pop://user:password@pop.mail.server') # or, if you have server that supports MD5 protected passwords # -> new('pop://user:password;AUTH=+APOP@pop.mail.server') # specify list of objects-by-reference here -> objects_by_reference(qw(My::PersistentIterator My::SessionIterator My::Chat)) # specify path to My/Examples.pm here -> dispatch_to('/Your/Path/To/Deployed/Modules', 'Module::Name', 'Module::method') ; # you don't need to use next line if you specified your password in new() $server->login('user' => 'password') or die "Can't authenticate to POP3 server "; # handle will return number of processed mails # you can organize loop if you want do { $server->handle } while sleep 10; # you may also call $server->quit explicitly to purge deleted messages DESCRIPTION
COPYRIGHT
Copyright (C) 2000-2001 Paul Kulchenko. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR
Paul Kulchenko (paulclinger@yahoo.com) perl v5.12.4 2011-08-18 SOAP::Transport::POP3(3pm)
All times are GMT -4. The time now is 03:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy