I have a 3rd party webservice (happens to be a peoplesoft EIP service) that I'm trying to call from .net. I've tried using a service reference and the old web reference to call this service and every time I call it I get a response of "nothing" back from the service.
I've ran the service call through SoapUI and it works fine. I've captured the network traffic using Fiddler and notice that when i call the service from SoapUi or from .Net I get the same resulting xml back from the call. So that means the call is working. I've turned on tracing and logging within WCF and I'm not seeing any errors. Nor is it throwing an exception.
So my theory is that .net is having a hard time translating the xml from the service back into a .net object.
Here is a snippet of my code:
Dim psclient As New psService.LSS_WEBORDER_PortTypeClient
Dim psreq As New psService.LSS_WEBORDER_REQ_MSG_TypeShape
psreq = New psService.LSS_WEBORDER_REQ_MSG_TypeShape
Dim orderinfo(1) As psService.Transaction_TypeShape
Dim captureid As String = "WB" & Right(Guid.NewGuid.ToString, 8)
orderinfo(0) = New psService.Transaction_TypeShape
orderinfo(0).LSS_WEBOHDR_WRK = New psService.LSS_WEBOHDR_WRKMsgDataRecord_TypeShape
orderinfo(0).LSS_WEBOHDR_WRK.CAPTURE_ID = New psService.CAPTURE_ID_TypeShape
orderinfo(0).LSS_WEBOHDR_WRK.CAPTURE_ID.Value = captureid
psreq.MsgData() = orderinfo
Dim response As New psService.LSS_WEBORDER_RESP_MSG_TypeShape
response = psclient.LSS_WEBORDER_OP(psreq)
response.ToString() <-- this throws an exception because "response" is nothing.
psclient.Close()
Any help would be appreciated.
Paul