Simple Homework!
$30-100 USD
Paid on delivery
Deadline is 6 Hours! I can pay 10 usd coz its a simple 1/2 hour work i think so
Hi, can you help me with this homework? Please let me know the cost and how fast can you finish it. Thanks.
Questions on Marshalling.
Base on the following java code, let say you’re required to send the object instance stored in DevilBlack to another system (given that the main method has been done).
You have two options: If you prefer Java-like object serialization then draw a diagram. Otherwise write an XML document in SOAP environment, (definitions of data types is not required) that illustrates how DevilBlack can be represented as a sequence of bytes (marshaled). You are not able to send the DevilBlack object instance on its own. Besides, you have to send other object instances if they can be accessed from DevilBlack. Keep in mind AngelBlue is a rival of DevilBlack.
public class AngelBlue
{
public static void main ()
{
Person DevilBlack = new Person ();
Person AngelBlue = new Person ();
Person cupids[] = new Person[7];
[url removed, login to view] = "Devil Black";
[url removed, login to view] = 65;
[url removed, login to view] = null;
[url removed, login to view] = new Person[] { AngelBlue };
[url removed, login to view] = "Angel Blue";
[url removed, login to view] = 18;
[url removed, login to view] = cupids;;
[url removed, login to view] = null;
for (int i=0; i < 7; i++)
{
cupids[i] = new Person ();
cupids[i].name = "Cupid" + [url removed, login to view](i);
cupids[i].age = 101;
cupids[i].friends = null;
cupids[i].rivals = null;
}
/* We have a “send operation” to send the object instance that
* stored in DevilBlack to another system.
*/
}
}
public class Person
{
public string name; // Name of the person
public int age; // Age of the person
public Person friends[]; // People who are friends of this person
public Person rivals[]; // People who are rivals of this person
}
Project ID: #140790