user3313210
user3313210

Reputation: 59

Calling WCF webservice from Java Servlet

Hi very naive to wcf client programming...my first program only I have a servlet which needs to call a wcf service . I need a detailed explaination of this as to how it is being done..as per my research its similar to calling soap request but with some proxies and client and configuration bindings

as of now , I know that I have a .svc?wsdl file which works in Wcftest client.exe perfectly

Even referred this question Regarding WCF SOAP based web service and servlets

but it did not had certain files

The wsdl file is located remotely.

Upvotes: 1

Views: 526

Answers (1)

mosaad
mosaad

Reputation: 2381

I wanted to do the same thing a few days ago. I used this.

You need to add this to the Web.config of the wcf service.

   `<behavior name="NeutralBehavior">
      <serviceMetadata httpGetEnabled="true"/>
      <serviceDebug includeExceptionDetailInFaults="false"/>
    </behavior>
    `

Then in your eclipse project right click and add a new web service and add the wsdl url and it will generate for you all the files you need to use the service. If something is not clear please ask

Upvotes: 2

Related Questions