Forum Discussion

Positiff88's avatar
12 years ago

Service created in Visual Studio always returns Null

Hello all,

Could you help me track down the problem I get when connecting to a web-service?

The service works correctly when accessed via SOAP UI, but when I try to do the same using Visual Studio's "Web references" or "Service references", or via class created by wsdl.exe, any call to that service returns null instead of the expected response.

I have made sure that the problem is likely to be with that specific service, because a public area-unit conversion service I used for testing works correctly. Here is a test project trying to access both services, one of them responding with null:

https://dl.dropboxusercontent.com/u/590 ... ceTest.zip

Could you suggest what might be wrong with the EdiService?
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    Is below understanding correct?

    You have the wsdl file, instead of using soapui for sending web service requests, your visual stuido which has generated client code, and calling it?
    Can you see if the request sending it from visual studio is setting the required properties correctly like soapAction, authorization etc., You may use tcp monitor and trace the request sent by VS and compare with the sent by soapui?