Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Strange Problem with WCF service

$
0
0

Hi ,

I have built a very simple WCF service. Just a method with return type string

I have used the defaults without changing anyhting else .

I have deployed the msi to IIS and I am able to see my WSDL.

BUT.

I want now to consume the WCF I 've built and I cannot call my function at all.

 

I have created succesfully a proxy client looking to the correct endpoint

Also I used the below code to call my WCF method

 

try

                    portal1.portal11_n_customnonvisualClient myclient

  

                    myclient = create portal1.portal11_n_customnonvisualClient

  

                    string ls

                    ls = myclient.test("zak")

     

          catch (System.Exception ex)

          MessageBox("ok" , ex.Message)

          end try

 

I can see the method in the myclient class

But this is what I'm getting from the WCF

 

 

Capture.JPG

 

If I remove the try catch

 

Capture1.JPG

In other words I cannot call a simple method of my WCF service.

This is not the first time I'm creating a WCF service.

Any ideas ?

Appreciate any help you could give me.

 

thank you


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>