8 Replies Latest reply on Oct 2, 2010 2:08 PM by Jehudi Castro

    How to set attribute in ws request using SOAPClient?

    Joakim Sandstroem Newbie

      I'm using SOAPClient (not wise) to invoke a webservice, the request should be like this:

       <soapenv:Body>
       <ns:updateCustomer customerId="124343">
       <ns:name>
       <ns:firstName>FIRSTNAME</ns:firstName>
      ..
      


      The problem is that the customerId isn't set correctly (at all), I'm adding the following key/value to the request map:
      updateCustomer.customerId=124343
      updateCustomer.name.firstName=FIRSTNAME

      The actual (wrong) request is:
       <soapenv:Body>
       <ns:updateCustomer customerId="?">
       <ns:name>
       <ns:firstName>FIRSTNAME</ns:firstName>
      ..
      


      Any ideas how to set a attribute?