Skip to Content

WSIL Parsing to get a valid Web Service URL (Visual Studio / .NET)

Jan 10, 2017 at 09:37 PM


avatar image


I'm trying to parse and extract service URLs from the WSIL xml file and load them in Visual Studio or in .NET

Here's what i'm getting from WSIL:

<wsil:description location="http://isvd-sap:8080/sap/bc/srt/wsdl/flv_10002S111AD1/srvc_url/sap/bc/srt/scs/sap/z_csap_mat_bom_read?sap-client=000" referencedNamespace="">
<name>Simple Client Provider Service</name>

I can easily parse and extract data from the following structure, but when loading it in visual studio or in my web service generator, it does not generate any code because the url is not a real wsdl url...


The url I retrieve is this one:


but the SOAManager one is more like this:


Why it gives me invalid URLs?

How can i get the valid ones or convert them...?

Thanks a lot,

Francis Harvey

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Francis Harvey Jan 12, 2017 at 04:48 PM

Ok, it seems the URLs may be valid but not for ASMX service (Web Reference).

Using the Service Contract method (Service Reference), I can generate the service, but i have to use the EndPoint URLs (found in WSIL) for the instanciation of the service.

For some services, I get errors during compilation...

Can someone confirm that these URLs are good to use or point me a way to get valid ones?

Because for now, critical services can't be loaded and it's blocking the development...

10 |10000 characters needed characters left characters exceeded