soap

gsoap - WS-Addressing elements in the SOAP Header

Hello All, I need to add WS Addressing in my Soap header (I am using the gsoap framework). Is there a way to add that automatically? I looked up gsoap documentation but didnt find any info on that. So right now I have manually added the WS-Addressing to my SOAP_ENV_Header as shown below struct SOAP_ENV__Header { mustUnderstand _wsa_...

Possible to consume badly formed Fault Messages?

I've a WCF client communicating with an unknown server implementation which I have no control over. This client works fine it just doesn't like, what appears to be, incorrectly formed SOAP Fault messages. The messages I receive look like: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header>...</so...

adding custom SOAP headers in MEX response for operation contract based WCF services

I'm having a problem consuming WCF service requiring custom SOAP headers for methods marked with [OperationContract] attributes. Custom headers cannot be explicitly declared in the service because interface methods are not based on [MessageContract]. As a result When svcutil.exe tries to build client proxies the resulting generated code ...

ASMX WebServices issue

Hi, We are sending the following request to a .Net 3.5 ASMX web service. <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt; <SOAP-ENV:Body SOAP-...

How might I use the W3C Markup Validator API in my .NET application?

I found that there's an API for the W3C Markup Validator. I had earlier asked: Is there a .NET library for the W3C Markup Validator API? Assaf's answer: This API is SOAP based. If you want to use it in a .net application you can just add the web reference and code against it. Seems simple enough as it's basically a one-met...

How do I extract data from an XML file with Visual Basic?

I've not used XML too much and I need a little help. My .NET application gets this XML response from the W3C's public validation server: <?xml version="1.0" encoding="UTF-8" ?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"&gt; <env:Body> <m:markupvalidationresponse env:encodingStyle="http://www.w3.org/2...

SOAP WSDL Associative Arrays

Hi all, How can I define an associative array in a SOAP wsdl file? This is how I define an array element type so far: <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="webservice.wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt; <xsd:import namespace="http://schemas.xmlsoap.org/...

Web Service SOAP Message Routing

I have a case where i need to route a Web Service SOAP message through an intermediary server. Can anyone point me in the direction of some good resources on how to accomplish this? ...

Soap returning a HTTP request failed error

I'm getting this error when trying to open a WSDL but I've also tested other valid HTPP address and I'm getting the same error. Could this be something in my php.ini configuration? I have checked allow_url_fopen and that is set to on. here is the exact error: failed to open stream: HTTP request failed! ...

How to match SOAP responses to the schema

Hi I am trying to evaluate a web service. I am using the Axis API to create the requests. I send requests with some attacks, and then want to validate the obtained response to the response schema. I don't have much idea as to how can I achieve this. Can some one help me to achieve this, or give me some pointers that would give me some id...

Literal XML (unescaped) parameter in ZSI

I'm using ZSI to talk to a SOAP web service. One of the methods expects a literal XML string wrapped in a CDATA tag. How can I make it so that ZSI will NOT escape the string? For example, I want to pass the following as a parameter: <query> <name>Elmer Fudd</name> <age unit="years">33</age> <job>Wabbit Hunter</job> </query> I d...

C# axis2 client

i am new to c# language.i saw that you wrote the c# client application to the axis2 web service.i also want to know how i write C# client for the axis2 application ...

Problem with WCF client calling one-way operation

I have run into a problem when calling web service on a SAP PI bus from my WCF client. The operation is defined as one-way, and the method on my proxy operation contract is decorated accordingly when the service reference is added. However, the service client gets an exception when calling the according operation: The one-way operation...

Amazon ItemSearch Availability

I'm using the amazon web services and I was just wondering if anyone knew how I could return unavailable items, I don't exactly wish to purchase them, but to collect statistical information out of them so getting items that aren't available would make my searches much broader. $sc = new SoapClient('http://webservices.amazon.com/AWSEComm...

content not allowed in prolog exception

I am trying to send xml to a java-based web service given to me by a thrid party via a c#.NET application, and I get the "org.xml.sax.SAXParseException: Content is not allowed in prolog" error. I have verified the xml against the schema, and I passed the memorystream I am using to hold the xml to an .xml file, then opened the file with...

Do you use the 'address' element's 'location' attribute in a WSDL port binding?

My question relates to use of the address element's 'location' attribute in a WSDL port binding. Example WSDL fragment: <wsdl:service name="serviceName"> <wsdl:port binding="tns:serviceNameBIND" name="serviceNameBIND"> <soap:address location="http://example.com" /> </wsdl:port> </wsdl:service> I understand that the a...

How can I generate HTML documentation for a SOAP/WebService class in .Net?

When you start a WebService project in VisualStudio(VS) you do actually see some HTML documentation, but the C# comment help does not make it across to the HTML. You can get a description to come through for each web method by using the Description property of the WebMethod attribute, however this means duplicating text from the comment ...

flex soap 1.2 webservice

Hello, I want to connect to a soap 1.2 web service. I know how to do it with a soap 1.1 connection. But it doesn't work for a soap 1.2. Can anyone tell me if there is a workaround for my problem? With kind regard, JSMB ...

SOAP Request Timeout in Console App (.NET)

I have a SOAP web service added to a console app and every time I make a specific call its timing out on me. Other calls work fine. How do I increase the timeout length in a console app? Seems like it's currently about 90 seconds. Thanks. ...

Multi-Threaded Client-Server Web Service - Making server side data thread-safe

Hi All I am implementing a multi-threaded web service. A thread is spawned per incoming request. For each client, a session is created and each session contains a data section - say a DOM tree. Client requests will basically be get/set methods and the server will read/write the DOM. So the DOM data is per client. Now my question is, s...