Java Reference
In-Depth Information
String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"
standalone=\"yes\"?>"
+ "<customer>"
+ "<customerId>2</customerId>"
+ "<email>jjones@example.com</email>"
+ "<firstName>John</firstName>"
+ "<lastName>Jones</lastName>"
+ "<middleName>Jason</middleName>"
+ "</customer>";
newJerseyClient.create_XML(xml);
newJerseyClient.close();
}
}
In the client code above, we generate XML formatted so that our RESTful web service
can understand it, then pass it to the create_XML() method in the generated client
class. This class in turn invokes our web service which inserts a row in the database.
We can verify that the data was inserted successfully by querying the database.
 
Search WWH ::




Custom Search