Hi,
I have implemented Asynchronous webservice that receives response from different Agency. This response will be automatically redirected to my Webservice based on service URL when the request process has been finished by Agency.
I created a VB class file based on WSDL file provided by Agency.
In my Webservice class file
Webmethod looks like this:
Public Function ReceiveCourtCaseEventReply(ByVal ReceiveCourtCaseEventReply1 As ReceiveCourtCaseEventReplyType) As ResponseType
Logger.Write(ReceiveCourtCaseEventReply1.ResponseMetadata.UserDefinedTrackingID)
Logger.Write(ReceiveCourtCaseEventReply1.CourtCaseEvent.CaseDocketID.ID)
Dim response As New ResponseType()
response.ResponseStatusCode ="Success"
Return response
End Function
I'm testing Webservice with SOAPUI with sample response and extracting values from given SOAP response.
My SOAP Message Format:
<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<m:ReceiveCourtCaseEventReply >
<jnet-m:ResponseMetadata>
<jnet-m:UserDefinedTrackingID>HIT-CP-02-CR-0002432-2010-A2</jnet-m:UserDefinedTrackingID>
<jnet-m:BackendSystemReturn>
<jnet-m:BackendSystemName>AOPC</jnet-m:BackendSystemName>
<jnet-m:BackendSystemStatusCode>SUCCESS</jnet-m:BackendSystemStatusCode>
<jnet-m:BackendSystemReturnCode>SUCCESS</jnet-m:BackendSystemReturnCode>
<jnet-m:BackendSystemReturnText>At least one CCE message returned. More records may follow.</jnet-m:BackendSystemReturnText>
</jnet-m:BackendSystemReturn>
</jnet-m:ResponseMetadata>
<CourtCaseEvent>
<CaseParticipants>
<CaseDefendantParty.Person>
<j:PersonName >
<j:PersonGivenName>John</j:PersonGivenName>
<j:PersonMiddleName>M.</j:PersonMiddleName>
<j:PersonSurName>Myrla</j:PersonSurName>
<j:PersonFullName>Myrla,John M</j:PersonFullName>
</j:PersonName>
</CaseDefendantParty.Person></CaseParticipants></CourtCaseEvent>
</m:ReceiveCourtCaseEventReply>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How to iterate values of <CaseDefendantParty.Person> property element ?
Any solutions Please?
Thanks,
Srinivas Kalagara