allallovko
New Member
I'm having an issue with a Java Web Service in that I can't accept XML Input from a form (developed by another group).Not having worked with services like this before I am unsure whether I have setup it up correctly, currently all I want it to do is connect, so methods are empty.\[code\]package com.what.service;import java.io.File;import javax.jws.WebMethod;import javax.jws.WebParam;import javax.jws.WebService;import javax.swing.text.*;@WebServicepublic class HouseGetForm { @WebMethod public String getRooms(String rooms) { return "Number of Rooms: " + rooms; } @WebMethod public String getHouseType(String house) { return "House Type " + house; } @WebMethod public String getKitchenAppliances(String appliance) { return "Appliances " + appliance; }\[/code\]I also have my "Server" class, which was nabbed almost directly from a tutorial.\[code\]package com.what.service;import javax.xml.ws.Endpoint;public class Server { public static void main(String[] args) { Endpoint.publish("http://localhost:9898/HouseGetForm", new HouseGetForm()); System.out.println("House Get form Initailised."); System.out.println("Server Started..."); }}\[/code\]You see, I'm not really sure how the whole process works so I'm stumbling around in the dark a bit. When the form is submitted, How is the XML delivered? As a whole document which I then have to find the individual field values on the Web Service? If so how is this done?I literally need to know in laymans terms how I can take XML input (Which is the form data) in a Java Web Service and then manipulate it in Java Web Service Methods.