473,804 Members | 3,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.Net and PHP communicating through Web Service

rizwan6feb
108 New Member
I am working on an application in Vb.NET the pulls data from an online MySQL server. The problem i was facing was that my application had no direct access to internet. The application connects to a proxy server which was blocking access to database server because the proxy server only allowed web requests.

Now i have decided to build a Web Service to send data from my online server to Vb.NET application, I am using PHP at the other end to communicate with MySQL database. This way the application will be based on standard protocols only. This is the point to which i have planned my application.

My question is:
What should be the format of data sent from PHP application to Vb.NET and vice versa. Can i create an XML file which is acceptable by ADO.NET and how will i process DiffGram XML (generated by Vb.NET ) received by the PHP application. I even have no idea how to output XML from using Web Service. I am using NUSOAP in PHP to create SOAP services.

Thanks
Oct 14 '08 #1
4 6654
Atli
5,058 Recognized Expert Expert
Hi.

If the XML generated by your .Net application is valid XML, then PHP can handle it fine.
There are a great many XML handlers in PHP. Take your pick, although I would recommend trying SimpleXML.

PHP can output any data you want. Anything from a string of one's and zero's to an audio recording of your computer sining it to your national anthem. (Granted, the singing could be tricky :P)

My point is that PHP doesn't care what it outputs. I've got my latest project set up to provide XML to my AJAX application by simply printing the XML structure. No XML function or class required.

If you know how your ADO.Net application likes it data, you can have PHP provide it.
Oct 14 '08 #2
rizwan6feb
108 New Member
Thanks Atli, I always learn something from your posts

I am sorry for late response actually i started to work on some other application

I still have lot of confusion in my mind as the two applications are communicating through web service not through simple XML. In other words the communication is based on SOAP and I have no idea how to create soap services using SimpleXML as you recommended

I have started with the following PHP and SOAP tutorial
http://www.devarticles.com/c/a/PHP/B...th-PHP-NuSOAP/

Is there a better way i can develop my application?
Oct 17 '08 #3
rizwan6feb
108 New Member
Please help ........
Oct 21 '08 #4
while i read this post as part also of my research as hobby i would also to create a vb.net -> XML -> PHP CRUD and back vice versa PHP -> XML -> vb.net is this possible with 300 users at a time to access back and forth the data.
Sep 30 '10 #5

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

Similar topics

0
1117
by: Jason McLean | last post by:
Hi, I have an app I wrote in VB a while back that I kludged into running as a service with srvany. I'm now re-writing this app in C# to make it a genuine service that's more stable and has increased functionality. I've written the service and the controller app, and I can start/stop the service, etc. with no problems.
1
3518
by: Mike | last post by:
I have written a windows service that has a few methods which have a return type of dataset. I also have an application that I have written which I would like to 'hook' into my service and use the dataset functions I have developed. My service and application are two seperate projects under the same solution. My problem comes in when I try to 'hook' into the service and call anything from it. I have tried using the ExecuteCommand...
0
934
by: Tappy Tibbons | last post by:
We are trying to write a simple GUI front end to communicate with a service. We need the GUI to make the service fire certain events if the user needs to re-perform certain tasks manually, and possibly return a result string with back to the user from what the service did, records processed, errors, etc. We are thinking there should be a system tray icon as well that the user uses to open the GUI as needed. We tried to keep it...
4
11208
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. What I would like to do is make the serial port accessible via a web service. The web service and the legacy application would be running on the same machine. The mobile application would access the web service via a network connection. It...
1
1516
by: Gianmaria | last post by:
Hi, i've wrote a windows service that handle incoming tcp connections. Now i need to let him communicate with a windows form.. but without remoting. My service fires events too that i subscribe in my win form... is it possible? regards.
1
3884
by: Tom Yee | last post by:
I would like to write a Windows Service that can communicate with any open browser windows that an interactive user may be running. The service itself does not need to have a UI. The company that I work for develops software that monitors Customer Service Representative (CSR) performance. When you call a help desk and hear "This call may be monitored for quality purposes", the software that does this monitoring very likely has been...
7
2283
by: Diego F. | last post by:
Hello. I have a windows service running that listens to a port and makes insert queries in a database. I need to make an interface, so my idea is creating a simple windows application that just shows messages from the service. Can I do that with remoting? What are the main steps to do that? --
1
341
by: John | last post by:
Hi I need a vb.net winform app to be able to query a service (also written in vb.net) and get info in return. Is it possible? Is there a way to do this? Thanks Regards
2
907
by: Q | last post by:
Hello, I'm trying to let two services communicate with eachother. Just don't now where to start!! Some help would be welcome. Regards, Q
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9587
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
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7623
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
6857
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
5527
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
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
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
3827
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.