Sharepoint: how to use web services method - web-services

I need to use the web services available by adding /_vti_bin/webs.asmx to your site URL. In particular GetAllSubWebCollection.
Sorry if this is a noobish question, I work in a split 2007-front 2010-back environment and do not have access to the server so I have little experience with advanced features.
What do I have to enter into the URL to get this method to work? Am I supposed to create a page to handle the info?
Thanks!

Add a Web Reference (not a Service Reference) in Visual Studio. This service is a SOAP service, so you won't be able to just type a url into your browser to call this method. You'll need to send a SOAP message to the service. .NET handles this for you when you add a web reference. If you're using SP 2010, use the Client Object Model instead.

Related

Consume Web Service in Drupal?

Trying to understand which of the better modules to use for my page's specific need. Services module is popular, but that seems more for providing service, where the Web Service Client is good for consuming a web service.
Here's the requirement:
On the web page, I've got a form whose fields (location, service areas, region, indicators, etc) are to be built dynamically and some are selectable based on other selections. (So choosing worldwide would make Hubzone 8A not appear.)
Another team built the SOAP web service, it sits on another server outside the web server. What they delivered to me is a URL to invoke, basically an XML file:
http://webserviceurl.com:52901/navigator/NavigatorServices?wsdl
(Obviously, I just can't use the Feeds module to import the XML manually, right? The whole point of the web service approach is that as the data in the web service is updated, the Process form will by dynamic.)
So I'm really at the beginning of this. Need some guidance.
Web Service Client and SOAP Client are the ones that should do the work for you.
If you find it difficult to understand how to use them, you can simply use nuSOAP library + some PHP code inside a module. This article provides a good tutorial about providing and consuming Web Services using nuSOAP.
PHP provides a SOAP API. So you can simply create a module using this API (and Drupal Form API).

How to authenticate method on a web service so that hackers could not invoke methods within webservice using different tools?

We have developed web service(as well as generic handler) based web application.But it seems that the methods could be invoked by using different tools like (Poster,Advanced Rest Client) to get the secure information of Administrator and could do malicious activities.We would be grateful if you provide us the best possible method to make the method inside webservice or generic handler becomes secure.
What you actually want is to probably know more about WS-Security in your respective technology
Wikipedia: http://en.wikipedia.org/wiki/WS-Security
Microsoft: http://msdn.microsoft.com/en-us/library/ms977327.aspx
Java: https://ws.apache.org/wss4j/
The above works if you expose as SOAP web service.
For REST web service, I found this link:
Security of REST authentication schemes

how to make a webservice (WSDL) which can only be used from my e.g. android app?

i have a question about a .net WSDL webservice.
i want to make a android app which access the webservice, but i dont want to make a public webservice. the webservice should only be accessable by the application so no other user who know the url can access it.
are there any methods to do this?
I don't think there's a 100% safe method to do this. I can suggest generating and sending a key with each request. Normally only the application code would be able to generate a valid key that would be recognized by the web service. You can also use HTTPS on top of that for added privacy against sniffers.

Ideas on how to pass the HttpRequest from classic ASP page to an ASP.NET MVC action?

I have a classic ASP page that was implemented in 2002-ish.
It was acting as an exposed entry point for a collection of SOAP web services.
All this page has is the VB script to create a SoapServer30 object, load a WSDL and WSML and send the object the HttpRequest in order to invoke the web service method.
The web service method is being specified in the HTTP Header's SOAPAction variable.
The request also contains the SOAP envelope with the parameters for the web service call.
This process is no longer working due to changes in the WSDL, the deployment changes, etc.
Basically it's too far gone and too much change has happened since 2002 to salvage this process.
We have a client though that does not want to make any code changes, they use Axis and Java to create the web service request and call this ASP page.
I'd like to alter the VB script to simply pass the HttpRequest to an ASP.NET MVC page for parsing and to route to the correct web service.
Then I'll simply return the result.
Any and all code samples would be greatly appreciated as I have little to no experience with VBScript. My experience is in C#.NET.
Thanks.
Why do you need VBScript at all any more? Why not simply create an ASP.NET MVC route that takes the request directly? I think the ASP.NET MVC route could simply have the same name as the old .asp file.

What is web-service and how to develop it

I am looking for some good starting point for developing web-service.
I have one application which has C++ library support using which I can get all the details of the product.
I am supposed to write web service SDK for the same.
Any help.
Web services generally refer to a technique that allows code to be called via HTTP requests and responses. This is similar to a web page, except that what is returned from a web service is usually not HTML intended to be displayed in a browser - it is usually data of some kind.
"Web Service" is one of those terms that means whatever the person saying it means. Basically, its just a way to access data or functionality via http. There's a few standardized methods - REST, SOAP for web services, or you can just serve up XML, JSON, or other data from a plain old server side web app.
What you'd want to do is investigate what form this Web Server you are supposed to write needs to be in (SOAP, REST, something else), and then go from there.