73 Topics

Member Avatar for
Member Avatar for Massimo_2

I have a problem: I can't get the correct answer from the webservice. The two parameters are correct and the source seems to me to be correct. The system does not require authentication ... What am I doing wrong? <? try { $wsdl = "http://wsr.brt.it:10041/web/GetIdSpedizioneByRMNService/GetIdSpedizioneByRMN?wsdl"; $client = new SoapClient($wsdl); $result …

Member Avatar for pritaeas
0
19
Member Avatar for Mohamed abdul

Hi, I have key.p12 file and password, and I have wsdl file also. But I dont know how to start with SOAP, am new to SOAP I am trying to connect When I try to connect using SoapClient am getting the error [faultstring] => Could not connect to host, [faultcode] …

Member Avatar for rproffitt
0
353
Member Avatar for Sohil_2

This is my soap code try{ $client = new SoapClient( "https://www.tntexpress.com.au/webservices/booking.svc?Wsdl" , array('username' => "xxx",'password' => "yyy") ); $params = array( "SenderAccount" => 30017823, "SenderDetails" => "ROSEHILL 2142 NSW EAST", "CollectionDetails" => "ROSEHILL 2142 NSW EAST", "ReceiverDetails" => "MELBOURNE 3002 VIC", "ItemCount" => 1, "TotalWeight" => 10, "MaxLength" => 10, …

Member Avatar for Sohil_2
0
145
Member Avatar for Tinnin

Hi All, I'm trying to implement an experian bank account checking facility on the systems at work. I'm trying to do this using php and Soap. This is my first time using Soap so I'm not entirely sure if I'm doing it correct. Here is my code: <?php $options = …

Member Avatar for Nicolás
0
7K
Member Avatar for donz365

Hi, I am working on a wbsite for a training centre. I am querying a web service for the list of their courses. There are three parametres in the query: centre, coursetype and courselocation. When querying it directly or using SoapUI it can be queried using 1, 2, 3 or …

Member Avatar for donz365
0
936
Member Avatar for Danny_501

Hi, I would like to extract the return (currently false) value from the following XML: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:isPumpOnResponse xmlns:ns="http://webservice.whatever"> <ns:return>false</ns:return> </ns:isPumpOnResponse> </soapenv:Body> </soapenv:Envelope> Is there a way of getting it out of the SOAPMessage object? SOAPMessage soapResponse = soapConnection.call(createSOAPRequest(webMethodName), url); Thanks.

Member Avatar for rubberman
0
226
Member Avatar for null_pointer

I have been told to do a novice-level project on webservices. I surfed for a while to reach something called Microsoft SOAP development kit. I think it will be really helpful if somebody helps me figure out the theme for my project. Is it OK for a beginner to work …

Member Avatar for donz365
0
344
Member Avatar for arafath077
Member Avatar for v1shwa

Hi, I'm trying test some WSDL url and got the same error as mentioned [here](http://stackoverflow.com/questions/14384515/). As I've no prior knowledge with WSDL, after doing some search, I found that this is because the location url in the `soap:address` tag is not reachable. Am I correct? Is this a possibilty to …

Member Avatar for pritaeas
0
153
Member Avatar for montjoile

I want to run a java application which calls a web service. Everything works fine from the netbeans ide, but fails when I run the .jar generated. What could be the problem? How can I check the content type that the error is pointing at? The error says: **SEVERE: SAAJ0537: …

Member Avatar for montjoile
0
3K
Member Avatar for MICHAEL DENNIS

**Need assistance in using PHP to connect to webservice using SoapClient (I am kinda new to SOAP)** Here is the WSDL URL: https://uat.fiadmin.com/scs.webservice/ScsAutoService.asmx Here is the SOAP request from SoapUI with correct data in the fields: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scs="http://www.natinc.com/SCSAutoService/"> <soapenv:Header/> <soapenv:Body> <scs:GetRates> <scs:objGetRatesRequest> <scs:UserId>VPP</scs:UserId> <scs:Password>jBH5Mspc</scs:Password> <scs:TpaCode>DEMO</scs:TpaCode> <scs:ErrorMessage>0</scs:ErrorMessage> <scs:ErrorCode>0</scs:ErrorCode> <scs:RequestGroup>0</scs:RequestGroup> <scs:Trim>0</scs:Trim> …

Member Avatar for pritaeas
0
292
Member Avatar for jalpesh_007

Dear all, I am developing SOAP web service using netbeans. As i have got preferred SOAP request and SOAP response,now i want to add security information like username and/or password in my SOAP header Request. Please tell me how can i modify or add username in my SOAP header Request …

Member Avatar for Ewald Horn
0
3K
Member Avatar for showman13

I am presented with a programming issue that I don't know where to start with... I am implementing a Payment Processor / Merchant account into a website. They have sent me some sample code, but it is all referencing SOAP and xml... Never having dealt with either one, I'm at …

Member Avatar for showman13
0
259
Member Avatar for klemme

Hi All, I need to create a couple of webservices, where I retrieve info from the database. Found this example on php.net while searching for examples: class MyClass { public function helloWorld() { return 'Hallo Welt '. print_r(func_get_args(), true); } } try { $server = new SOAPServer( NULL, array( 'uri' …

Member Avatar for pritaeas
0
354
Member Avatar for prem2

Hi, I have recently getting the follwing error when using soap in my php. Fatal error: Class 'SoapClient' not found My php version : PHP 5.4.19 (cli) Installed: php-soap.x86_64 0:5.3.3-23.el6_4 Currently using centos $client = new SoapClient('https://sandbox.cashu.com/merchants/cashUPayments.wsdl',array("trace" => 1)); Kindly, let me know how to fix it out. I have …

Member Avatar for cereal
0
1K
Member Avatar for cmhampton

Hello all, I am trying to build a client to consume a webservice, and have run into some strange issues. Here is my code: $securityCode = "A7D5B7D8-73E2-44D2-A6F8-4ACFB91843BF"; // The security code has been changed to an invalid code to prevent unwanted "visitors". $ProphecyConnect = new SoapClient("http://test.prophecyhealth.com/ProphecyConnect/ProphecyConnectXML.cfc?wsdl"); try { $params = …

Member Avatar for cmhampton
0
1K
Member Avatar for kvahanyan

Hello people, I am trying to set up a simple soap client to [this](http://www.strikeiron.com/product-list/tax-currency/foreign-exchange-rates/) web service with gsoap. Code generated with soapcpp compiles and works fine but I cannot seem to successfully get data from service. This service uses soap_header to check user login and password. std::string login = "somelogin"; …

Member Avatar for kvahanyan
0
665
Member Avatar for rahul.pragma

Hello, I tried to create a SOAP request but could not succeed. SOAP WADL url is **http://www.mobipost.com.au/httpapi/Messaging.asmx?WSDL** AND request should be like: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthenticationHeader xmlns="http://messaging.mobipostapi.thirdscreen.com.au/"> <UserName>SAMPLE_USER</UserName> <Password>SAMPLE_PASS</Password> </AuthenticationHeader> </soap:Header> <soap:Body> <SendSMSToContacts xmlns="http://messaging.mobipostapi.thirdscreen.com.au/"> <oSMS> <MessageText>THIS IS MESSAGE</MessageText> </oSMS> <ContactIDs> <int>123456789</int> <int>987654321</int> </ContactIDs> </SendSMSToContacts> </soap:Body> …

Member Avatar for pritaeas
0
325
Member Avatar for showman13

Good Morning... I hope this doesn't come across as too unintelligent, but I am baffled and maybe unnecessarilly I am implementing a payment processor and merchant account services on my members site. The processor has provided me with a host of API code for various functions and activities. Problem is …

Member Avatar for showman13
0
222
Member Avatar for AquaNut

Hi All, I am working on a project that involes reading in an xml and sending out a soap message but have come stuck with an error of Cannot implicitly convert type 'string' to 'string[]'. The code is: foreach (var dr in DataRecords) { //build up the values we're interested …

Member Avatar for AquaNut
0
689
Member Avatar for Lyfe

**Please how can i get only one element data from this xml soap web service response? (for example: <location>). Thank you** <string><?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Madrid / Cuatro Vientos, Spain (LEVS) 40-23N 003-47W 687M</Location> <Time>Dec 22, 2012 - 03:00 AM EST / 2012.12.22 0800 UTC</Time> <Wind> Calm:0</Wind> <Visibility> less than …

Member Avatar for kvprajapati
0
310
Member Avatar for eshwari_ramaiah

Hai.. When i try to set up SOAP environment and access RPCRouter Servlet from browser im getting the following exception.Please do help me out to solve this: ------------------------------------------------------------------------------------------------------------------------------------ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error …

0
132
Member Avatar for cheiL

I'm working on a *soap message *to send to a client system. I must use the client's predefined data types specified on their soap to send my message. Theres alot of arrays and enumerators used and my code gives the following error: > Error 1 Cannot implicitly convert type 'UpdateRatePs._Default.Rate.AvailAppType' …

Member Avatar for cheiL
0
276
Member Avatar for aldm

Hi, I'm new in android and I have to call wcf service from android app. Everything works fine, but I don't know how can I manipulate with result set of WCF method. This is my code snippet: [CODE] SoapObject request=new SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope=new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet=true; envelope.setOutputSoapObject(request); HttpTransportSE httpTransport=new HttpTransportSE(URL); …

0
58
Member Avatar for swilliamrobert

Hai, I downloaded and install sugar crm in my localhost.Inside the folder there is soap.php. when i run the file, all functions and wsdl file there. I want to create on soap client and access the WSDL url using my localhost. this is WSDL file URL( http:/localhost/scrm/soap.php?wsdl ) I want …

Member Avatar for pritaeas
0
254
Member Avatar for sulagno

[B]I need to convert this xml into another one to send a soap message[/B] [CODE] <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:customerCustomerListResponse> <storeView SOAP-ENC:arrayType="ns1:customerCustomerEntity[2]" xsi:type="ns1:customerCustomerEntityArray"> <item xsi:type="ns1:customerCustomerEntity"> <customer_id xsi:type="xsd:int">1</customer_id> <created_at xsi:type="xsd:string">2007-08-30 23:23:13</created_at> <updated_at xsi:type="xsd:string">2008-08-08 12:28:24</updated_at> <increment_id xsi:type="xsd:string">000000001</increment_id> <store_id xsi:type="xsd:int">1</store_id> <website_id xsi:type="xsd:int">1</website_id> <email xsi:type="xsd:string">[email protected]</email> <firstname xsi:type="xsd:string">John</firstname> …

Member Avatar for sulagno
0
319
Member Avatar for omlac

Hi all, Does anyone know what might be causing this error message when i try to send a SOAP Request. java.security.PrivilegedActionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response? Regards

Member Avatar for omlac
0
122
Member Avatar for omlac

How do i send a Soap request like the one below in Java.Links to SOAP for newbies will be much appreciated as well. [code=xml]<SOAP-ENV:Envelopexmlns:SOAP-ENV="http://www.w3.org/2001/12/soap-envelope"SOAP-ENV:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <SOAP-ENV:Body xmlns:m="http://www.xyz.org/quotations"> <m:GetQuotation> <m:QuotationsName>MiscroSoft</m:QuotationsName> </m:GetQuotation> </SOAP-ENV:Body></SOAP-ENV:Envelope>[/code]

0
70
Member Avatar for elakkiyatamil

Hai i created a proxy classes using wsimport command...while running those command i got this error.please rectify this problem [WARNING] SOAP port "ServiceSoap12": uses a non-standard SOAP 1.2 binding. line 138 of [url]http://10.0.3.24/Test/service.asmx?wsdl[/url]

0
74
Member Avatar for bluesheeva

Hi, I created a new web service and a client that request for this web service by using SOAP message. Before consuming the web service, I created a class that implements SOAPHandler to intercept the soap message and authenticate the client. I would like to redirect the page to registration …

Member Avatar for Daisy_S
0
157
Member Avatar for khakwani

I want to convert an XML file into SOAP. And then i have to send that SOAP messgae to server. How can i do this. Thanks in advance

0
91
Member Avatar for jaydipsinh

In soap header part [code=xml]<soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-9502902" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">....data....</wsse:BinarySecurityToken> <ds:Signature Id="Signature-12345678" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <ds:Reference URI="#id-4453123"> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <ds:DigestValue>'.$ssDigest.'</ds:DigestValue> </ds:Reference> </ds:SignedInfo> <ds:SignatureValue>.......</ds:SignatureValue> <ds:KeyInfo Id="KeyId-98765432"><wsse:SecurityTokenReference wsu:Id="STRId-33454994" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:Reference URI="#CertId-9502902" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/> </wsse:SecurityTokenReference> </ds:KeyInfo> </ds:Signature> </wsse:Security> </soapenv:Header>[/code] Thanks in advance

0
125
Member Avatar for swilliamrobert

Hi, I do not know how to pass parameters using soapclient with call method in PHP. ---------------------------------------------------------------------- [B]Description:[/B] This command is used to authenticate the user. Most of the biz functions require authentication in order to function. If the session is already logged in then a subsequent successful login will …

0
98
Member Avatar for swilliamrobert

Hi, I want to send parameters to wsdl (xml file). I give sample code below. --------------- [B]createsession.php[/B] ------------------------------------------------ <?php session_start(); require_once('lib/nusoap.php'); $client = new soapclientw('https://www.domin.com/services/umarketsc?wsdl', true); $client->soap_defencoding = 'UTF-8'; $client->decode_utf8 = false; $sessionResult = $client->call('createsession'); // [B]No parameters[/B] echo 'Session ID : '. $sessionResult['sessionid']; ?> ------------ [B]End code[/B] --------------------------------------------------------------- [B]Sample …

0
92
Member Avatar for ppetree

Often times I see a SOAP document (blog or example) that references the WSDL from the client side as: [url]http://yourUserid:[email protected]/foobar.wsdl[/url] as in this example:[code] $client = new SoapClient("https://yourLogin:[email protected]/bar.wsdl", array( "login" => "yourLogin", "password" => "yourPassword", "trace" => 1, "exceptions" => 0));[/code] How are they processing the userid/password and managing the …

0
74
Member Avatar for swilliamrobert

Hi, I am new in SOAP webservice. I dont know how to use webserives in php. I need to develope for mobile application using SOAP. I run some sample code in my local server using SOAP file. I am getting WSDL format file. What is the use of WSDL. I …

0
86
Member Avatar for NT.

Hi, I am trying to access a web service using the WSDL url. I am able to get all the related classes from that wsdl using wsdl2java emitter. I am able to create a client that can basically call the methods of the web service. Now, the problem is I …

0
67
Member Avatar for janskey15
Member Avatar for praveen_dusari

hi all, iam using a php web services from xignite iam not able to use it properly [CODE]$xignite_header = new SoapHeader('http://www.xignite.com/services/', 'Header',"Tracer" => "1")); $wsdl = new soapclient('http://www.xignite.com/xMetals.asmx?WSDL'); // attach SOAP header $wsdl->__setSoapHeaders(array($xignite_header)); // call the service: pass the parameters and name of the operation $input_params = array('Types' => "XAU", …

Member Avatar for eaksin
0
156
Member Avatar for harshareddy75

Hi guys, Do you know of any C++ libraries can can generate SOAP messages using the WSDL. I am writing a C++ client application and am looking for such a library. I however cannot use gSoap and wsdlpull. SOAP Client library (SQLData Systems) looks like another library which could help …

0
35
Member Avatar for gliesian

This code: [code]<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <add xmlns="http://calculator.me.org/" > <i xmlns="">4.0</i> <j xmlns="">2.0</j> </add> </soapenv:Body> </soapenv:Envelope>[/code] Produces this error when validated with NetBeans: [code]XML validation started. Checking ../soapXmlDocument.xml... cvc-elt.1: Cannot find the declaration of element 'soapenv:Envelope'. [4] XML validation finished.[/code] Any ideas why? Thanks!

0
55
Member Avatar for whiteyoh

Hi All, Im busy trying to get my head around SOAP. During the last couple of days ive been looking through a number of tutorials. The following one seems quite good, but i can get any of the examples to display anything at all [url]http://devzone.zend.com/article/689[/url] Can anybody give any help?

Member Avatar for whiteyoh
0
89
Member Avatar for whiteyoh

Hi all, Im working on a project at work and i need to process data with SOAP. Im fine with PHP but brand new to soap. The process im to follow is: 1. I recieve a message from a 3rd party system. 2. I call "userinfo" from that 3rd party …

0
53
Member Avatar for jesus.christ

Hi, i am very new to gsoap n SOAP thing. i tried executing the first sample example using gSOAP. It is the calculator example. i do not know the basics of gSOAP and di not find the same on net.. what i have done is: 1) compiled the calcclient - …

0
71
Member Avatar for tchaves

Hi everyone, Daniweb has helped me a lot in the past and for once I haven't found the solution in a previous thread. Here is my issue. I simply cannot figure out what to do to send/receive XML using PHP SOAP functions. It sounds simple enough, but I have been …

Member Avatar for pritaeas
0
150
Member Avatar for shug94

Hi guys, I am trying to understand how the web service security headers in SOAP work. I can see that there should be a BinarySecurityToken, a Created and Expires datetime, and a Signature portion. My questions are as follows: - What is the BinarySecurityToken? Is it the entire certificate used …

Member Avatar for yaronn01
0
137
Member Avatar for amac4291

Hi guys, Pretty new to all this. Not really my field of expertise but i am trying to download data from a website in XML using SOAP. I know the msg that i need to send to request the data but not sure how or where to send this from. …

Member Avatar for carpiediem
0
169
Member Avatar for kinger29

How do you print a SOAP response? I have been trying to do the following but its not printing the actual soap message. Its just giving me some sort of description. [ICODE] SOAPMessage reply = connection.call(message, destination); String myreply = reply.getSOAPPart().getContent().toString(); [/ICODE]

Member Avatar for ~s.o.s~
0
365
Member Avatar for shuffy

Problem is, The following code displaying the first node set out of results. I want to display all the results. PLS help. Private Sub cmdCallSoap_Click() Dim objResults As MSXML2.IXMLDOMNodeList Dim objNode As MSXML2.IXMLDOMNode Dim pstrPhpURL As String 'This is your web URL name Dim pStrFunction As String 'This is your …

0
63
Member Avatar for junrest

Hi everyone, I'm newbie here. Is anyone here how to make "simpleType" in SOAP/XML. All I know how to create "complexType", but I'm just trying to create the different "enumeration" element with a "restriction" under the "simpleType". Thanks in Advance.

Member Avatar for junrest
0
69

The End.