soap

MTOM/XOP implementation for .net remoting

My customer asked me to implement MTOM/XOP for .NET Remoting via HTTP/SOAP for remote stream access (for example, file uploading). WCF web services in not an option. So, what I have to do is modify our custom SoapClientFormatterSink and SoapServerFormatterSink to do the job, i.e. SerializeMessage method, which takes IMessage and if one...

Read the XML/SOAP from an XMLDocument

I assume somehow you can user an XmlReader to read the envelope from an XmlDocument. Does anyone have a good example how? I want to simply extract the entire sent SOAP text into a string variable so we can log it in case of a request error. Example methods: protected virtual HttpWebRequest CreateWebRequest(string endPoint, Int32 cont...

Creating a SOAP request with PHP - how do I add attributes to the XML tags?

Hi, I am trying to generate the following XML in my SOAP call: <CResponse> <ID>int</ID> <Response Action="Apply"> <Question ID="$someint"> <Responses> <Response ID="$someotherint" /> <Response ID="$yetanotherint" /> </Responses> </Question> </Response> ...

Add a security header to SOAP message using MSSOAP30

Hi I'm really stuck on getting my SOAP messages to work. I've tried many approaches but they all have the same problem in common: they don't have a security header. The security header needs to contain a username and password. In VB.Net this is done by: userNameAssertion.UsernameTokenProvider = new UsernameTokenProvider(username, pass...

PHP SOAP fread() dynamic POST size

Looking to read the file size of the SOAP POST, any best practices? $data = fopen('php://input','rb'); $content = fread($data,5000); $dom = new DOMDocument(); $dom->loadXML($content); Would like the 5000 to be dynamic as each SOAP POST size will be different or does this matter? Using fread() would be great ...

SOAP Message parameters - how to send strings and schemas

Hi I'm quite new to SOAP. I need to understand something failry basic I'm sure. First, the info: This method returns a list of all items in a database where a field matches a value. For example: WhereClause = "TypeCode = 'M'" Code //[some code] bool morePages; //[some other code] PartListDataSetType plType = proxy.GetList(CompanyNa...

PHP - SOAP - lastResponse - Display Fields & Values?

Hi guys, I've got a SOAP fault response that i'm trying to output into a sort of 'print_r' nice format so I can include the fault in an email to our IT staff when SOAP request fails. Can anyone tell me the best way to simply format an XML SOAP faultstring in the format, variableName: variableValue? Cheers ...

Sending cookies in a SOAP request using Suds

I'm trying to access a SOAP API using Suds. The SOAP API documentation states that I have to provide three cookies with some login data. How can I accomplish this? ...

Debug Soap UI tool calls

We are planning to use SOAP UI Pro to test our Services (developed in c#.net) I am getting an error in the service and would like to debug the service call. I am not able to attach a breakpoint. Does anyone have tried to debug SOAP UI test tool call? ...

Quicky: VB, XML and SOAP. Minor error?

Could someone please help me with what's wrong here? I have tried to add a security header, so far just containing a username. Thanks Dim ENC As String Dim XSI As String Dim XSD As String Sub SOAPsuds() 'Define Envelope Constants ENC = "http://schemas.xmlsoap.org/soap/encoding/" 'Encoding XSI = "http://www.w3.org/199...

SOAP over non-HTTP protocol

I just wondered if there are any libraries in Java or any other language implementing SOAP over protocol that is not HTTP? I've heard that some project had implemented SOAP over SMTP. Are there any other experiences? ...

Consuming a php soap web service with excel2007

Hi all, I'm trying to figure out how to connect Excel 2007 to php5 based web services. I found this pretty interessting article on the topic. Ok, so it seems to be doable. Now, php5 soap services don't accept parameters in url form, so a RESTesque call like http://domain.org/service.php?getme=something won't work out since there are ...

Post data in asp vb.net webservice

I have created a web service in visual studio. How do I read the HTTP post data when someone sends a request to one of my methods. The message they are sending me is a soap wrapped xml file. ...

How can I force WCF to autogenerate WSDLs with required method parameters (minoccurs="1")?

While using WCF and OperationContracts I have the following method defined: [OperationContract] [FaultContract(typeof(ValidationFault))] [FaultContract(typeof(FaultException<ExceptionDetail>))] int DoSomething(int someId, MyComplexType messageData); When this gets translated to a WSDL by the WCF runtime, it ends up wit...

Can't connect to SugarCRM Soap API

I've just started on a project where I need to insert contacts into a SugarCRM system using the SOAP interface. So far I have created a reference to the service http://sugar-dev.walkinwifi.net/soap.php?wsdl=sugarsoap Then writen some code like this public SugarHelper() { //Create a new instance of the client proxy ...

Workaround for PHP SOAP request failure when wsdl defines service port binding as https and port 80?

I am consuming a SOAP web service using php5's soap extension. The service' wsdl was generated using Axis java2wsdl, and whatever options are used during generation result in the port binding url being listed as https://xxx.xxx.xxx.xxx**:80** If I download the wsdl to my server, remove the port 80 specification from the port binding lo...

Difference between REST and WebServices

What is difference between REST and WebService (SOAP), I looked at the facebook api, they use HTTP headers and some parameters (probably xml or non) and return result in xml, where else SOAP does exactly same, HTTP headers + xml parameters and returns headers + xml. REST also requires some authenticated token where else SOAP uses http s...

[PHP, SOAP] How do I pass "simpleContent" type into SOAP using Nusoap library

I am having trouble trying to pass an array of data to a Nusoap client request to a WSDL server. The spec is a mixture of attribute values and simpleContent values. The WDSL spec looks something like this: <s:complexType name="RequestMessage"> <s:sequence> <s:element minOccurs="0" name="Address" type="s0:MessageAddress"/> <s:...

Java HTTP post for XML SOAP message

How to expose / publish services using Java HTTP post for XML SOAP message. What are all steps need to follow. I did googling but haven't found any thing about exposing / publishing services. ...

Connect to .Net Web Service with iPhone SDK

I need to use a web service to be able to sync my iphone app with my Asp.Net website. Data needs to be sent both ways. I haven't started building the web service nor the client yet so before I start, what's the best way to do it? Using SOAP, REST? I understand that support for SOAP or REST isn't built-in in iPhone SDK but are there any r...