Hi All,
I have the following situation and am trying to work through it. Your
assistance will be of great help.
Scenario 1:
I have a Web Service whose input is a DTO(Data Transfer Object) of the
form:-
public class PaymentArrayDTO extends implements java.io.Serializable {
private PaymentIODTO[] paymentIODTO;
public PaymentIODTO[] getPaymentIODTO( ) {
return paymentIODTO;
}
public void setPaymentIODTO(PaymentIODTO[] test) {
this.paymentIODTO = test;
}
}
Now this inner DTO, PaymentIODTO is of the form:-
public class PaymentIODTO extends implements java.io.Serializable {
private String accountNumber;
public String getAccountNumber( ) {
return accountNumber;
}
public void setAccountNumber(String test) {
this.accountNumber = test;
}
}
Now how do I form the SOAP client request for this service call.
Scenario 2:-
I have another service which does not have this nexted DTO, hence the SOAP
request is as follows:-
<?xml version="1.0" encoding="UTF-8" ?>
<file:///C:\Prashanth\Sent_UserEligibilityService.xml##> -
<soapenv:Envelope
soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="
http://schemas.xmlsoap.org/soap/encoding/">
<file:///C:\Prashanth\Sent_UserEligibilityService.xml##> - <soapenv:Body>
<file:///C:\Prashanth\Sent_UserEligibilityService.xml##> - <isEnrolledInEC
xmlns="">
<file:///C:\Prashanth\Sent_UserEligibilityService.xml##> -
<gov.ed.fsa.payment.dto.UserAccountNumberDTO xmlns="">
<accountNumber xsi:type="xsd:string" xmlns="">212155725</accountNumber>
</gov.ed.fsa.payment.dto.UserAccountNumberDTO>
</isEnrolledInEC>
</soapenv:Body>
</soapenv:Envelope>
But for a nested DTO scenario 1, the xml similar to the above does not work.
Can any one please throw some light on this??
Regds,
Prashanth