Is it possible using SvcUtil.exe to generate separate file for each class in wsdl schema defination.
Related
I have a wsdl & multiple xsd files.
When I copy them inside the services folder of a MobileFirst project. Then it does not show/detect them inside the services folder. It shows as empty folder when viewing in Project Explorer view. However it does show wsdl & xsds files when viewing through Package Explorer.
I want to run the Back-end service discovery wizard to generate the adapter functions, rather than manually typing the SOAP messages in adapter functions.
Currently it is not showing the option of Back-end service discovery wizard
You do not need to copy the wsdl and xsd files into the services folder. You should be able to run the Back-end service discovery wizard off the services folder and then point to those files on your file system.
The project explorer view only shows elements under the services folder that are representations of the underlying service model (as defined in the service descriptor xml files). It does not show the xml files themselves or any other file types, but just shows nodes that represent a service model node. This was done only for the project explorer view. You can view the service descriptor xml files and any other file types in other viewers such as the navigator viewer or package explorer. It is assumed that the only files that would ever be in the services folder would be the service descriptor xml files. It is not necessary that you put your files under this folder.
I am wondering if its possible to create a separate web.config file for a custom service which references the PSI on SharePoint 2013.
So I have my "service.svc" within a folder in the PSI directory, but I would like to have a separate web.config just for this service. I want to try to consume that service in a more general approach, without going through "ProjectServer.svc" in my client.
So I thought it would be better if I can define the endpoints and the rest of the bindings in that separate web.config file.
Thanks
The solution was to create a separate folder in the mapped PSI folder of IIS. Then inside you can easily install your service when deploying with a separate web.config file.
I want to update my WCF services, by adding a couple of new methods at the service description. I've build the new dll's with the new methods, copied them in the bin folder of the WCF website hosted on IIS of the remote server and tried to generate the new proxies with svcutil.
Svcutil however doesn't generate the .xsd files. The mex endpoint is set, httpGetEnabled is set to true. Could any change in IIS settings cause this? Because thats the only thing that might have changed since I last updated the services successfully, about a month ago.
I'm looking for an example in C# how to programmatically create WSDL file based on XSD files where WSDL file contains 1 main XSD file, which contains several import directives to subsequent XSD files. After that WCF service should be invoked based on created WSDL file. The service contract is known.
I've spent a lot of time on internet trying to find something but no luck so far.
There is a program that comes with .net sdk called wsdl.exe You could invoke this program using the methods of the Process class.
See this:
http://msdn.microsoft.com/es-es/library/e8zac0ca.aspx
And this:
http://msdn.microsoft.com/en-us/library/7h3ystb6(v=vs.100).aspx
thanks for any assistance.
I'm creating a wcf web service for an external client.
The client is requesting a copy of the wsdl.
I currently am waiting on being able to provide the client with access to the service.
when I go to my local webserver running the service (http://localhost/Services.svc?wsdl) I am shown
the wsdl, the data provided contains the method signatures (from the .svc code behind),
but does not contain the included model objects (Customer, Order, ext).
To get those objects, I can find the references in the shown data and go to the url
For me to provide all needed information to the client, so that they have the entire wsdl
should I provide the main schema and also each of the imported schemas?
or is there any other way of accomplishing this (other then the client hitting a server)
ie: is there a way of packaging all of them within one file?
(Seems like something would be available to extract each of those files?)
If I were to give a .zip with each of the files, would that be enough?
Thanks,
Steven
WCF packages up its WSDL and XSD (XML schema to describe the data being sent around) into various pieces, as you've already noticed. Those are referenced from your main WSDL with additional href's.
Or even better: you can run the "svcutil -metadata" command on the command line against the DLL or EXE which contains your service implementation - this will create all the needed files (typically several WSDl and several XSD) in the directory where you run the svcutil command. That's usually a more reliable way than piecing together the WSDL and XSD files from the ?wsdl URL (you usually end up missing one or two files).
Marc
If you manually downloaded each and every sub-WSDL and XSD referenced, then yeah, it would work; but it's cumbersome, to say the least.
An option worth looking into would be to use Christian Weyer's WCF extensions for flattening your WSDL so that WCF generates everything in a single file, then giving that to your client.