Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > c .net webservice from perl client
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 27th February 22:36
dustyg99
External User
 
Posts: 1
Default c# .net webservice from perl client



dusty...@gmail.com Oct 6, 6:34 pm show options
Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
From: dusty...@gmail.com - Find messages by this author
Date: 6 Oct 2005 15:34:02 -0700
Local: Thurs, Oct 6 2005 6:34 pm
Subject: c# .net webservice from perl client
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse

I've successfully been able to consume a .NET webservice using Perl and
SOAP::Lite. I use stubmaker.pl on the .net WSDL to generate my service
classes and methods. However, I have to manually edit all the methods
to set the method paramter name and types since this is required by the
..net service. Is there a way to make stubmaker specify this in the
paramter description for you since it is located in the WSDL?

Example
Code generated by stubmaker:

package HelloWorld;

# -- generated by SOAP::Lite (v0.60) for Perl -- soaplite.com --
Copyright (C) 2000-2001 Paul Kulchenko --
# -- generated from http://localhost/helloservice/hellosrvc.asmx?WSDL
[Thu Oct 6 17:50:48 2005]

my %methods = (
Hello => {
endpoint => 'http://localhost/helloservice/hellosrvc.asmx',
soapaction => 'http://localhost/helloservice/Hello',
uri => '',
parameters => [
SOAP:ata->new(name => 'parameters', type => '', attr => {}),
],
},
);

use SOAP::Lite;
use Exporter;
use Carp ();

....

And the modified code for it to work properly:
package HelloWorld;

# -- generated by SOAP::Lite (v0.60) for Perl -- soaplite.com --
Copyright (C) 2000-2001 Paul Kulchenko --
# -- generated from http://localhost/helloservice/hellosrvc.asmx?WSDL
[Thu Oct 6 17:50:48 2005]

my %methods = (
Hello => {
endpoint => 'http://localhost/helloservice/hellosrvc.asmx',
soapaction => 'http://localhost/helloservice/Hello',
uri => '',
parameters => [
SOAP:ata->new(name => 'ParamterName', type => 'string', attr =>
{'urn:http://mynamespace/'}),
],
},
);

use SOAP::Lite;
use Exporter;
use Carp ();

The important modification being:
SOAP:ata->new(name => 'ParamterName', type => 'string', attr =>
{'urn:http://mynamespace/'}),

I havn't been able to find any easy solution to this and I'm not that
famliar with perl or webservice to be able to modify the stubmaker
myself.

Thank you
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666