Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: SOAP::Lite Module

by jhyland87 (Sexton)
on Mar 24, 2010 at 20:31 UTC ( #830667=note: print w/ replies, xml ) Need Help??


in reply to Re: SOAP::Lite Module
in thread SOAP::Lite Module

Interesting, when I did that, it pulled up a ton of SOAP::Data::Destroy: () and some other lines, what stood out is this though..

SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x31f +20bc) SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Ser +ver Error Cache-Control: private Date: Wed, 24 Mar 2010 20:27:45 GMT Server: Microsoft-IIS/6.0 Content-Length: 1106 Content-Type: text/xml; charset=utf-8 Client-Date: Wed, 24 Mar 2010 20:27:45 GMT Client-Peer: 216.119.106.197:80 Client-Response-Num: 1 X-AspNet-Version: 2.0.50727
EDIT: After cleaning it up a bit, I also found this...
<faultcode>soap:VersionMismatch</faultcode> <faultstring> System.Web.Services.Protocols.SoapException: Possible SOAP version mis +match: Envelope namespace http://schemas.xmlsoap.org/wsdl/soap/ was u +nexp ected. Expecting http://schemas.xmlsoap.org/soap/envelope/. at System.Web.Services.Protocols.SoapServerProtocol.CheckHelperVers +ion() at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters( +) at System.Web.Services.Protocols.WebServiceHandler.CoreProcessReque +st() </faultstring>
Interesting... Version mismatch?


Comment on Re^2: SOAP::Lite Module
Select or Download Code
Re^3: SOAP::Lite Module
by Khen1950fx (Canon) on Mar 24, 2010 at 21:15 UTC
      Ah crap, that says to edit the WDSL file, I cant really do that, guess this isnt possible to use it with SOAP::Lite? :(
        If the automatic way isn't working, you can always do things manually.
      So I guess I should be using SOAP::WSDL, which im trying, here is my code, which returns nothing, and does absolutely nothing either.
      #!c:/perl/bin use SOAP::WSDL; use strict; use warnings; my %data = ( 'AuthUserName' => 'xxxxxxxxx', 'AuthPassword' => 'xxxxxxx', 'NewUsername' => 'justatest', 'NewPassword' => 'justatest', 'DomainName' => 'xxxxxxxx.com', 'FirstName' => 'johddn', 'LastName' => 'doedd', 'IsDomainAdmin' => 0 ); my $soap = SOAP::WSDL->new( wsdl => 'http://soap_web_site.com/services/svcUserAdmin.asmx?WSDL' +, ); my $result = $soap->call('AddUser', %data); print $result;
Re^3: SOAP::Lite Module
by Krambambuli (Deacon) on Mar 24, 2010 at 21:53 UTC
    Is the WSDL you mention the good one ?

    If I try to
    $ wget http://www.smartertravel.com/services/svcUserAdmin.asmx?WSDL
    
    I get an error, like
    Resolving www.smartertravel.com... 207.154.57.193
    Connecting to www.smartertravel.com|207.154.57.193|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2010-03-24 23:50:20 ERROR 404: Not Found.
    

    Krambambuli
    ---
      No it wasnt, I didnt want to display the actual servers FQDN. However, it seems that the SOAP::Lite reader isnt compatible with .NET's SOAP. So I guess this isnt possible :(
        However, it seems that the SOAP::Lite reader isnt compatible with .NET's SOAP. So I guess this isnt possible :(

        It isn't a compatibility issue, SOAP::Lite simply doesn't support WSDL fully (as documented, IIRC). Thats fine since doing things manually is fairly simple. Alternatively you could try SOAP::WSDL

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://830667]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-09-03 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls