I'm trying to consume my SOAP web service in my C++ programm. I'm using in-build wizard to generate interaction code automaticaly using my wsdl. When I call non parameterized method everything is OK, but when I trying to call web method with parameter, I get error linked with namespace. I think I need to override onBeforeExecute method of HTTPRIO to replace some bad tags, but I could not find any useful HTTPRIO documentation or examples wrote on C++. Can anybody give me a link dedicated to HTTPRIO applying with SOAP. Or may be someone already faced with transmitting parameters problem and knows more elegant solution?
Unmarshaling error: unexpected element(uri:"/*my_service_namespace*/", local:"/*parameter_name*/"). Expected element are <{}/*parameter_name*/>
Related
I have developed a WebService in PHP using SoapDiscovery class made by Braulio José Solano Rojas but with some adjustments made by me in order to support complex types.
The problem is that I can use the webservice in PHP client, but not in VS 2012. When adding the Web reference, Web Service methods are detected and I can add the reference correctly, but when I try to use it, intellisense does not show it, so that I cannot instantiate it and do nothing. I can, however, use a Webservice that does not use complex types.
The WSDL is at: http://feriados.servicios.desytec.com/feriados?wsdl
Please advise me.
I am building webparts and self hosted apps for sharepoint 2013, I want to consume the Query String filters that the user sets up, the process should be as simple as specified here on this microsft site.
Unfortunately I dont get the option to send values to 'my web part' but I do for other stock webparts that come with sharepoint. Which leads me to believe I need to implement IFilter or equivelent in my webpart, I have found information into IFilterConsumer interface and IFilterProvider interface on msdn which seems to be exactly what I need, however the documentation has one snag:
NOTE: This API is now obsolete.
So My question is, what is Microsofts new intended way of doing this with Sharepoint 2013.
Ultimately I need to read query variables in the HostWeb request inside my AppWeb code.
Edit: Apparently IWebPartParameters is the new interface for this.... trying to implement now.
I have also tried whats suggested here:
Passing parameters through sharepoint sitepage to web part Still not working, at the moment I have implemented IWebPartParameters, IWebPart, IWebPartRow and none of my functions that implement these interfaces are being called. I must be missing something in the manifest or features file maybe?
Thanks in advance
Crash
Ok the answer to this question is simple, firstly you can only do this in a dev environment with sharepoint installed, as you need access to the sharepoint.dll.
Then this thread answers the question http://www.manning-sandbox.com/thread.jspa?threadID=19791, with the following code solution which is here http://www.markitup.com/BookCodeSamples/TestingWebPartConnections.zip
I have stand alone Java Application with Spring 3.0. I am calling REST service "post" method call with 4 integer parameters. While calling restTemplate.postForEntity(), I am getting error "no suitable HttpMessageConverter found for request type". Is it require to set any messageConverter in restTemplate ? i don't find any sample on net.
Funny, I just answered similar question...
Nevertheless you may want check great Spring Reference Manual, particularly this fragment, documentation, IBM Dev blog post and RestTemplate example on SpringSource Blog (written when ).
From SpringSource Blog post:
HttpMessageConverters
Objects passed to and returned from the methods
getForObject(), postForLocation(), and put() and are converted to HTTP
requests and from HTTP responses by HttpMessageConverters. Converters
for the main mime types and Java types are registered by default, but
you can also write your own converter and plug it in the RestTemplate.
Also, IBM blog post here mentions common HttpMessageConverter implementations, you probably will use Marshalling (response in XML) or MappingJackson (for JSON) one.
Most likely that REST service you called would have failed and postForObject() returned null. You need to check for errors using ResponseErrorHandler implementations.
I want to call a rest service written in WCF (which can support both XML and JSON Web Message Formats) from my C++ application.
What is the best solution to achieve this ? I have seen some utilities (gsoap) which create proxy classes for you to be used to call web services.
Can I achieve the same functionality without using any intermediate utility ? As its a rest service and it works using GET/PUT functions which are basic HTTP functions, is there any C++ library/Solution which could be used to invoke these function directly from a c++ application ?
On Linux, you probably could use curl library (and I guess it is ported to Windows). Curl is a library providing HTTP client functionality to a C or C++ program.
Use Casablanca. This should be helpful for people looking for this answer in 2013. CURL is perfectly appropriate but if you're doing C++ in Windows and using MS stuff, Casablanca seems fit.
Hope the following articles might be of help to you
1. Accessing an XML Web Service Using C++
2. SOAP client for C++
I tried gsoap myself but it became difficult to maintain cross platform versions of my app.
Instead i went the HTTP request route.
For cross platform and C++ i found this Call Rest Web Services from C++
If XML serialization with your REST approach is really not needed then curl is perfect to use. However, if you want type-safe XML serialization in C or C++ then it would become cumbersome to use curl, since you will have to use something that runs on top of curl to process XML such as with a DOM parser (slow and not type safe). If you have a WSDL, then I recommend gSOAP 2.8 which provides integrated REST and XML serialization capabilities (and JSON when you need it).
I need to call an webservice method from my excel macro. can any on suggest me how can i do that. I don't want to use soap related thing durin calling the webservice in macro code.
Thanks in advance.
Eshwer Nayudu
If you don't wish to use the SOAP type library, you could use MSXML instead and create the SOAP request manually in code and then post it to the web service.
Please take a look at http://www.freevbcode.com/ShowCode.asp?ID=7611 for a nice example. It's for VB6, but I am sure it would need little adjustment for VBA.
The best way to do this is to create a simple class which acts as a WCF client to the service. Then, with just a little more work, you can turn this class into a COM object. Excel can easily access COM objects.