473,513 Members | 2,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hardware to web service

I'm developing a piece of Hardware that I wish to have utilize a web service
on a Windows 2003 server. I send an XML file to the server over port 80 but,
it doesn't work. Whatis required to make this connection?
Jun 27 '08 #1
5 1311
On Jun 26, 10:27*am, "Dave" <D...@newsgroup.nospamwrote:
I'm developing a piece of Hardware that I wish to have utilize a web service
on a Windows 2003 server. I send an XML file to the server over port 80 but,
it doesn't work. Whatis required to make this connection?
hardware?

you need to be more especific
Jun 27 '08 #2
Let me tell what does work and maybe that will explain it. I wrote a program
that runs on a windows xp computer and it transmits over the internet to a
web service on the server. This works fine. I want to replace the client
computer with an embeded controller. I have the controler send the xml file
the web service is expecting. I have verfied that it is sending the XML file
correctly . The hardware device connects by way of a socket over the
internet. This is not working, I assume because of some comunication is
going on between the orignal app and the web service that I'm not expecting.
Does a web service just receive an XML file?
"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comwrote in
message
news:58**********************************@i36g2000 prf.googlegroups.com...
On Jun 26, 10:27 am, "Dave" <D...@newsgroup.nospamwrote:
I'm developing a piece of Hardware that I wish to have utilize a web
service
on a Windows 2003 server. I send an XML file to the server over port 80
but,
it doesn't work. Whatis required to make this connection?
hardware?

you need to be more especific
Jun 27 '08 #3
Hi Dave,

As for webservice itself, it is rely on XML SOAP message transfering over
http protocol(most cases), and since http is simply over Tcp, you can
surely send webservice request via raw TCP socket programming. IMO, as
long as the network connection is correct, the most important part is the
XML data(in http request) you send, matches the data/request format the
webservice server-side expect.

So currently, for your scenario, would you let me know the following things:

1. What's your client-side (tcp socket ...)'s programming language?

2. What's the server-side webservice's programming platform and what's the
webserver(IIS or other..). Also, how the webservice is deployed also
matters, for example whether the services has turn on some authentication
...

For general troubleshooting (when you send webservice via one client work
while anothe not work), you can use some network trace tool(tcp or http
trace) to capture the request content (sent by the different client) and
compare the content (message header and body) to see whether there is any
difference.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Dave" <DW**@newsgroup.nospam>
References: <uA**************@TK2MSFTNGP04.phx.gbl>
<58**********************************@i36g2000prf. googlegroups.com>
>Subject: Re: Hardware to web service
Date: Thu, 26 Jun 2008 16:11:09 -0400
>

"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comwrote in
message
news:58**********************************@i36g200 0prf.googlegroups.com...
On Jun 26, 10:27 am, "Dave" <D...@newsgroup.nospamwrote:
>I'm developing a piece of Hardware that I wish to have utilize a web
service
on a Windows 2003 server. I send an XML file to the server over port 80
but,
it doesn't work. Whatis required to make this connection?

hardware?

you need to be more especific
Jun 27 '08 #4
I used a sniffer to see what the difference was. The computer running from
the computer, c# program, POST to the web service. EX. POST address\webapp
(192.168.1.1\sitetemp)

Where address if the address of the web server, and web app is the relative
path and name of the app.

The hardware device just setup a socket to a web address. You can't specifiy
a relative path or the web app name. That was the problem.
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:Oc**************@TK2MSFTNGHUB02.phx.gbl...
Hi Dave,

As for webservice itself, it is rely on XML SOAP message transfering over
http protocol(most cases), and since http is simply over Tcp, you can
surely send webservice request via raw TCP socket programming. IMO, as
long as the network connection is correct, the most important part is the
XML data(in http request) you send, matches the data/request format the
webservice server-side expect.

So currently, for your scenario, would you let me know the following
things:

1. What's your client-side (tcp socket ...)'s programming language?

2. What's the server-side webservice's programming platform and what's the
webserver(IIS or other..). Also, how the webservice is deployed also
matters, for example whether the services has turn on some authentication
..

For general troubleshooting (when you send webservice via one client work
while anothe not work), you can use some network trace tool(tcp or http
trace) to capture the request content (sent by the different client) and
compare the content (message header and body) to see whether there is any
difference.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>From: "Dave" <DW**@newsgroup.nospam>
References: <uA**************@TK2MSFTNGP04.phx.gbl>
<58**********************************@i36g2000prf. googlegroups.com>
>>Subject: Re: Hardware to web service
Date: Thu, 26 Jun 2008 16:11:09 -0400
>>

"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comwrote in
message
news:58**********************************@i36g20 00prf.googlegroups.com...
On Jun 26, 10:27 am, "Dave" <D...@newsgroup.nospamwrote:
>>I'm developing a piece of Hardware that I wish to have utilize a web
service
on a Windows 2003 server. I send an XML file to the server over port 80
but,
it doesn't work. Whatis required to make this connection?

hardware?

you need to be more especific

Jun 27 '08 #5
Thanks for your reply Dave,

If the hardware side is really restricted and have limited programming
interface, would you consider some changes at the webservice side? Is the
service side controllable by you? If so, you can change it to a simple http
handler which just expect some simple http post message or even just use a
Tcp server ? Actually, for your scenario, I don't think the webservice/SOAP
(xml based structure is necessary) as you just need to do some
communication or send some command text, correct?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Dave" <DW**@newsgroup.nospam>
References: <uA**************@TK2MSFTNGP04.phx.gbl>
<58**********************************@i36g2000prf. googlegroups.com>
<e0*************@TK2MSFTNGP06.phx.gbl>
<Oc**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: Hardware to web service
Date: Fri, 27 Jun 2008 16:58:47 -0400
>
I used a sniffer to see what the difference was. The computer running from
the computer, c# program, POST to the web service. EX. POST address\webapp
(192.168.1.1\sitetemp)

Where address if the address of the web server, and web app is the
relative
>path and name of the app.

The hardware device just setup a socket to a web address. You can't
specifiy
>a relative path or the web app name. That was the problem.
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:Oc**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Dave,

As for webservice itself, it is rely on XML SOAP message transfering over
http protocol(most cases), and since http is simply over Tcp, you can
surely send webservice request via raw TCP socket programming. IMO, as
long as the network connection is correct, the most important part is the
XML data(in http request) you send, matches the data/request format the
webservice server-side expect.

So currently, for your scenario, would you let me know the following
Jun 30 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1587
by: MostlyH2O | last post by:
Hi Folks, I'm sorry if this is the wrong place to ask a really newbie question, but I can't seem to get an answer to what seems to be a simple question... What is the difference, with regard...
1
4274
by: Akok Lim | last post by:
Hi, My Name Akok Lim I've some trouble when i do the installation to my client. I've a big problem the client can only provide for the computer using : Intel Celeron 2.0 GHz, and DDR 128 MB,...
3
3527
by: Peter | last post by:
If I want to build a web services application (not web application), what is the hardware requirement ? Does anyone have the experience?
0
932
by: ChrisC | last post by:
Im having some trouble disabling hardware using WMI. I got a handle on the device, but when I call SetPowerState I get a type mismatch. The definition of the method says it takes an int (power...
0
909
by: icodeurs2 | last post by:
I am interested in how to determine if a particular type of hardware has been plugged inot Windows XP/2000 programmatically. It could be a service or application running that could detect like XP...
2
1426
by: icodeurs2 | last post by:
I am interested in how to determine if a particular type of hardware has been plugged into Windows XP/2000 programmatically. It could be a service or application running that could detect the new...
4
4831
by: wqyuwss | last post by:
Hi, We have several core dumps in our product. These core dump can be reproduced in the same place. That is system function call std::basic_istream<char,std::char_traits<char>>::getline. The...
3
2114
by: Tom | last post by:
Is there any way to 'download' a control that could access hardware on a PC? Reason is that I am considering retooling a client-server app of ours over to ASP.NET (VB.NET). However, currently that...
1
1349
by: Max2006 | last post by:
Hi, Is there any guide explains how to calculate the hardware requirement for an application? I am looking for a way to have a rough estimate how much CPU power and RAM do I need for the...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
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...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5682
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,...
1
5084
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...
0
4745
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...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
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 ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.