soap

PHP script ending prematurely

My site has a php page that prints out XML, for some reason though it's being truncated to 8KB in size, I've never encountered this before and all the other pages on the site remain un-truncated. Where should I start looking for the problem and what could cause it to stop like this? The site uses the Zend framework and the page in ques...

SoapClient save request to file instead of sending it

Is there a way to save the soap request SoapClient sends when calling __soapCall to a file instead of sending it to the actual server? I'm trying to save the soap requests to a queue and then send them over a period of time (the requests will be very different). I'm using Zend_Soap. ...

Zlib in Delphi 2009

I am upgrading a app to Delphi 2009. The app uses Soap and we compress the soap request and response streams using Zlib. This works fine in Delphi 2006 but not in Delphi 2009. So I went back to Delphi 2006 and changed to use FastZlib. It all worked fine in Delphi2006 but does not work in Delphi 2009 and I get Decompress errors. Has any...

Best way to handle nullable numbers from SOAP proxy objects in Flex/ActionScript

I'm consuming SOAP services in Flex 3 using the WSDL-generated proxy classes created by the tools in Flex Builder. Several of the SOAP objects have nullable integer properties, which get converted to zero during the SOAP-to-local-object conversion process. We are considering a "magic number" approach, where if the service returns -1, we ...

ASP.NET WebService Override SOAP Response

How do you override the SOAP response object from an ASP.NET Web Service before the service finishes sending it? ...

Connecting to WS-Security protected Web Service with PHP

I am trying to connect to a Web Service which is password protected and the url is https. I can't figure out how to authenticate before the script makes a request. It seems like it makes a request as soon as I define the service. For instance, if I put in: $client = new SoapClient("https://example.com/WSDL/nameofservice", array('...

Converting a SOAPMessage object to an instance of a XmlType annotated class in Java.

I'm working with SOAP using the javax.xml.soap package. I have a javax.xml.soap.SOAPMessage object that corresponds to a response to my SOAP request and I have to convert it to an instance of a class that was annotated with the javax.xml.bind.annotation.XmlType annotation. How can I do this conversion? ...

Anyone know why am i receiving WebPart AddWebPartToZone SOAP Exception?

I am trying to add a webpart using the AddWebPartToZone webservice (the ChatterBox webpart 1.0, CAB via command line) and I receive a SOAP exception. I have installed the web part (1.0 CAB version and not the AJAX version) via command line and it works fine if you import the webpart to a page manually. We have also checked to make sure ...

PHP Soap Client: How call WebService with Derived class as parameter?

I'm using PHP 5, and want to call a webservice that is defined sort of like this: webmethod ( AbstractBase obj ); I'm using a SoapClient (wsdl-based). The web method is expecting a subclass of AbstractBase. Yet, in PHP, calling the soap method gets me this error: Server was unable to read request. ---> There is an err...

Create wiki pages on SharePoint with web services

Hi, the title says it all: With which methods do I create wiki content on SharePoint, using the provided web services? I've searched the MSDN docs up and down - with no result. Regards.. ...

Get IP Address of the requested client (Soap message)

Hi guys, I builded a ASMX Service and in the code that process an Error Log that comes from ELMAH. I add into the database all the fields and I add some more, one is the IP Address of the requested client... But I can't (please read, don't know how to) get that... I'm used to string ipAddress = HttpContext.Current.Request.ServerVari...

CAML query to add a ListItem in Sharepoint

Hi, my CAML query to add a ListItem (Wiki Page) doesn't work. I've tried serveral fields, but Sharepoint always creates empty pages. Here is my CAML so far: <Batch OnError="Continue"> <Method ID="1" Cmd="New"> <Field Name="WikiField">My Wiki Content</Field> </Method> </Batch> ...

Keep login credentials server-side via PHP (safe and secure)

So I'm trying to write a php SOAP client that requires the user to pass their login credentials for the remote SOAP server. Here is the set-up/dilemma: User logs into local site using local credentials and goes to page with SOAP client. User is now prompted for credentials for remote Soap server, which, by the way, are the same as the ...

REST vs. SOAP - Doesn't support Transactions?

I'm barely examining the architecture of REST and SOAP as an SOA in my architecture. When comparing the two, I've heard one of the downsides to REST is that is doesn't support "Transactions" - what are they talking about? Because from I can tell, it does support CRUD operations just from the underlying HTTP protocols of GET, POST, DELE...

How to create a wiki page (=item) in Sharepoint programmatically?

Hi, how do I create a wiki page and add a title, as well as some content in sharepoint (via webservices)? This is my SOAP message so far: <soapenv:Body> <soap:UpdateListItems> <soap:listName>Cooking Wiki</soap:listName> <soap:updates> <Batch OnError="Continue"> <Method ID="1" Cmd="New"> <Field Name="...

When to use SOA (Service Oriented Architecture)

I had a conversation with one of our architects recently and he summarized his use of SOA as "The only time we'll use services is when we need async actions otherwise we'll use go direct to the data store" I thought about this statement and it seems fairly logical as services work well in a publish subscribe model, but I was wondering i...

.NET client getting "not well formed" XML response from Axis web service

I have a simple .NET app that makes a SOAP call to a third party Axis web service. When I trace the HTTP traffic, I see that the Request looks fine, however I'm getting an exception: "Response is not well-formed XML." The return object is null, as it seems the XML can't be deserialized. One question regarding the various namespace decla...

Passing multi-dimensional variant array from a .Net web service to Classic vb

I am converting a SOAP toolkit 3 Vb web service to a .Net web service. I have a requirement where in I want to pass a two dimensional variant array to vb client. I tried the following 1. I looked into the xml produced by the SOAP toolkit 3 for the vb web serive and tried to produce the exact same xml as vb produced in the .Net web servi...

Usage of SoapActionEndpointMapping in Spring-ws

Hi all. I'm trying to create a WS based on a WSDL that defines one Request and one Response. The incoming request should be mapped to an endpoint depending on the SOAPAction defined in the SOAP message. To achieve this I'm trying to use the SoapActionEndpointMapping in my servlet.xml config file and define the mappings, as described in t...

Syntax of SoapAction in spring-ws config

I'm having some problems regarding the SoapActionEndpointMapping and are wondering if it could be related to the format of the property. The API says that the mapping is SOAP_ACTION=ENDPOINT_BEAN_NAME with the example http://www.springframework.org/spring-ws/samples/airline/GetFlights=getFlightsEndpoint Am I correct assuming ...