nusoap

Nusoap with https

Hi, I am unsure if there is any difference for PHP-Nusoap client in sending web services request to http and https. For the user testing, the client was using http://xxx.xxx.xxx.xxx:3833/ws/ws.svc?wsdl which was working fine. However when the client moved to the production server with https (replace the http in previous link with https)...

Nusoap not throwing exception when my Webservice is down!

I have a Php application running on my "Server A" that consumes a .NET Web Service hosted on my "Server B". For some reason sometimes the IIS on my "B Server" fails to response and on my Php web application takes exactly 60 seconds to load the page where the webservice call is. I want to be able to change those 60 seconds because is too ...

Nusoap - fix empty xmlns attribute for the response

Hi, i have created a simple web service using Php Nusoap. its working correctly but the only thing missing is to add the default xmlns attribute to the response tag. Here is the copy of Response : <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOA...

Nusoap - fix empty xmlns attribute for the response

Hi, i have created a simple web service using Php Nusoap. its working correctly but the only thing missing is to add the default xmlns attribute to the response tag. Here is the copy of Response : <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns...

WCF .Net 4.0 Client Error in deserializing body of reply message

Hello, I am trying to get a WCF .Net 4.0 client to work with a NuSOAP/0.7.2 (1.94) Web Service. First thing, the web service is not based on current SOA standards so I had to create a custom encoder to handle the ISO-8859-1 message encoding. When I get the response, WCF throws the following exception "Error in deserializing body of ...

passing an xml in nusoap

Good day, I am having trouble passing an xml in nusoap. sample: I pass this xml <test>123</test> The nusoap response is test123/test The greater than and less than sign is removed. This is my code for the server: require_once('nusoap/nusoap.php'); $server = new nusoap_server; // Create server instance $server->conf...

[nuSoap] How to avoid to send some attributes in webservice response ?

Hello, i'm developing a NuSoap WebService to be consumed from a Flash app: everything runs fine but, when returning a response in XML, i receive a lot of non-useful (for the client) attributes like xsi:type="xsd:string" xsi:type="xsd:int" for every node. I know that they are necessary for SOAP stuff, but i'm asking if there is a way to ...

Use NuSoap basic auth webservice in C#

He there, I have a basic webservice which works in C# if i remove the Basic auth option. But when i add the Basic auth meganism and set NetworkCredentials in C# I get this wierd error. C# does authenticate correctly but after that something goed wrong. Service s = new Service(); s.Credentials = new Credentials("jan", "password"); Str...

How to reduce bytes number in SOAP response?

Hello, is there a way to reduce the number of bytes sent to the network from a SOAP response? I use nuSoap in PHP and would like to avoid xsi:type="xsd:string", xsi:type="xsd:int" in every node. Is there a way to do it? Thanks in advance c. ...

PHP SOAP web service call help.

I'll start out by saying that I've never used SOAP before. Anyway, Here's the code I'm trying to create. <soapenv:Body> <Circuits xmlns="http://www.qpricer.com/Services/Pricing"&gt; <Circuit bandwidth="DS-3" port-billing-type="Flat" product="Dedicated Voice" term="1-Year"> <ns1:Loop npanxx="212255" xmlns:ns1="http://www.qpricer.com/...

PHP Soap Header help

I have a fairly simple php/soap header question. Here's what I need. <ns1:Identity token="123456789"></ns1:Identity> Here's what I get... <ns1:Identity><item><key>token</key><value>123456789</value></item></ns1:Identity> using this code... $headers[] = new SoapHeader('http://qpricer.com/Services/Pricing','Identity',array('token'=...

SOAP doesn't work

I trying to work with SOAP, but it doesn't work. I tried localhost and another server. For example: soap.xml: POST /InStock HTTP/1.1 Host: www.example.org Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="ht...

php nusoap connecting to a sap webservice

I am connecting from php using nusoap to the sap soap web service, we had some proples getting it to work but I have now manage to get the connection to work. When I do a service call from php the sap web service get the requests but does not convert it to a soap object instead it seems to escape my call and pass it as a string... my ca...

Problem calling webservice from Silverlight in VisualStudio 2010

Hello i'm trying to consume a WS written in nusoap from Silverlight; when i add WSDL service reference, in VS21010, i see listed all WS functions. I instanciate object in my code behind: serviceclient cl=new serviceclient(); but when i digit cl. i cannot see ws methods in intellisense. Why? The same thing, made in a windows form...

nusoap (php) + java object as an input

I try to call a servise using nusoap. Service originally is written in Java and requires a java object as an input. How should I construct the input to make php accept it? At the moment service doesn't understand following approaches (thinks input is null): $obj = (object) array('param1_name' => 'value1', 'param2_name' => 'value2', ..)...

How do i view the "raw xml" output from nusoap?

I have a generic function that I use to pass SOAP commands. I need to view the RAW XML data that is being sent to the server for diagnosing an error. How do i do that? ...

Advantages of nuSOAP WebService?

I've been writing a demo web service in PHP using nuSOAP. I wanted to know which is the advantage of nuSOAP vs SOAP PHP5 class? Also, this is a test web service to use as a model, I was wondering which were the typical scenarios (general to webservices, not just PHP) I should test out. e.g. providing a web method that returns an object...

How to encode PHP object to nuSOAP response?

I'm building a simple WebService. I have a User PHP class and a webmethod getUser to retrieve a user's information. I've declared a complexType and everything seems to work perfectly. $server->wsdl->addComplexType('User', 'complexType','struct', 'all', '', array( 'id' => array('name' => 'id', 'type' => 'xsd:int'), ...

NuSoap and C# problem with array

Hi, I have problem with array in nuSoap. This is my simple WebService: require_once("lib/nusoap.php"); $namespace = "http://localhost/test/"; // create a new soap server $server = new soap_server(); // configure our WSDL $server->configureWSDL("SimpleService"); // set our namespace $server->wsdl->schemaTargetNamespace = $namespace; $se...

C# SOAP Complex Type Argument

I am working on a SOAP Client in C#, consuming a service I've exposed in PHP using NuSoap. My web service is working great from a consumption standpoint, but the trouble I'm running into has to do with passing a complex type as an argument. Working with a complex type returned by a method is no trouble, but I can't seem to figure out h...