Click here to Skip to main content
15,867,568 members
Home / Discussions / Web Development
   

Web Development

 
Questionhow to use axMsRdpClient using c#.net Pin
munagalasantosh19-Mar-09 4:52
munagalasantosh19-Mar-09 4:52 
QuestionTask bar notification Pin
Dav Zen19-Mar-09 3:12
Dav Zen19-Mar-09 3:12 
AnswerRe: Task bar notification Pin
Marc Firth24-Mar-09 23:43
Marc Firth24-Mar-09 23:43 
QuestionGroupboard [modified] Pin
sanuji19-Mar-09 2:16
sanuji19-Mar-09 2:16 
AnswerRe: Groupboard Pin
led mike19-Mar-09 4:48
led mike19-Mar-09 4:48 
QuestionHow to enable cookie support in the browser programatically Pin
muniratnam19-Mar-09 0:25
muniratnam19-Mar-09 0:25 
AnswerRe: How to enable cookie support in the browser programatically Pin
led mike19-Mar-09 4:53
led mike19-Mar-09 4:53 
QuestionWebService returns the entire HTML code when <sessionstate mode="InProc" ...="" /> Pin
Rafferty Uy18-Mar-09 23:36
Rafferty Uy18-Mar-09 23:36 
Hi,

I have a web service that is being accessed by Perl scripts using SOAP::Lite. Simple code below:
use SOAP::Lite;

my $soap = SOAP::Lite
    -> uri('http://tempuri.org')
    -> on_action( sub { join '/', 'http://tempuri.org', $_[1] } )
    -> proxy('http://localhost:8080/TestApp/WebService1.asmx');

$soap->deserializer(SOAP::Custom::XML::Deserializer->new);

print $soap->HelloWorld()->result;


Now, if I run this script, as you may have guessed already... I should get the output:
Hello World


This is correct if my <sessionState mode="Off" ...>, however, if I set it to <sessionState mode="InProc" ...>, I am getting the entire HTML file that is the same as right-clicking and viewing the source of the .asmx page when you open it via a web browser:
mismatched tag at line 61, column 16, byte 2939 at C:/Perl/lib/XML/Parser.pm line 187

<html>
    <head><link rel="alternate" type="text/xml" href="/WebService1.asmx?disco" />

...

    <style type="text/css">
    </style>
    <title>
        WebService1 Web Service</title>
    </head>
  <body>
    <div id="content">
      <p class="heading1">WebService1</p><br>
      <span>
          <p class="intro">The following operations are supported.  For a formal definition, please review the <a href="WebService1.asmx?WSDL">Service Description</a>. </p>

... 

                <a href="WebService1.asmx?op=HelloWorld">HelloWorld</a>

...

  </div></body>
</html>
 at WSTestUsingPerl.pl line 10



Does anyone know what I can do? Of course the actual web service I have is more complex than this, I just tried adding a new .asmx file to my solution and tried to find out where in the web.config is the problem, and I found this error.

Note that the web services will work when I create a new .net app and consume this web service, or simply run the web methods via the browser. But when I use SOAP::Lite it won't (and so I assume that there might be other scripts that get the same error).


Thank you in advance for your help.

Rafferty

AnswerRe: WebService returns the entire HTML code when Pin
Rafferty Uy19-Mar-09 17:50
Rafferty Uy19-Mar-09 17:50 
QuestionActive X Pin
p_196018-Mar-09 20:01
p_196018-Mar-09 20:01 
QuestionDNS Setting : Want to point my site to dedicated server Pin
Chetan Patel18-Mar-09 18:56
Chetan Patel18-Mar-09 18:56 
AnswerRe: DNS Setting : Want to point my site to dedicated server Pin
Marc Firth24-Mar-09 23:49
Marc Firth24-Mar-09 23:49 
QuestionSave Dialog Box inside the WriteAllBytes, Possible? Pin
hifiger200418-Mar-09 18:50
hifiger200418-Mar-09 18:50 
QuestionGetting file properties in JavaScript. Pin
richmcc18-Mar-09 9:32
richmcc18-Mar-09 9:32 
AnswerRe: Getting file properties in JavaScript. Pin
Yusuf18-Mar-09 17:07
Yusuf18-Mar-09 17:07 
GeneralRe: Getting file properties in JavaScript. Pin
richmcc20-Mar-09 10:35
richmcc20-Mar-09 10:35 
GeneralRe: Getting file properties in JavaScript. Pin
Yusuf20-Mar-09 11:44
Yusuf20-Mar-09 11:44 
GeneralCookies enable in Browser(urgent help) Pin
Ramkumar_S17-Mar-09 22:40
Ramkumar_S17-Mar-09 22:40 
GeneralRe: Cookies enable in Browser(urgent help) Pin
Ashfield18-Mar-09 2:27
Ashfield18-Mar-09 2:27 
RantRe: Cookies enable in Browser(urgent help) Pin
fly90418-Mar-09 9:56
fly90418-Mar-09 9:56 
QuestionEmail sending error in php Pin
Ahmad Hamid17-Mar-09 20:12
Ahmad Hamid17-Mar-09 20:12 
AnswerRe: Email sending error in php Pin
Ashfield18-Mar-09 2:29
Ashfield18-Mar-09 2:29 
AnswerRe: Email sending error in php Pin
Mohammad Dayyan18-Mar-09 3:50
Mohammad Dayyan18-Mar-09 3:50 
GeneralRe: Email sending error in php Pin
tech60318-Mar-09 15:50
tech60318-Mar-09 15:50 
QuestionPHP, Ajax function in IE Pin
Bryant May17-Mar-09 4:28
Bryant May17-Mar-09 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.