472,989 Members | 2,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 software developers and data experts.

Sending page via WCTP -- Internal Server Error -- Ewe

Hi all,

I'm trying to send a page using Perl via the WCTP protocol. For some reason, I cannot connect to the host "wctp.att.net/WCTP" (or any host for that matter). I figure it must be some server configuration that I need to set. I don't think it's a port problem b/c I'm able to send a page via WCTP using the same port using a stand-alone app.

Anyhow, here's the code I'm using:
Expand|Select|Wrap|Line Numbers
  1. sub send_wctp_old{
  2.     #my $url = "http://wctp.cingular.com:80/WCTP";
  3.     my $url = "http://wctp.att.net/WCTP";
  4.     print "TestEPaging::send_wctp_old()--Sending via WCTP to " . $url . " <BR>";
  6.     my $body = "<?xml version=\"1.0\"?><!DOCTYPE wctp-Operation SYSTEM \"http://www.skytel.com/protocols/dtds/wctp/wctpv1-0.dtd\">";
  7.     $body = $body . "<wctp-Operation wctpVersion=\"WCTP-DTD-1.1\"><wctp-SubmitClientMessage><wctp-SubmitClientHeader>";
  8.     $body = $body . "<wctp-ClientOriginator senderID=\"";
  9.     $body = $body . $from;
  10.     $body = $body . "\"/><wctp-Recipient recipientID=\"";
  11.     $body = $body . $to;
  12.     $body = $body . "\"/></wctp-SubmitClientHeader><wctp-Payload><wctp-Alphanumeric>";
  13.     $body = $body . $message;
  14.     $body = $body . "</wctp-Alphanumeric></wctp-Payload></wctp-SubmitClientMessage></wctp-Operation>";
  16.     #my $ua = LWP::UserAgent->new;
  17.     my $ua=new LWP::UserAgent;
  18.     my $header=new HTTP::Headers;
  19.     print "TestEPaging::send_wctp_old()--Created new UserAgent<BR>";
  21.     #my $http_response = $ua->request(POST $url, Content_Type => 'text/xml', Content => $body);    
  23.     my $req = new HTTP::Request ("POST", $url, $header, Content => $body );
  25.     my $http_response=$ua->request($req);
  27.     print "TestEPaging::send_wctp_old()--Sent request<BR>";
  29.     if ($http_response->is_success){
  30.         print "TestEPaging::send_wctp_old()--Message sent successfully to " . $to;
  31.     }
  32.     else{
  33.         print "TestEPaging::send_wctp_old()--Message failed - " . $http_response->as_string;
  34.     }
  35. }
And here's the error output I'm seeing:

TestEPaging::send_wctp_old()--Sending via WCTP to http://wctp.att.net/WCTP
TestEPaging::send_wctp_old()--Created new UserAgent
TestEPaging::send_wctp_old()--Sent request
TestEPaging::send_wctp_old()--Message failed - 500 Can't connect to wctp.att.net:80 (connect: Unknown error) Content-Type: text/plain Client-Date: Thu, 28 Jun 2007 16:35:30 GMT Client-Warning: Internal response 500 Can't connect to wctp.att.net:80 (connect: Unknown error)

Any advice is much appreciated.
Karim Varela
Jun 28 '07 #1
2 2986
4,059 Expert 2GB
Do you normally send data to WCPT via "POST" method?
Jun 28 '07 #2
1,089 Expert 1GB
I just want to point out that a lot cleaner way of composing your message would be the following:

Expand|Select|Wrap|Line Numbers
  1.     my $body = <<END;
  2. <?xml version="1.0"?><!DOCTYPE wctp-Operation SYSTEM "http://www.skytel.com/protocols/dtds/wctp/wctpv1-0.dtd">
  3. <wctp-Operation wctpVersion="WCTP-DTD-1.1"><wctp-SubmitClientMessage>
  4. <wctp-SubmitClientHeader>
  5.     <wctp-ClientOriginator senderID="$from"/>
  6.     <wctp-Recipient recipientID="$to"/>
  7. </wctp-SubmitClientHeader>
  8. <wctp-Payload>
  9.     <wctp-Alphanumeric>$message</wctp-Alphanumeric>
  10. </wctp-Payload>
  11. </wctp-SubmitClientMessage></wctp-Operation>
  12. END
- Miller
Jun 28 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Peter Gaunt | last post by:
I'm in the process of moving my site from one server to another (my old hosting company appears to have gone bust). On the old host and on my local Mac OS X machine I can send HTTP/1.1 response...
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this...
by: Cas | last post by:
Hi, I run IIS 5.0 on windows 2000 server sp4. This server is connected to the ISP with adsl modem. I put ASP code (found on internet) in order to send emails with CDO: (see below) When...
by: teenzbutler | last post by:
I have a 10mb ASP file, which will not load in IE 6.0. I get an HTTP 500 error. When I convert the 10mb file to HTML, it loads fine. Is there a limitation on file size? If so, is there a tag I...
by: Ashutosh | last post by:
Our company has an intranet paging website. It gets all the contact and group addresses from SQL Server database. The paging is done through WCTP. It works properly except for only one group where...
by: festivalman | last post by:
Hi, sorry if this is in the wrong spot. Finding the newsgroups on MS's site could have been easier Here's my problem I've got some old asp's that are running our simple web site. In a section,...
by: Glenn | last post by:
Can anyone point me to some GOOD directions on how to send an e-mail from asp. (And, if this matters - I have Microsoft Exchange 2000 installed on a Windows 2000 server which is also where my web...
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.