Is there a way to consume a WSDL without having to implement all the operations?

Hi, 

I have a MEX endpoint of a WCF service like: https://test.com/test.php?wsdl

Consuming this invokes all of the operations within the service, but i need only one. Is there a way to do it?

Thanks!

September 11th, 2015 11:56am

Consuming the same will list all the operaations supported by the service.

You can very well use only the one you are interested in.

Free Windows Admin Tool Kit Click here and download it now
September 11th, 2015 12:10pm

Yes,

but consuming the whole service creates many unnecessary .XSD files i dont really need. Also creates a bunch of types inside the orchestration view.

Thanks

September 11th, 2015 12:21pm

Theres nothing wrong with that. But if you want just your operation take out the needed schema and delete the others.

You can even do with out consuming wsdl. Just have the correct schema and correct operation action mapping in ur send port for your logical send port of orchestration. (No need to ur the ports created by the wsdl consumption)

Free Windows Admin Tool Kit Click here and download it now
September 11th, 2015 12:59pm

Hi,

I Agree with Pi_xel_xar.

there is no option as of now.

You need to delete manually which you do not want to use.

Schemas, Orchestration Ports, Binding Actions.

Thanks, SMSVikasK

September 11th, 2015 3:40pm

For clarity, it is not invoking anything, your app does that.

What you are seeing is the correct and expected behavior.  Just use the Operations you want and ignore the rest.

Free Windows Admin Tool Kit Click here and download it now
September 11th, 2015 5:57pm

There is no way just to consume a single operation from a WSDL...Just delete the unnecessary artefacts after consuming the WSDL
September 11th, 2015 9:37pm

Hi Janardhan,

When you consume any service ,it will generate schema for all the Operations and port binding for all the methods implemented inside the service . 

I dont think you can generate only one schema for specific method until and unless the WSDL has only one operation defined . 

Thanks

Abhishek

Free Windows Admin Tool Kit Click here and download it now
September 13th, 2015 2:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics