I want to send an object, SBNInloggBegar, to a WCF web service. SBNInloggBegar contains the objects SBPBegar and SBPInloggning>
I didn't declare any namespace for request, but I added a mapping to the specific type, like this:
envelope.addMapping("http://www.statskontoret.se/sambruk/nyttomeddelanden", "SBNInloggBegar", SBNInloggBegar.class);
envelope.addMapping("http://www.statskontoret.se/sambruk/sbpbegar", "SBPBegar", SBPBegar.class);
envelope.addMapping("http://www.statskontoret.se/sambruk/sbpinloggning", "SBPInloggning", SBPInloggning.class);
envelope.addMapping("http://www.statskontoret.se/sambruk/sbpsubjekt", "SBPSubjekt", SBPSubjekt.class);
Also, I set implicitTypes to true.