1

I have been referencing the SOAP services for a while and I never came across a problem like this. I added the service reference and expected it to update my config file. It actually did not.

as mentioned in here Visual Studio does not generate app.config content when "add service reference"

I also followed the steps of going to advanced and unchecking "Reused Types in referenced assemblies". That also did not work.

Anything else that I can do to make it work? May there be something wrong with the service itself? How do I figure that out?

Community
  • 1
  • 1
Lost
  • 12,007
  • 32
  • 121
  • 193
  • 1
    What kind of service are you trying to load up? Add Reference sometimes doesn't work on newer services or with those containing mystifying configurations (such as making a WCF service with restful URLs). – bvoyelr Sep 23 '15 at 18:03
  • @bvoyelr: Good Point but wouldn't the fact that it has a WSDL tell us that it is basically a SOAP? How do I confidently say that it is SOAP or REST? – Lost Sep 23 '15 at 18:30
  • 1
    I don't remember good old SOAP web service adding anything to app.config. It adds all necessary components under service reference. – T.S. Sep 23 '15 at 18:42
  • @bvoyelr: I think I am a little mor einclined to believe that it is s SOAP because when i added the service reference, it created `Reference.CS`. If it was a REST, this would had never happened. What do you think? – Lost Sep 23 '15 at 19:00
  • @T.S.: Probably But when I create a client and then run the project then it is looking for section in the config file. – Lost Sep 23 '15 at 19:03
  • 1
    Than you don't use SOAP WebServices - you use WCF and possibly SOAP protocol. Your description is confusing because you said "I have been referencing the SOAP services..." but that is not what you have – T.S. Sep 23 '15 at 19:06
  • Here is your answer to this [Why is the section missing from app.config?](http://stackoverflow.com/questions/13231086/why-is-the-system-servicemodel-section-missing-from-app-config) – T.S. Sep 23 '15 at 19:14
  • @CoffeeBean You mentioned Reference.cs -- I take it that file is empty as well? – bvoyelr Sep 24 '15 at 15:08
  • @bvoyelr: Well, no tit generates references.cs BUT just it is not able to update the config files. Actually, I was able to make some progress further. It turned it that is is Java SOAP Service and I am trying to reference it to .Net environment. Nto sure that is the main reason why is is not updating app.config file. However, when I add it as a "Web Reference" as oppose to the service reference, it updates the config file and I am able to communicate to it. Not sure why I need to add it as a "Web reference" though? – Lost Sep 24 '15 at 16:44
  • If someone can explain why, Please add it to the answer section and I will be able to mark it as a final answer. – Lost Sep 24 '15 at 16:47

1 Answers1

0

Ok I found the answer. It was not the regular C# based SOAP service and it is basically SalesForce/SuccessFactor API. Here is the document which will be able to give more details on this.

I am not sure why we should use Web Reference as oppose to Service Reference. I can only confirm the fact that using Web reference works and adding Service reference does not.

I am very curious on WHY part of it. If someone can explain please add your comments in an answer and I will be happy to mark it as an answer.

Lost
  • 12,007
  • 32
  • 121
  • 193