Click here to Skip to main content
15,891,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to integrate a jsp application with IIS asp.net application.

Jsp application calls asp.net application which should send back some data via the xml protocol. I am unsure how to achieve it.

Should the data be built in xml object and that object be passed as string object?

Sorry I am quite unsure of xml protocol so I am asking.

Thanks

Vijay
Posted
Updated 22-Dec-10 0:34am
v2
Comments
Dalek Dave 22-Dec-10 6:35am    
Edited for Readability.

1 solution

The best way to achieve this is to develop a Web Service at Asp.net-end, and, consume the web service in your JSP application. Internally, the communication will be SOAP based (XML), but, at JSP application-end, you will get the typed object (Which should be better for you as you don't have to parse and extract information from the XML).
 
Share this answer
 
Comments
vjvjvjvj 22-Dec-10 6:10am    
Thanks Al farooque,

You said at jsp application end typed object will be recieved and which doesnt have to be parsed and extracted. I do not understand this point. My asp.net application will be sending data in xml format such as id=1232 street=t road building no=2344 type=residential. will it be a complete string object at the jsp side which should be parsed using string functions to get value of each variable?
Al-Farooque Shubho 22-Dec-10 6:13am    
You need not to build and send an XML document from the Asp.net web service. You just send the object you have.

However, if you really need to send an XML document from within the Asp.net web service, you send it from the web service and receive the XML document at JSP application. There shouldn't be any problem.
Dalek Dave 22-Dec-10 6:35am    
Good Answer.
vjvjvjvj 22-Dec-10 6:48am    
Hi Al farooque,

Thanks. I dont think that is simple in my application.
My JSP applications layout is

DataEntry.jsp
Map.jsp
report.jsp

Map.jsp hosts map.aspx in a div from asp.net application. asp.net Map captures a point and it then through JAVASCRIPT posts/submits the information (location and other info) to report.jsp. (The information variables too are configurable at the jsp side. ) So how to involve web service (xml protocol) here to send the information back to report.jsp?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900