Sending Object vs String in SOAP

27 views
Skip to first unread message

Przemek

unread,
Jul 31, 2012, 5:50:35 AM7/31/12
to jsonweb...@googlegroups.com
Hi again

I have a small problem:

I have an object that consist 

public class Konfiguracja {
private Map<Integer,String> operatorzy = new LinkedHashMap<Integer, String>();
private Map<Integer,Kwota>  wgIdOperatoraKwotyKodyKreskowe= new LinkedHashMap<Integer,Kwota>();

private Map<Integer,String> wgIdOperatoraOpisy= new LinkedHashMap<Integer, String>();
private Map<Integer,String> wgIdOperatoraPromocje= new LinkedHashMap<Integer, String>();
private Map<Integer,String> wgIdOperatoraLogo= new LinkedHashMap<Integer, String>();

.....
}

And Object Kwota is :

public class Kwota {
private Integer idOperatora;
private Integer kwota;
private String kodKreskowy;
public Kwota(Integer idOperatora, Integer kwota, String kodKreskowy)
{
this.idOperatora = idOperatora;
this.kwota = kwota;
this.kodKreskowy = kodKreskowy;
}

....
}

everything is perfect in JSON, but when Im making a soap request I dont have section "Kwota" in response.
Do you know maybe why ??


Sundar Murthi

unread,
Jul 31, 2012, 6:08:53 AM7/31/12
to jsonweb...@googlegroups.com
Hi,
I am not sure, which one your missing "Kwota" the object in Konfiguracja class or "kwota" Integer in "Kwota" object.

If your missing "Kwota" object in linked hash map, This can be possible in SOAP due to soap parser may follow SOAP RPC format. In this case I suggest you to solve through jax-ws metro forum, or define your custom object with key value pare in list.


Hope it helps.

Przemek

unread,
Jul 31, 2012, 6:25:34 AM7/31/12
to jsonweb...@googlegroups.com
Hi 

Im missing the whole object "Kwota" in response in  SOAP only.

I will try to ask in Jax-WS metro forum.

But one more question if You had to send in soap a List of simple Objects (with or without Key) how would You do this ??? 






W dniu wtorek, 31 lipca 2012 12:08:53 UTC+2 użytkownik jsonwebservice napisał:
Hi,
   I am not sure, which one your missing "Kwota" the object in Konfiguracja class or "kwota" Integer in "Kwota" object.

If your missing "Kwota" object in linked hash map,  This can be possible in SOAP due to soap parser may follow SOAP RPC format.   In this case I suggest you to solve through jax-ws metro forum, or  define your custom object with key value pare in list.


Hope it helps.


Reply all
Reply to author
Forward
0 new messages