Hardware to web service

D

Dave

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?
 
I

Ignacio Machin ( .NET/ C# MVP )

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
 
D

Dave

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?


message
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
 
S

Steven Cheng [MSFT]

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:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
 
D

Dave

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.
 
S

Steven Cheng [MSFT]

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:
(e-mail address removed).

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

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
<58975e8a-2062-4d88-8dfd-5b0ef0b1e832@i36g2000prf.googlegroups.com>
Subject: Re: Hardware to web service
Date: Fri, 27 Jun 2008 16:58:47 -0400
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top