-
1. Re: How to set attribute in ws request using SOAPClient?
tfennelly Mar 5, 2009 4:00 AM (in response to sanjoa)It's probably to do with how you're constructing the request map. In your case, it looks like it should work by creating model something like:
public class UpdateCustomerRequest { private String customerId; private Name name; } public class Name { private String firstName; private String lastName; }
Populate this and set it on your request map under the "updateCustomer" key. -
2. Re: How to set attribute in ws request using SOAPClient?
sanjoa Mar 5, 2009 4:49 AM (in response to sanjoa)Nope, same result with
CustomerType myCustomer = new CustomerType(); myCustomer.setCustomerId("123123");
request.put("updateCustomer", myCustomer);
As when using ognlrequest.put("updateCustomer.customerId", "123123");
Apparently soapclient can't handle attributes in request.
BTW. soapclient couldn't either handle attributes in response message (not ognl nor xstream), but that I'we implemented. I could post the patch to jira. -
3. Re: How to set attribute in ws request using SOAPClient?
kconner Mar 5, 2009 6:12 AM (in response to sanjoa)You are correct in that SoapUIClientService only appears to handle population of text elements and not the attributes.
Can you please create a JIRA for this, along with an appropriate test case, and we will address it. If you have a patch then it would also be appreciated.
Thanks for your help
Kev -
4. Re: How to set attribute in ws request using SOAPClient?
sanjoa Mar 5, 2009 6:25 AM (in response to sanjoa)SoapUIClientService does not populate request attributes: https://jira.jboss.org/jira/browse/JBESB-2455
I'll see if I have the time to create a patch. -
5. Re: How to set attribute in ws request using SOAPClient?
kconner Mar 5, 2009 6:29 AM (in response to sanjoa)Great, thanks very much for that.
Kev -
6. Re: How to set attribute in ws request using SOAPClient?
sanjoa Mar 5, 2009 10:54 AM (in response to sanjoa)Added feature patch to JIRA issue
-
7. Re: How to set attribute in ws request using SOAPClient?
kconner Mar 6, 2009 11:29 AM (in response to sanjoa)Wonderful, thanks very much.
I have scheduled the issue for the next project and platform releases, 4.6 and 4.4CP3.
Kev -
8. Re: How to set attribute in ws request using SOAPClient?
jehudi.castro Oct 2, 2010 2:08 PM (in response to tfennelly)I'm replicating this, constructing the request map like this: request.put("updateCustomer.customerId", "123123") works OK, but with request.put("updateCustomer", myCustomer) as suggested by Tom does not work, is this an issue?