Hi, I have  noticed a problem with how axis2 has been dynamically creating
parameters for web service methods...
 
I have a method as follows:
public long createJob(String sessionId, CreateJobDTO job, JobAttributeDTO[]
atts,  CreateLocationDTO primaryLocation, CreatePersonDTO primaryParty,
String jobNote)
 
 
The problem I get is that with the SOAP request below, what actually is
called is the method with a null primaryParty, which i would and do expect,
and an instance of CreateLocationDTO as the primaryLocation. This seems very
strange, if both party and location were instantiated then i could
understand, or if both were null but why one and not the other? This causes
problems because I cannot distinguish between a request with an invalid
location and one with no location..
Any ideas?
We are using axis2 1.4.1
 
Regards,
Marcus Bond 
 
SOAP request:
  <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:q0="http://webservices.api.jm.kirona.com";
xmlns:q1="http://dto.api.jm.kirona.com/xsd";
xmlns:q2="http://job.common.jm.kirona.com/xsd";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Body>
  <q0:createJob>
  <q0:sessionId>108</q0:sessionId> 
  <q0:job>
  <q1:attributeNotes>Test Attribute Notes</q1:attributeNotes> 
  <q1:externalRef1>Test External Ref1</q1:externalRef1> 
  <q1:externalRef2>Test External Ref2</q1:externalRef2> 
  <q1:generalNotes>Test General Notes</q1:generalNotes> 
  <q1:schAutoSchedule>true</q1:schAutoSchedule> 
  <q1:schDuration>30</q1:schDuration> 
  <q1:schEarliestDateTime>2009-06-20T14:33:31.250Z</q1:schEarliestDateTime> 
  <q1:schLatestDateTime>2010-06-17T14:34:31.109Z</q1:schLatestDateTime> 
  <q1:schLocked>true</q1:schLocked> 
  <q1:schResourceLocked>true</q1:schResourceLocked> 
  <q1:sysSrc>WS TESTING</q1:sysSrc> 
  <q1:type>BENEFITS</q1:type> 
  </q0:job>
  <q0:atts>
  <q2:name>att name</q2:name> 
  <q2:value>att value</q2:value> 
  <q1:description>att description</q1:description> 
  </q0:atts>
  <q0:jobNote>Test Job Notes</q0:jobNote> 
  </q0:createJob>
  </soapenv:Body>
  </soapenv:Envelope>
 
Marcus Bond
Kirona
Email:  <mailto:[email protected]> [email protected]
Web:  <http://www.kirona.com/> www.kirona.com
 

Reply via email to