Category : nusoap

In Nusoap, if I want to define array of struct, I can do it like this: (message is a struct) $server->wsdl->addComplexType( ‘messageArray’, ‘complexType’, ‘array’, ”, ‘SOAP-ENC:Array’, [], // $elements [ [ ‘ref’ => ‘SOAP-ENC:arrayType’, ‘wsdl:arrayType’ => ‘tns:message[]’, ], ], // $attrs ‘tns:message’ ); As shown in the code comment, if I swap the position of ..

Read more

I need to add credentias for my soap server, but i don’t have much experience in this. What i have to use for add the user and password? <?php require_once "vendor/econea/nusoap/src/nusoap.php"; $namespace = "testeSoap"; $server = new soap_server(); $server->configureWSDL("PinchesSOAP",$namespace); $server->wsdl->schemaTargetNamespace = $namespace; $server->wsdl->addComplexType( ‘Cliente’, ‘complexType’, ‘struct’, ‘all’, ”, array( ‘name’ => array(‘name’ => ‘name’, ‘type’=>’xsd:string’), ..

Read more

I am trying to run a web service with NuSoapClient and I am getting this message: HTTP Error: no data present after HTTP headers https://github.com/Lawiet/nusoap I am running on the local XAMPP server. This is the code I am using: <?php require_once ‘vendor/autoload.php’; use lawietsrcNuSoapClient; $client = new NuSoapClient(‘https://ruta.pe/webservice.php’); $user = "USU"; $password = "PASS"; ..

Read more

I’m try to consume a web service with CodeIgniter 3, but I can’t find the correct way to consume the service. With SOAP UI, The input XML is this: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ext="http://www.servisoft.com.co/Mercurio/Servicios/Schema/ExternoV1"> <soapenv:Header/> <soapenv:Body> <ext:RadicarExternoTipoDocRequest> <ext:RadicExternoV1Request> <ext:idDestinatarioEntidad>526917048</ext:idDestinatarioEntidad> <ext:idTipoEntidadDestinatario>TE01</ext:idTipoEntidadDestinatario> <ext:idRemitente>TESTER</ext:idRemitente> <ext:idAsunto>017</ext:idAsunto> <ext:descripcionSolicitud>Description tester</ext:descripcionSolicitud> </ext:RadicExternoV1Request> <ext:idTipodocumento>017</ext:idTipodocumento> <!–Optional:–> <ext:campoDiferenciador>702</ext:campoDiferenciador> </ext:RadicarExternoTipoDocRequest> </soapenv:Body> </soapenv:Envelope> And in the code PHP, I’m ..

Read more

This is my sample code and works fine.I tried adding it in different places but failed. I struggled for a long time and finally decided to write it here. Because I couldn’t get out of it. My English is not enough. I’m sorry for this. <?php require_once(‘lib/nusoap.php’); $oSoapClient = new nusoap_client(‘https://xxxxxxxxxxxxxx/analytics/saw.dll?WSDL’, ‘wsdl’); if ($sError = ..

Read more

I need to create wsd like <xsd:complexType name=”sorguParametreType”> <xsd:sequence> <xsd:element name=”kurumKodu” type=”xsd:string”/> <xsd:element name=”kullaniciAdi” type=”xsd:string”/> <xsd:element name=”sifre” type=”xsd:string”/> <xsd:element name=”ipAdresi” type=”xsd:string”/> </xsd:sequence> </xsd:complexType> <xsd:complexType name=”kisiselSorgulamaGType”> <xsd:complexContent> <xsd:restriction base=”tns:sorguParametreType”> <xsd:element name=”tcKimlikNo” type=”xsd:string”/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> with using nusoap or like php soap server. I did’nt find any documentation on how I could do that. Source: Ask ..

Read more

hello, I am making a mvc model to register users name, age and mail, so far everything works perfectly for me the problem comes when I have to apply nusoap to the controller view model and there is no way it works, when I load it the screen stays blank directly in addition to having ..

Read more

I am trying to consume a web service using php and nuSoap. The service is written in vb.net. The service is working fine. I have tried with SoapUI. I am trying to implement the following envelope (which works fine from SopUI) : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.xxxdomain.com/services/recprint/v1/" xmlns:v11="http://www.xxxdomain.com/services/v1/"> <soapenv:Header/> <soapenv:Body> <v1:PrintContract> <!–Optional:–> <v1:request> <v1:AgentId>12345</v1:AgentId> <v1:AuthInfo> <v11:Account>user1</v11:Account> <v11:CompanyId>1234</v11:CompanyId> ..

Read more