Wednesday, March 20, 2013

How SOAP message looks like


getPatientByDbId Method invocation



Method parameter(s)

TypeValue
long2

Method returned

edu.stevens.cs548.clinic.service.dto.patient.PatientDto : "edu.stevens.cs548.clinic.service.dto.patient.PatientDto@79a7c927"

SOAP Request


<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Header/>
    <S:Body>
        <ns3:getPatientByDbId xmlns:ns2="http://cs548.stevens.edu/clinic/service/dto/patient" xmlns:ns3="http://cs548.stevens.edu/clinic/service/web/soap/patient" xmlns:ns4="http://cs548.stevens.edu/clinic/service/dto/treatment">
            <arg0>2</arg0>
        </ns3:getPatientByDbId>
    </S:Body>
</S:Envelope>

SOAP Response


<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns2:getPatientByDbIdResponse xmlns:ns2="http://cs548.stevens.edu/clinic/service/web/soap/patient" xmlns:ns3="http://cs548.stevens.edu/clinic/service/dto/patient" xmlns:ns4="http://cs548.stevens.edu/clinic/service/dto/treatment">
            <ns3:PatientDto>
                <id>2</id>
                <patient-id>10001</patient-id>
                <name>Sam</name>
                <dob>1988-03-20Z</dob>
            </ns3:PatientDto>
        </ns2:getPatientByDbIdResponse>
    </S:Body>
</S:Envelope>

No comments:

Post a Comment