473,788 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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.n et/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>";
  5.  
  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>";
  15.  
  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>";
  20.  
  21.     #my $http_response = $ua->request(POST $url, Content_Type => 'text/xml', Content => $body);    
  22.  
  23.     my $req = new HTTP::Request ("POST", $url, $header, Content => $body );
  24.  
  25.     my $http_response=$ua->request($req);
  26.  
  27.     print "TestEPaging::send_wctp_old()--Sent request<BR>";
  28.  
  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::ma in()--to=4255333734
TestEpaging::ma in()--from=1111111111
TestEpaging::ma in()--message=Hello
TestEpaging::ma in()--protocol=WCTP

TestEPaging::se nd_wctp_old()--Sending via WCTP to http://wctp.att.net/WCTP
TestEPaging::se nd_wctp_old()--Created new UserAgent
TestEPaging::se nd_wctp_old()--Sent request
TestEPaging::se nd_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.
Thanks!
Karim Varela
Jun 28 '07 #1
2 3028
KevinADC
4,059 Recognized Expert Specialist
Do you normally send data to WCPT via "POST" method?
Jun 28 '07 #2
miller
1,089 Recognized Expert Top Contributor
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
  13.  
- Miller
Jun 28 '07 #3

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

Similar topics

2
5378
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 headers with no problem (e.g. header( 'HTTP/1.1 200 OK' ). If I do the same on the new server I get redirected to the server's 'Internal Error' page (i.e. error 500). No indication of what the error is.
2
4025
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 page working and it's working just fine, no problems with this page. However I then would like this data e-mailed using jmail (my host insists on this method) and that is the function of the sendEMail2.asp page. This is failing and only giving...
8
3338
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 running that page, i get the error: "HTTP 500 - Internal server error Internet Explorer" No idea why. I wonder whether the first 4 lines must be between comments.
13
2711
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 can place at the top of the page to override the size limitation? Thanks.
2
2159
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 it asks for username and passord when the user tries to send a page and does it successfully. But before I view the status of the page it asks me for username and password. It asks thrice and then give me an error web page. Any help would be...
1
2768
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, there's a contact for that collects a few lines of info, and when you hit submit, it takes that and sends it to a specifie email address. It's been working all this time, but recently we just bought and implemented exchange 2003 on the server and...
2
1407
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 site is) Basically here is what I am trying to do: I have a from I created in Front Page XP. I want the results to go to a datbase and an email address. I found Microsoft's white page on how to do this. If I take out the code
5
12309
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. On Beta1, I am able to execute a particular page with no problem, that page opens up in the comes up just fine. On Win2kdev1, when I go to execute the same page, it opens a file download dialog and asks me whether I want to open or save the...
1
8184
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 the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8995
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.