Losing smart camera connection when using web server on NI1762 smart camera

Hi
I am using 2 smart cameras ( old NI1762 and the new NI1772) with Vision builder 2011 . 
I am trying to find a way to retrieve data and image to a Visual Basic 6 application. i could not find an elegant way to do it , so instead , i am sending TCP command to the smart camera as an input and the smart camera send me back a TCP command a as an output. by this way i could communicate with the smart camera . For transferring images I could not use the TCP step , so I turned on the smart camera web server to get the image by a browser Object . But the problem is that everything is going well with the TCP, but when I turned on the web server and try to communicate with it, sometimes I loose the connection with the smart camera. That is happened with the 1762 smart camera. But when I use the NI1772 it rarely happed.
Please help me. is there any other elegant way to communicate with the smart camera , and if a TCP and web server is a solution , Why the NI1762 web server is not stable ? Why i am losing the connection when browsing to the inspection page???
Thanx

Previous versions of Vision Builder had a COM library that you could use from Visual Basic 6 or other environments and talk over the network to a Smart Camera running Vision Builder AI and control its execution just how you are requesting. In more recent versions, this has been replaced by a native .NET and LabVIEW-native API that is much more fully featured. Unfortunately, I do not think the older COM mechanism is still available/supported (but I certainly could be wrong...).
However, one avenue you may wish to persue would be to call into the .NET interface from Visual Basic 6. Microsoft designed .NET to allow COM interoperibility in both directions (.NET can call into COM libraries and COM libraries can call into .NET). Take a look at the following document from Microsoft:
http://msdn.microsoft.com/en-us/library/zsfww439(v​=vs.85).aspx
You could then look at any of the .NET (C#) examples to get an idea of the API:
C:\Program Files (x86)\National Instruments\Vision Builder AI 2011\API Examples\dotNET Examples
Eric

Similar Messages

  • Time Capsule disconnects internet when using web server through port forwarding

    My current config is: 2TB Time Capsule running 7.6.3, Mac Pro running Lion (10.7.5), MacBook Pro running Mountain Lion (10.8.3), and a couple of MacBook Pro Retinas running Mountain Lion. My current ISP is Comcast.
    I have the Time Capsule set up to port forward port 80 to the Mac Pro for the purpose of running a web server. Most of the traffic is shuttling fairly large m4v files back and forth to work (work product from video editing work). I can reach the webserver on the Mac Pro just fine from the outside world, and can list files in the directory just fine. When I initiate a download (via right click on a link, "Save As..." or whatever), the Time Capsule reports that the Internet has been disconnected, and all machines inside my network lose access to the outside world. I have to either power cycle the Time Capsule, or disconnect/reconnect the Cat-6 cable between the cable modem and the Time Capsule to re-establish the connection. Interestingly, the download continues and completes on the other end without issue (so, the connection is actually still there!).
    Before switching to Comcast, I was on AT&T Uverse - Uverse includes a router, so I had the TIme Capsule set up in Bridge Mode. That worked fine. I also have an older 500GB 1st generation Time Capsule. I set it up with the same config as my 2TB TC, and it shows the exact same behavior - internet disconnects upon initiating a file download through a forwarded port. I then hooked the Mac Pro up directly to the cable modem. I can initiate a download without issue, and I continue to stay connected to the Internet without problem. Called Comcast anyway - they report no errors on the line, but reset the whole device chain anyway. No change in behaviors.
    I tried downgrading the Time Capsule software to 7.6.2 (the earliest version that came on it). No dice, same behavior.
    So... I called Apple. Complete and utter FAIL. Apple Support reports that they have no training in the port forwarding features of the Time Capule or Airport products, and cannot help me resolve the issue because of that. So, I have a $300 router that apparently cannot perform a simple routing function (download through a forwarded port), that I cannot troubleshoot (because Airport software v7 is an epic fail in that regard), made by a company who cannot support it - and everything this $300 device is doing can be done by a $50 device with a $100 external hard drive?
    Do I understand this situation correctly? What have I missed in trying to troubleshoot this thing?

    Apple Support reports that they have no training in the port forwarding features of the Time Capule or Airport products, and cannot help me resolve the issue because of that. So, I have a $300 router that apparently cannot perform a simple routing function (download through a forwarded port), that I cannot troubleshoot (because Airport software v7 is an epic fail in that regard), made by a company who cannot support it - and everything this $300 device is doing can be done by a $50 device with a $100 external hard drive?
    Do I understand this situation correctly? What have I missed in trying to troubleshoot this thing?
    Excellent summary.. I think you have covered all the salient points most thoroughly.
    Port forwarding on the TC I would put into the category of "epic fail"
    I have a nasty feeling it just doesn't work in many cases. Clearly from your situation the port is forwarded correctly.. it is the actual download that is causing the device to crash.. which is probably not the port forwarding itself that is at fault but rather the external link and opening another port for the download to happen.
    Many of the issues were caused by using icloud and btmm.. which would work a lot better btw. Although the hassle there is needing to offer that as a service to any Tom Dick or Harry.
    Let me suggest a work around or other things to try.
    I also have an older 500GB 1st generation Time Capsule. I set it up with the same config as my 2TB TC, and it shows the exact same behavior - internet disconnects upon initiating a file download through a forwarded port.
    Use 5.6 utility.. more info below. And take the firmware of this unit (Gen1) back to 7.5.2 (before icloud mess ups in 7.6).
    You can go back to 7.5 firmware also in Gen4 TC if it is more than about 14months old.. Simply hold down the option key when you select firmware and the old versions will show up. If your TC came with 7.6.1 (the 7.6.2 was withdrawn as it was even bigger failure than 7.6.3). then you cannot go back.
    You might also find downloading via http is not as reliable as using FTP.. FTP is a better and more efficient protocol. It should be no problem to setup ftp server on the mac pro to allow download via ftp even with a browser.
    But in the end.. your $50 router suggestion.. well perhaps a little more than that.. $80-100 will work very well.. also this router can be setup with a Hard Disk and offer the files to the internet via FTP.. without needing full network access to your internal network.
    How to load 5.6 into ML.
    1. Download 5.6 for Lion.
    http://support.apple.com/kb/DL1482
    Click to open the dmg but do not attempt to install the pkg.. it won't work anyway.
    2. Download and install unpkg.
    http://www.timdoug.com/unpkg/
    Run unpkg on the desktop.. it is very simple.. drag the AirPortUtility56.pkg file over to unpkg.. and it will create a new directory of the same name on the desktop.. drill down.. applications utilities .. there lo and behold is Airport utility 5.6 .. drag it to your main utilities directory or just run it from current location.
    You cannot uninstall 6.1 (now 6.2 if you updated) so don't try.. and you cannot or should not run them both at the same time.. so just ignore the toyland version.. the plastic hammer.. and start using 5.6.. a real tool.
    For screen shots see this post.
    https://discussions.apple.com/thread/4668746?tstart=0

  • Connection from the web server to the database which is situated in another machine.

    Thanks for the reply.
    I need to know, whether there shold be a physical connection between the web server and database machine? or can we connect to the database machine through the web, if the database machine has a domain name? if there is a physical connection, we can use the jdbc/odbc connection. but if we are connecting through the web, how can I estblish the connection using a JDBC/ ODBC connection?
    Regards,
    George

    As long as there's a network connection between the two machines, you should be able to make the connection. I'm not sure what the difference between a 'direct connection' and a 'connection through the web' is-- are you actually running a network cable from one machine to another?
    When you cannot make the connection, are you able to do a 'tnsping' on the target database?
    When you say 'connecting through the web', is it possible that you're going through a firewall? If so, the firewall may be blocking the ports you need to communicate on.
    Justin Cave
    ODBC Development

  • 502 - Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream cont

    I am getting error while accessing url of lyncweb.domain.com, dialin.domain.com and meet.domain.com pointing to RP server.
    502 - Web server received an invalid response while acting as a gateway or proxy server.
    There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

    When i try with https://lyncfrontend.domain.local:4443 and https://lyncfrontend.domain.com:4443 both opens but when i open the external domain name i get certificate .
    ARR version installed is 3.0
    To throw more light on the configuration:
    Lync 2013 implemented, internal domain name is : domain.local and external domain name is : domain.com
    All servers in VMs are with 4 core processor, 24gb ram, 1TB drive.
    Frontend : Windows 2012r2 with Lync 2012 Standard Edition - 1 No (192.168.10.100)
    Edge : Windows 2012 with Lync 2012 Std - 1 No 
    (192.168.11.101 DMZ) in workgroup
    ISS ARR Reverse Proxy 3.0 : Windows 2012 with ARR and IIS configured. (192.168.11.102)
    Certificate : Internal Domain root CA for internal and External (Digicert).
    Internal Network : 192.168.10.x /24
    External Network (DMZ) : 192.168.11.x /24
    Public Firewall NAT to DMZ ip for firewall and RP server. So having two public IP facing external network.
    Edge has : sip.domain.com, webconf.domain.com, av.domain.com
    IIS ARR RP server has : lyncdiscover.domain.com, lyncweb.domain.com, meet.domain.com, dialin.domain.com
    Have created SRV record in public : _sip.tls.domain.com >5061>sip.domain.com, _sipfederationtls._tcp.domain.com>5061>sip.domain.com, _xmpp-server._tcp.domain.com>5269>sip.domain.com
    Installed frontend server using MS Lync server 2013 step by step for anyone by Matt Landis, Lync MVP.
    Internal AD Integrated DNS pointing Front-end
    Type of Record FQDN
    IP Description 
    A sip.domain.com
    192.168.10.100 Address internal Front End  or Director for internal network clients 
    A admin.domain.com
    192.168.10.100 URL Administration pool
    A DialIn.domain.com
    192.168.10.100 URL Access to Dial In 
    A meet.domain.com
    192.168.10.100 URL of Web services meeting
    A lyncdiscoverinternal.domain.com
    192.168.10.100 Register for Lync AutoDiscover service to internal users
    A lyncdiscover.domain.com
    192.168.10.100 Register for Lync AutoDiscover service to external users  
    SRV Service: _sipinternaltls Protocol: _tcp Port: 5061
    sip.domain.com Record pointer services to internal customer connections using TLS 
    External DNS pointing Edge & Proxy
    Type of Record FQDN
    IP Endpoint
    A sip.domain.com
    x.x.x.100 Edge
    A webconf.domain.com
    x.x.x.100 Edge
    A av.domain.com
    x.x.x.100 Edge
    SRV _sip._tls.domain.com
    sip.domain.com: 443 Edge
    SRV _sipfederationtls._tcp.domain.com
    sip.domain.com:5061 Edge
    A Meet.domain.com
    x.x.x.110 Reverse Proxy
    A Dialin.domain.com
    x.x.x.110 Reverse Proxy
    A lyncdiscover.domain.com
    x.x.x.110 Reverse Proxy
    A lyncweb.domain.com
    x.x.x.110 Reverse Proxy
    In IIS ARR proxy server following server farms are added and configured as per link ttp://y0av.me/2013/07/22/lync2013_iisarr/
    In proxy server had setup only following server farm : While running remote connectivity web service test : meet, dialin, lyncdiscover and lyncweb.
    The client inside works fine internally and through vpn. Login with external client also working fine. But we are getting error in MRCA as follows.
    a) While testing remote connectivity for lync getting error : The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    Certificate was installed properly.
    b) For remote web test under Lync throws error : A Web exception occurred because an HTTP 502 - BadGateway response was received from IIS7.
    HTTP Response Headers:
    Content-Length: 1477
    Content-Type: text/html
    Date: Wed, 14 May 2014 10:03:40 GMT
    Server: Microsoft-IIS/8.0
    Elapsed Time: 1300 ms.
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

  • OS 10.4.6. has broken dialup connectivity when using fast user switching

    I installed OS 10.4.6. It seems to have broken dialup connectivity when using fast user switching when switching from one user to the next.
    For dialup, it is extreamly annoying that I can not resume downloading a file from were it got cut off, but now, if another user wants to check their email, my download always gets broken and has to be restarted. Dialup is slow enough with out having to start from scratch even more frequently, now.
    Also, in earlier versions of 10.2 or 10.3 (I don't remember which), I was able to switch users and maintain listening to a single users' iTunes.
    I would like to be able to switch users and not lose either my dialup network connection or the primary users currently playing iTunes songs.
    Perhaps for iTunes, one should be able to chose to mute another users' instance of iTunes, if it is currently playing.
    Mini-Mac 1.42GHz 80GB BT/AE   Mac OS X (10.4.6)  

    I have not tried replicating this but might be able to provide some additional information.
    We use network login accounts on our desktop computers. Fast User switching deliberately will not work for multiple network login accounts. (Remember network login accounts normally also have an associated network home directory mounted via AFP.)
    Now a bit of background about volumes and mount points under Mac OS X. Under Mac OS X, any additional drive (or more accurately 'volume') is listed under the 'Volumes' folder, remember also that Mac OS X is a Unix operating system. So just as normal for Unix, the boot drive is '/' or the root level and Volumes is a folder in it. The underlying Mac OS X software automatically 'attaches' and additional volumes as sub-folders in the 'Volumes' folder (in Unix speak these are called 'Mount Points'), if you have an external hard-disc called 'Fred' then this would be represented by the following path
    /Volumes/Fred
    If you happen to have two volumes with the same name connected at the same time then while in the Finder they may show up with the same name, in Unix they would have different names automatically assigned to keep them separate like so
    /Volumes/Fred
    /Volumes/Fred 1
    Now getting back to the Fast User switching problem and AFP volumes, when you login to a File Server volume it also is automatically added to the Volumes folder, so if we have a File Server volume called 'Shared' it would look like
    /Volumes/Shared
    With Fast User switching potentially both user accounts could be accessing the same /Volumes/Shared which means both user accounts would be talking to the server via the same File Server login, hence the possibility for one of the Fast User accounts to be using the 'wrong' permissions.

  • What is required to Exchange integration work - (Can't connect to Exchange Web Server)?

    Hi guys,
    We have just 'beaten' our Lync installation until it decided to work with mobility, however the clients (IOS) complain that it "Can't connect to Exchange Web Server". Entirely possible its our own fault!
    My question is:
    What exactly do I need to configure to make this work?
    DNS records,
    Firewall rules,
    etc. 
    We are running:
    Exchange 2010 on-premise
    TMG 2010
    Cheers
    Dave
    Dave

    Hi Dave,
    The Lync 2010 mobile client for iPhone and iPad has a Meeting tab that lists meetings for the day from the Exchange calendar.
    The client uses simple Exchange Autodiscover processes to determine the location of the Exchange server of the user who is signed in. The SIP Uniform Resource Identifier (URI) of the user is used in the attempt to discover the Exchange Web Services (EWS) endpoint.
    However, if the user’s SIP URI and email address are different, the Autodiscover process will fail, the Meeting tab will be blank, and Exchange Unified Messaging (UM) voicemail in the Phone tab will not sync.
    For disjointed email and SIP URIs, the Lync 2010 mobile client for iPhone and iPad lets the user specify a different set of credentials for Exchange integration. For the Exchange Autodiscover process to work correctly, the necessary DNS records must be available.
    To confirm that Autodiscover is working, use Microsoft Remote Connectivity Analzyer at http://www.testexchangeconnectivity.com (http://www.testexchangeconnectivity.com/)
    In addition, please also refer to this document
    Lync 2010 Integration. Hope helps.
    Noya Liu
    TechNet Community Support

  • Support for safety camera locations when using off...

    I've seen people manually post the file (as text) that you can put in the relevant folder on your phone's data card - but is there any ongoing support for safety camera updates when using your phone's mapping / sat nav offline (ie no data usage)?

    Jaff0 wrote:
    Doesn't seem like there's any option through the PC map loader program, so the only option seems to be if anybody has posted the file - which may not always happen?
    Safetyspots are not updated that often and I am sure someone on the forum would try to help you out if you asked.
    Happy to have helped forum with a Support Ratio = 42.5

  • I get a "No camera connected" when I connect my iphone to sync it

    I get a "No camera connected" when I connect my iphone to sync it

    I am having the same problem is there any way to fix it. or do i half to deal with apple and get them to send me a new phone

  • LabView 6.1 crashes now and then when I try to get rid of an accidential starting connection when using the wiring tool.

    Sometimes when using my labtop it happens that I get unwanted connections when using the wiring tool because my labtop notices mouse clicks that never happend. Usually you can get rid of those connections by pressing ESC. But unfortunately now and than LabView crashes completely when pressing ESC to get rid of the connection.
    How can I stop LabView from crashing in that case?
    Thanks for anybodies help!

    Yes, I see this problem on both my LabView-Computers but more often on the labtop because of the strange integrated mouse.
    Yes, I get an error message but I can't really translate it in english. It says something about memory access to a special address.
    I might try reinstalling LabView one day if I have the time. I don't want to try LabView 7.0. I'm afraid it would be great. Unfortunately my boss alreday told me, we don't have money for the new version.
    Thanks for your help!

  • Lync 2010 iPhone - Can't connect to Exchange web server. you can try again later

    Hi there,
    I installed Lync 2010 mobility, and works fine, but iPhone users have a :
    Can't connect to Exchange web server.
    you can try again later
    Now does this have anything to do with it? And how do i fix it? I searched but nothing relevant

    Total server discovery time: 0.3 seconds
    Starting Lync server autodiscovery
    Please wait; this test may take several minutes to complete...
    Starting automatic discovery for secure (HTTPS) internal channel
    Server discovery has completed for https://lyncdiscoverinternal.contoso.com/.
    Automatic discovery results for https://lyncdiscoverinternal.contoso.com/
    Access Location                          : Internal
    SIP Server Internal Access               : server.contoso.com
    SIP Server External Access               : sip.contoso.com
    SIP Client Internal Access               : server.contoso.com
    SIP Client External Access               : sip.contoso.com
    Internal Auth broker service             : https://server.contoso.com/Reach/sip.svc
    External Auth broker service             : https://lync.contoso.com/Reach/sip.svc
    Internal Auto discover service           : https://server.contoso.com/Autodiscover/AutodiscoverService.svc/root
    External Auto discover service           : https://lync.contoso.com/Autodiscover/AutodiscoverService.svc/root
    Internal MCX service                     : https://lync.contoso.com/Mcx/McxService.svc
    External MCX service                     : https://lync.contoso.com/Mcx/McxService.svc
    Internal UCWA service                    : service URL is empty in the discovery response
    External UCWA service                    : service URL is empty in the discovery response
    Internal Webscheduler service            : service URL is empty in the discovery response
    External Webscheduler service            : service URL is empty in the discovery response
    Server discovery succeeded for secure (HTTPS) internal channel against URL https://lyncdiscoverinternal.contoso.com/
    Starting automatic discovery for unsecure (HTTP) internal channel
    Couldn't connect to URL http://lyncdiscoverinternal.contoso.com/[email protected] (HTTP status code Forbidden)
    Server discovery failed for unsecured internal channel against http://lyncdiscoverinternal.contoso.com/
    Starting automatic discovery for secure (HTTPS) external channel

  • WAS UPDATING SPFTWARE ON MY IPHONE BUT ERROR 56 CAME UP WHEN I TRIED TO RESTORE ERROR 3024 CAME UP NOW ON THE SCREEN IS A SYMBOL OF THE CBLE AND ITUNES CAN NOT RESET IT CAN ANYONE HELP??

    I WAS UPDATING SPFTWARE ON MY IPHONE BUT ERROR 56 CAME UP WHEN I TRIED TO RESTORE ERROR 3024 CAME UP NOW ON THE SCREEN IS A SYMBOL OF THE CBLE AND ITUNES CAN NOT RESET IT CAN ANYONE HELP??

    You'll have to put your iPhone in Recovery Mode.
    Recovery mode
    If you've never synced your device with iTunes, or haven't set up Find My iPhone, you'll need to put your device in recovery mode. Then you'll restore your device as new or from a backup.
    This will erase the device and its passcode.
    Disconnect all cables from your device.
    Hold down the Sleep/Wake button, then "slide to power off" to turn off your device.
    Press and hold the Home button and plug the device into your computer. If your device doesn't turn on automatically, turn it on. Don't release the Home button.
    Continue holding the Home button until you see the Connect to iTunes screen.
    If iTunes doesn't open automatically, open it. iTunes will alert you that it has detected a device in recovery mode.
    Click OK. Then restore the device.
    If your device doesn't go into recovery mode, try steps 1–4 again.

  • Smart card prompt when using RDP for server administration

    I know I can't be the only one but I can't find any answers.  WHen I use RDP to connect to my 2012 server I get the two option in the interface....my "domain\username" and "other".  I click on my username that is already there and it only gives
    me an option to "use a smart card".  Is that a local policy or a group policy setting being pushed out from my 2003 DC?  Thanks in advance!
    Steve Carnes

    Hi,
    Pls run the gpresult.exe on your server 2012 to see whether there are any
    Smart card related policies applied.Especially check the policy
    Interactive logon: Require smart card are located in
    Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options.
    Smart Card Group Policy and Registry Settings:http://technet.microsoft.com/en-us/library/ff404287(v=ws.10).aspx
    regards,
    Clarence
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • SP2013 - Date Filter Web Part looses connection when used in a site template

    Hi,
    I created two table reports in SQL Reporting Services 2012 and inserted in a web page using the Reporting Service Report viewer in SharePoint 2013 with CU Dez 2013. The two reports require two dates and I use two date filter web parts (I did not try the
    date range solution I saw in the fórum).
    So the user inputs the two dates in date filters that send the information to thereports in the same page.
    They work in the site and I saved it as template. However when I create e new site using it as a templates, the date filter connections are broken and of course, they did not work.
    For another report where I usea text filter, it worked without any problem in the template.
    Does anybody know any workaround?
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Hi ,
    The new site based on the saved site template will generate new ID for date filter web part, in the web part page the SPWebPartConnection "ProviderID" value seems still to reference the original date filter web part ID (see from
    SharePoint Designer), as a workaround we can re-configure the web part connection from the web part page manually or programmatically from that new site web part page.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/8d98206d-b41f-4ee4-b537-a4bf5cec0434/sharepoint-2010-save-site-as-template-webpart-connections-broken?forum=sharepointgeneralprevious
    http://sympmarc.com/2007/09/20/removing-a-web-part-connection-in-sharepoint/
    Thank
    Daniel Yang
    TechNet Community Support

  • What is the best way to detect loss of OPC Server connection when using DSC Tags?

    I'm using the DSC Module on a new project and I'm pretty impressed so far. The HMI Wizard has saved me quite a bit of time.
    My application is configured where the DSC Tags are connected to remote OPC Server Tags.
    The issue I'm having is that I cannot detect a loss of the OPC Server when the application is running. Read's of the front panel controls/indicators still return values and the little "connection" icon next them is still green. Even if the connection icon turned red it wouldn't help since the Front Panel is not visible when the main application is running. It is a Sub-VI that's in charge of OPC Data Interfacing. The rest of the application uses the data from the OPC Sub-
    VI.
    I cannot effect a change on the OPC Servers, so I need a method of detection when the Server is lost on my end.
    Any ideas on the best way to do this?
    Thanks,
    Jim

    Hi Jim,
    Ideally, error-reporting and -handling should be the way to handle this. However, if errors are not reported/handled as is sometimes the case with OPC, a quick-n-dirty way to do this would be to check for a "heartbeat" signal from your OPC Server. This could be a boolean tag which toggles On and Off (or a counter ticking). You then read this Tag in DSC in a slow loop using the Read Tag VI (not the front-panel control). And keep track of the Changed? output from this Read Tag VI.
    As long as the 'Changed?' output is true, you are receieving data from the OPC Server, and hence it's alive. You may add some deadband logic to wait for a specific period of time before declaring the Server's really dead!
    Hope this helps,
    K
    halid

  • Unable to connect servlet on web server

    Hi all,
    I have wrote the following program to connect to the servlet to the web server:
    public class HTTPTest
         public HTTPTest() {
    public static void main(String[] args) {
         HTTPTest httptest = new HTTPTest();
              httptest.sendHTTP();
    public void sendHTTP() {          
              try
                   URL url = new URL("http://myserver/myServlet");
                   HttpURLConnection conn = (HttpURLConnection)url.openConnection();
                   conn.setDoOutput(true);
                   conn.setRequestMethod("POST");
                   conn.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
                   PrintWriter dos = new PrintWriter (conn.getOutputStream ());
                   dos.println("content=" + URLEncoder.encode("ABC"));
                   dos.println("signature=" + URLEncoder.encode("CDE"));
                   dos.flush();
                   dos.close();
                   conn.disconnect();
              catch(Exception e)
    My servlet does contains some code that write log to the web server log. However, when I examine the log after running this program, nothing was written. But when I access my servlet using an HTML page, it works!
    I am using iPlanet 4.0 SP4, JDK 1.3. Can anyone tell me why? thanks very much!
    Walter

    Thanks very much! It works.
    However, another problem comes. For the two fields that I "POST"ed, it seems that one can reach the servlet but one cannot. When I retrieve the values from the servlet using "req.getParameter("XXX")", one of them got null. But obviously my applet does not send null values.
    Any other thing is needed? Thanks!

Maybe you are looking for

  • Downloading site from server created by someone else

    I apologize if this is something easy, but I'm frustrated. I have volunteered to help with a website that was created by another person using I don't know what. I was able to get to the site, but it seemed that I needed to create a site first in orde

  • Problem Using NVL Function

    I ran across a problem with the format of an ASCI output file of an SQL script. The problem I have is with handling a particular column that contains account numbers. The column is defined with 8 characters. However not every entry has data. I have s

  • Inter Company STO Process

    Hi All, Can Anybody Explain step by step process of Inter Company STO Process Thanks in Advance

  • Setting up iPad without iTunes account

    I want to buy an ipad2 for my father who's lives outside the US. I would like to set  up his email accounts and anything else I can do myself for hip before I ship it over. Questions: I have  an ITunes account but he does not. I believe I need to con

  • 1084: Syntax error: expecting rightbrace before rightparen

    Hi, I am getting the following error when using the below code: 1084: Syntax error: expecting rightbrace before rightparen. Code: Buttons.Btn_2.addEventListener(MouseEvent.CLICK,Btn_2ClickHandler); function Btn_2ClickHandler(event:MouseEvent):void {