soap

Transfer File us NuSOAP

Hey, I am having this problem transferring files using NuSOAP. I understand that you can read a file and transfer it has a string but its not working. Here is an example Client: require('libraries/nusoap/nusoap.php'); $url = "http://www.example.com"; $client = new nusoap_client($url); args = array('file_name' => 'myfile.zip'); $retur...

In a WCF Client How Can I add SAML 2.0 assertion to SOAP Header?

I'm trying to add the saml 2.0 assertion node from the soap header example below - I came across the samlassertion type in the .net framework but that looks like it is only for saml 1.1. <S:Header> <To xmlns="http://www.w3.org/2005/08/addressing"&gt;https://rs1.greenwaymedical.com:8181/CONNECTGateway/EntityService/NhincProxyXDRReq...

"Error #1006: getAttributeByQName is not a function." Flex 2.0.1 hotfix 2

Hi, guys! I am working on some old Flex project (Flex 2.0.1 hotfix 2) and I am rookie in Flex programming. So, I wrote code for accessing some ASP.NET web service: <?xml version="1.0" encoding="utf-8"?> [Bindable] public var users:ArrayOfUser; private function buttonClicked():void { mx.controls.Alert...

Python SUDS - problem with sending a message encoded not in UTF-8

I need to send a SOAP message (with Python SUDS) with strings encoded in 'iso-8859-2'. Does anybody know how to do it? SUDS raises the following exception when I invoke a method on a client with parameters encoded in 'iso-8859-2': File "/home/bartek/myenv/lib/python2.5/site-packages/suds/sax/text.py", line 43, in __new__ result = su...

Send SOAP XML via curl, PHP

Hi. This has been bugging me for days, i'm trying to send a SOAP post via curl but i just keep getting a 'couldn't connect to host' error but i really cant see how. I have an asp version which works fine with the same url and data, i think it's just a php/curl thing...? I currently have the following code (the CURLOPT_POSTFIELDS data is ...

Ruby SOAP::RPC::Driver seeing the generated soap request

I'm using ruby's WSDLFactory to create an rpc driver to access the paypoint soap service and i need to see what xml request is being generated is there a way to do this code or should i try and use something like ethereal ...

Dynamic WSDL Location in .NET

I am building a C# application that is consuming a WSDL that is hosted by a server on our network. When I use the "Add Web Reference" functionality of Visual Studio, it works just fine, saving the ip address of the machine, etc. and the SOAP calls work without any issue. We are now making this entire application portable so that it c...

Any tutorial on Qt SOAP

Hello. Qt library provides a classes to work with SOAP in qt components. Unfortunately, it's not a part of 'core' Qt and is not well documented. Is it any tutorials / guides/ examples awailable i can use as starting point to learn QtSoap? I want to create a very simple SOAP client for JIRA. ...

Create a service that connects to remote database and uses public key encryption

I have been searching all day and reading many tutorials and still I am confused. I am working on a project that has the following requirements as specified by the client (customer - not to be confused with client app): Connect to a remote server and verify that connection was successful. Connect to Web service on said server via SOAP....

Passing parameter to SOAP Web Service Requests Using Visual Studio Team System 2008

How can I pass in the current datetime parameter to a SOAP request? I know you can pass in parameters by adding a datasource to the web test project and reference it like this {{DataSource.TableName.FieldName}}. But I want to pass in current datetime parameter as a dynamic value (something like DateTime.Now). How do I go about doing thi...

Are there any OSGi web service / SOAP clients out there?

I'm looking for any webservice client that can be run inside an OSGi container and connect to a simple web service using SOAP, doesn't sound so hard does it? Oh, and it has to work under Java 1.5, so the JRE jax-ws wont be present. The problem is I've tried a few solutions now, and although each solution works in standard Java using i...

Calling a wsdl in php over https using Zend Soap Client

When I'm trying to connect to a webservice I always get the next fault SoapFault exception: [s:Sender] An error occurred when verifying security for the message I also have to use a security header, full soap request is send: <env:Envelope> <env:Header> <ns2:Action env:mustUnderstand="1"> http://ws.agiv.be/crabtools/ICRABTools/GetAddr...

Perl Regular Expression [] for <>

So I am trying to read an XML file into a string in Perl and send it as part of a SOAP message. I know this is not ideal as there are methods for SOAP sending files, however, I am limited to having to use the SOAP that is set up, and it is not set up for sending with file support. Therefore I need to parse out the markup tags <> and re...

Advice on creating simple web service

Hi all, I want to build simple SOAP web service. So far I've only worked with existing SOAP/Rest services. And now I'd like to create my own, simple one for starters. For example create simple hello + string web service where I provide the string in request from SOAP ui or similar tool. I have Jboss server installed already, what is th...

Listing all possible values for SOAP enumeration with Python SUDS

I'm connecting with a SUDS client to a SOAP Server whose wsdl contains many enumerations like the following: </simpleType> <simpleType name="FOOENUMERATION"> <restriction base="xsd:string"> <enumeration value="ALPHA"><!-- enum const = 0 --> <enumeration value="BETA"/><!-- enum const = 1 --> <enumeration value="GAMMA"/><!-- ...

Strange problems with PHP SOAP (private variable not persist + variables passed from client not working)

I have a very strange problems in a PHP Soap implementation. 1) I have a private variable in the Server class which contains the DB name for further reference. The private variable name is "fromdb". I have a public function on the soap server where I can set this variable. $client->setFromdb. When I call it form my client works perfectl...

Why the PHP SOAP session is not persistent?

I defined a SOAP Server in the following way. ini_set('soap.wsdl_cache_enabled', 0); ini_set('session.auto_start', 0); global $config_dir; session_start(); $server = new SoapServer("xxxx.wsdl"); $server->setClass('import'); $server->setPersistence(SOAP_PERSISTENCE_SESSION); $server->handle(); When I connect it with a Soa...

[grails + xfire] How to handle errors in SOAP services?

Hi all, I'm implementing a web service on the xfire plugin. I was wondering how I'm supposed to handle the errors. I tried with this setup but the error is not returned to the SOAP client: GaSession[] myMethod( String userId ) throws MyException{ GaUser user = GaUser.findByUserId( userId ) if (!user) throw new MyException("user...

Creating a webservice client having SoapParameterStyle as Bare as opposed to wrapped

I am trying to create a Soap Web Service Client using the Visual C# 2008 Express IDE. I Do that by Right-Clicking Project Name->Add service Reference->advanced->add web reference(This is because we need to support .NET 2.0 and VS2005 as our development env). Everything is working out fine, and the client is being generated as follows [S...

xml parameter for soap webservice request in iphone

Hello everybody. I want to send a soap request to a webservice method. Now i want to send the parameter as an xml input for that request. so plz can anybody give me an idea of how to do it in iphone? Right now i am sending the request in following way : NSString *soapMessage = @"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" "<soap:Enve...