Hello!. I am trying to sign an xml with a key (.pfx) and when I sent it to who should receive it I get in response "Incorrect reference digest value". I am working with C# and** I need your help** to solve my problem. Here is my code, which I got (in part) from MSDN private static void SignXml(XmlDocument xmlDoc, X509Certificate2 uidCert) { RSACryptoServiceProvider rsaKey = (RSACryptoServiceProvider)uidCert.PrivateKey; // Create a SignedXml object . SignedXml signedXml = new SignedXml(xmlDoc); signedXml.SigningKey = rsaKey; Reference reference = new Reference(); reference.Uri = ""; XmlDsigEnvelopedSignatureTransform env = new XmlDsigEnvelopedSignatureTransform(); reference.AddTransform(env); signedXml.AddReference(reference); KeyInfo keyInfo = new …

Member Avatar
Member Avatar
+0 forum 3

Hi everyone, I have to integrate SOAP api using SAVON gem When I am calling url it gives reponse and operations too But When I call methods and posting data it gives me error client = Savon.client(wsdl:"http://netconnect.bluedart.com/Demo/ShippingAPI/WayBill/WayBillGeneration.svc?wsdl") client.operations => [:generate_way_bill, :import_data, :cancel_waybill] client.call(:generate_way_bill, message: data) => The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft …

Member Avatar
+0 forum 0

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 = array( 'local_cert'=>'certificate.p12', 'passphrase'=>'mypass', 'location'=>"https://secure.authenticator.uat.uk.experian.com/WASPAuthenticator/Service.asmx", 'uri'=>'http://www.uk.experian.com/WASP/', ); $authenticationBlock = "<WASPAuthenticationRequest>"; $authenticationBlock .= "<ApplicationName>YFR Admin</ApplicationName>"; $authenticationBlock .= "<AuthenticationLevel>CertificateAuthentication</AuthenticationLevel>"; $authenticationBlock .= "<AuthenticationParameters/>"; $authenticationBlock .= "</WASPAuthenticationRequest>"; try { $client = new SoapClient(null, $options); $result = $client->STS($authenticationBlock); // experian function - possibly the problem line } catch (soapFault $fault) { trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: …

Member Avatar
Member Avatar
+0 forum 10

Hey everyone, First of all I am a one-week self taught when it comes to web service so pardon if this is a duh! question. I was given a sample Web Service and aske dto re-create it a new one from scratch. I have been able to understand and apply several of the elments from the original Web Service but I ran into a wall with one. The Web Service has the following element <s:element name="runQAAS"> <s:complexType> <s:sequence> <s:element name="login" type="s:string"/> <s:element name="password" type="s:string"/> <s:element name="createdBy" type="s:dateTime" nillable="true"/> <s:element name="createdTo" type="s:dateTime" nillable="true"/> <s:element name="modifiedBy" type="s:dateTime" nillable="true"/> <s:element name="modifiedTo" type="s:dateTime" nillable="true"/> …

Member Avatar
Member Avatar
+0 forum 5

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 none of the parametres (none returns all courses). However, when I query it from within php I can only get a result if I use the first two parametres, but I want to only use the first "centre" so I can get a full list of all the courses for …

Member Avatar
Member Avatar
+0 forum 3

Hi All, I'm trying to convert a .p12 file to a .pem using php (because, as I understand it, soap needs to take a .pem format certificate) Am I going about it the right way? $certificate = array(); $pkcs12 = file_get_contents('certificate.p12'); if (openssl_pkcs12_read($pkcs12, $certificate, 'pass')) { if (isset($certificate['pkey'])) { $pem = null; openssl_pkey_export($certificate['pkey'], $pem, 'pass'); } if (isset($certificate['cert'])) { $cert = null; openssl_x509_export($certificate['cert'], $cert); } if (isset($certificate['extracerts'][0])) { $extracert1 = null; openssl_x509_export($certificate['extracerts'][0], $extracert1); } if (isset($certificate['extracerts'][1])) { $extracert2 = null; openssl_x509_export($certificate['extracerts'][1], $extracert2); } $pem_file_contents = $cert . $pem . $extracert1 . $extracert2; file_put_contents("certificate.pem", $pem_file_contents); $options = array( 'local_cert'=>'/absolute/path/to/file/certificate.pem', 'passphrase'=>'pass', 'location'=>"...", …

Member Avatar
Member Avatar
+0 forum 5

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 on the security part of web services? Or should I opt for developing and deploying simple web services?? pardon me for making this so confusing...

Member Avatar
Member Avatar
+0 forum 1

Hello guys, I have the project to build an Automative Leads. The process flow for this scoring engine needs to be as: SOAP webservice will advertise a "SCoreLead" function that requires an ADF lead to be passed to it. any idea will be appreciated Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi techies, I am new to webservices. The issue is regarding a SOAP request. The request contains a comment which has the charechter as "&" example., the comment is: You & me & is getting converted to "&amp;" in the receiver side. We tried getting the SOAP request (from our side) replaced the "&amp;" to & in the comment and sent the request to other side But still we get the "&amp;" in the other side. Is there any way to solve the same. Will be happy if I can get some good solution. thanks.

Member Avatar
Member Avatar
+0 forum 2

Hi All, Similar problem to my previous post. I've made some progress and managed to get it working on my localhost but on the host server it still flops. I have been told to save the wsdl to file and access it from the file. However, I am not familiar with the process and would like to have some things clairified. When I try to access the wsdl url it throws a soap error: Fatal error: SOAP Fault: (faultcode: WSDL, faultstring: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://secure.authenticator.uat.uk.experian.com/WASPAuthenticator/TokenService.asmx?wsdl' : failed to load external entity "https://secure.authenticator.uat.uk.experian.com/WASPAuthenticator/TokenService.asmx?wsdl" ) When I access it …

Member Avatar
Member Avatar
+0 forum 2

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 and same i can get in SOAP Response using netbeans or in which file. Please help me. Thank you.

Member Avatar
+0 forum 0

IGNORE. not sure how to delete a post of mine

Member Avatar
Member Avatar
+0 forum 1

I have been plagued by an issue for the past couple of days and I am yet to find a solution. I have an service installed at several customer sites. This service grabs data from a database, packages it up and then submits it to a web service hosted on a different server. This is done using SOAP and everything works absolutely fine when I am running the submission service under .NET 2. However, after a recent upgrade to .NET 4, I have been receiving a SoapException when my submission service attempts to logon to the web service. The error …

Member Avatar
Member Avatar
+0 forum 1

Please find the details in Link. I an Trying To Create A sope Api The Details Are Mentioned In The LInk Below Please Help Me to Do It https://drive.google.com/file/d/0Bz6eK1ligNKUOUFwNEZvX0VpNXc/edit?usp=sharing [Click Here](https://drive.google.com/file/d/0Bz6eK1ligNKUOUFwNEZvX0VpNXc/edit?usp=sharing)

Member Avatar
Member Avatar
+0 forum 8

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' => 'http://localhost/soap/server.php' ) ); $server->setClass('MyClass'); $server->handle(); } catch (SOAPFault $f) { print $f->faultstring; } ?> // client.php: <?php $client = new SoapClient(null, array( 'location' => "http://localhost/soap/server.php", 'uri' => "http://localhost/soap/server.php", 'trace' => 1 )); echo $return = $client->__soapCall("helloWorld",array("world")); I can see the logic here - And am wondering if oit is …

Member Avatar
Member Avatar
+0 forum 1

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 tried lot of steps like yum install php-soap etc. Even, i could not find soap word in my phpinfo(). Thanks, Prem

Member Avatar
Member Avatar
+0 forum 1

Hi, I would like to load the data from a SOAP response XML file to a MySQL table. Sample SOAP XML would be http://data.gov.in/sites/default/files/Ashgourd_2012.xml. I have to write a program to populate the data. I'm not very familiar with Java Web Services. I've worked with Struts2 and basics of Spring. I'm in a situation to finish this XML to MySQL in one day. Please let me know which technologies (Spring WS, Hibernate(JPA), JAXB, JAX WS etc) to use and if possible put the code snippets as well. Thanks in advance

Member Avatar
Member Avatar
+0 forum 2

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"; std::string password = "somecode"; std::string from = "AMD"; std::string to = "USD"; CurrencyRatesSoapProxy rateProxy(SOAP_XML_INDENT); ns2__LicenseInfo* licenseinfo = new ns2__LicenseInfo; ns2__RegisteredUser reguser; reguser.UserID = &login; reguser.Password = &password; ns2__SubscriptionInfo subs; licenseinfo->RegisteredUser = ®user; licenseinfo->UnregisteredUser = NULL; rateProxy.soap_header(licenseinfo, NULL); _ns1__GetLatestRate getrate; getrate.SingleCurrencyFrom = &to; getrate.SingleCurrencyTo = &from; _ns1__GetLatestRateResponse responserate; if (rateProxy.GetLatestRate(&getrate, &responserate) …

Member Avatar
Member Avatar
+0 forum 1

Hi i am new to the web service technology. how do i deploy a web service in AWS in a micro account. i need to deploy a application to access a book store online. appreciate if someone could point me to some tutorials. Appreciate a reply. thanks

Member Avatar
Member Avatar
+0 forum 8

I have a proxy generated class file as [System.SerializableAttribute()] { .. .. [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:issuing_v_01_02_xsd")] public class XXXX { private Nullable<decimal> income; private Nullable<decimal> expense; private String memeberName; ... //Properties section with decoration: [SoapElementAttribute(IsNullable=true)] } in my consumer class I obviously create an instance for this object, set all values via set properties but strangely after serialization, Property Income element is not present in the xml object graph. tried using various hacks to get this fixed an working but I'm running out of ideas because I believe theoretically and to my experience this should be working especially with SOAP serializer which serializes …

Member Avatar
Member Avatar
+0 forum 1

I'm dealing with a SOAP client response for a flight booking application, I successfully got the response, See the response below: <arzoo__response> <Response__Depart> <OriginDestinationOptions> <OriginDestinationOption> <FareDetails> <ChargeableFares> <ActualBaseFare>4850</ActualBaseFare> <Tax>4267</Tax> <STax>31</STax> <SCharge>0</SCharge> <TDiscount>0</TDiscount> <TPartnerCommission>0</TPartnerCommission> </ChargeableFares> <NonchargeableFares> <TCharge>0</TCharge> <TMarkup>0</TMarkup> <TSdiscount>0</TSdiscount> </NonchargeableFares> </FareDetails> <FlightSegments> <FlightSegment> <AirEquipType>321</AirEquipType> <ArrivalAirportCode>DEL</ArrivalAirportCode> <ArrivalDateTime>2013-05-20T08:00:00</ArrivalDateTime> <DepartureAirportCode>BOM</DepartureAirportCode> <DepartureDateTime>2013-05-20T06:00:00</DepartureDateTime> <FlightNumber>601</FlightNumber> <OperatingAirlineCode>AI</OperatingAirlineCode> <OperatingAirlineFlightNumber>601</OperatingAirlineFlightNumber> <RPH></RPH> <StopQuantity>0</StopQuantity> <airLineName>Air India</airLineName> <airportTax>4267</airportTax> <imageFileName>http://live.arzoo.com/FlightWS/image/AirIndia.gif</imageFileName> <viaFlight></viaFlight> <BookingClass> <Availability>4</Availability> <ResBookDesigCode>U</ResBookDesigCode> </BookingClass> <BookingClassFare> <adultFare>4850</adultFare> <bookingclass>U</bookingclass> <classType>Economy</classType> <farebasiscode>fjyS3YyUlEusLfJ4bwgPvQ==</farebasiscode> <Rule>This fare is Refundable &lt;br&gt; Baggage : 25K&lt;br&gt;Booking Class : U|Re-Schedule Charges: Rs. 750 per sector + Fare difference (If any) +admin fee 500 + Service Fee of Rs. 250 Sector .|Cancellation Charges : …

Member Avatar
Member Avatar
+0 forum 6

I'm curremtly working on a project "Flight search" with SOAP and PHP. I'm new to this SOAP Technology. I've to send the XML over POST Request and get the response: <Request> <Origin>BOM</Origin> <Destination>DEL</Destination> <DepartDate>2013-05-20</DepartDate> <ReturnDate>2013-05-21</ReturnDate> <AdultPax>1</AdultPax> <ChildPax>0</ChildPax> <InfantPax>0</InfantPax> <Currency>INR</Currency> <Clientid>*********</Clientid> <Clientpassword>**************************</Clientpassword> <Clienttype>ArzooFWS1.1</Clienttype> <Preferredclass>E</Preferredclass> <mode>ONE</mode> <PreferredAirline>AI</PreferredAirline> </Request> to the URL: > http://xx.xxx.xx.xxx/ArzooWS/services/DOMFlightAvailability?wsdl Can any one please help ? I'm struggling with this. Thanks in advance. EDIT: I'm trying the following but its getting error: $dom_document = simplexml_load_file("availability.xml"); try{ $soap_client = new soapclient("http://xx.xxx.xx.xxx/ArzooWS/services/DOMFlightAvailability?wsdl"); $availability = $soap_client->getAvailability($dom_document); echo $availability->getAvailabilityResponse; }catch(SoapFault $exception){ echo $exception->getMessage(); } The error i'm getting: > Notice: Trying to get …

Member Avatar
Member Avatar
+0 forum 8

the interviwever ask me one more question about soap in php can any budy tell me what is this i am really don't know about it?

Member Avatar
Member Avatar
+0 forum 2

I need to consume a web service in VS 2010 using VB.NET that gives a result of a class type. I've already added the reference and called it with: Dim mag As New Magento.ecommerce I can create a variable as the class: Dim Stockcodes As New List(Of Magento.clsStockcode) I just don't understand now how to make my Stockcodes variable get the data from the Web Service. I've tried variations of: Stockcodes = mag.ReturnNewStockodes("admin", "password") and Stockcodes.Add(New Stockcodes(mag.ReturnNewStockodes("admin", "password")) but really I'm not sure what I'm doing. I'm guessing what I need is the result of the Web Service as a …

Member Avatar
Member Avatar
+0 forum 6

**i have consumed a webservice (shown below) from webservicex.net into my client C#.NET application but it is returning this whole bunch of XML. Please, how do i get values of only <wind> and <temperature> elements into my application's textbox? Thanks** <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 1 mile:0</Visibility> <SkyConditions> obscured</SkyConditions> <Temperature> 50 F (10 C)</Temperature> <DewPoint> 50 F (10 C)</DewPoint> <RelativeHumidity> 100%</RelativeHumidity> <Pressure> 30.30 in. Hg (1026 hPa)</Pressure> <Status>Success</Status> </CurrentWeather></string>

Member Avatar
Member Avatar
+0 forum 1

Hi all , I have a wevservice link say http://abc.com/wscom/MKWebService.rem from where I am trying to return value giving some parameters . The method and parameters are given below. method : GetInfo Parameters: string LicenseID string password Return Value: struct AnswerInt Now I have two xml files request.xml and response.xml as //request.xml <?xml version="1.0" encoding="utf-8"?> POST /dotnet/lodge.asmx HTTP/1.1 Host: www.messagenet.com.au Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <LodgeMessage xmlns="http://abc.com/wscom/MKWebService.rem"> <LicenceID>string</LicenceID> <password>string</password> </LodgeMessage> </soap12:Body> </soap12:Envelope> //response.xml <?xml version="1.0" encoding="utf-8"?> HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> …

Member Avatar
Member Avatar
+0 forum 11

I have this PHP program: <?php echo 'Start of Soap Request<br />'; $client = new SoapClient("http://192.168.201.67:10010/web/services/getItemDesc?wsdl"); print_r($client); echo '<br />Start of Var_Dump<br />'; var_dump($client); echo '<br />Result Print<br />'; $result = $client->testws(array("PEITEM" => "1020000000", "PEMSG" =>" ")); print_r($result); ?> That access a web service on my iSeries. I can get the Web Service to work in SOAP UI, but for some reason it does not work when called from this very short program. I seem to be missing something. I have tried to look at the error logs on the iSeries, but all I have been able to find is …

Member Avatar
Member Avatar
+0 forum 1

Hi, im wondering how i get this to work? <?php $client = new SoapClient("http://localhost:8731/phpwcf/?wsdl"); var_dump($client->KundLandKodAlternativ()); $response = $client->KundLandKodAlternativ(); $array1 = $response->KundLandKodAlternativResult->WCFString1; $array2 = $response->KundLandKodAlternativResult->WCFReturnString; echo count($array1); echo count($array2); ?> the line `var_dump($client->KundLandKodAlternativ());` gives object(stdClass)[2] public 'KundLandKodAlternativResult' => object(stdClass)[3] public 'WCFReturnString' => object(stdClass)[4] public 'string' => array (size=4) ... public 'WCFString1' => object(stdClass)[5] public 'string' => array (size=4) ... i want my arrays in php to get the values from my c# function but i dont know how thank you for answers

Member Avatar
Member Avatar
+0 forum 2

hello! i have a function in my C# code that returns a string array. and when i test my function in WCF Test Client i get Name Value Type (return) length=4 System.String[] [0] "DE" System.String [1] "DK" System.String [2] "NO" System.String [3] "SE" System.String **code if i do var_dump on the function** object(stdClass)[2] public 'LandsKodComboBoxResult' => object(stdClass)[3] public 'string' => array (size=4) 0 => string 'DE' (length=2) 1 => string 'DK' (length=2) 2 => string 'NO' (length=2) 3 => string 'SE' (length=2) **My code so far** <?php $client = new SoapClient("http://localhost:8731/phpwcf/?wsdl"); var_dump($client->MyFunction()); $array = $client->MyFunction(); echo $array[2] ?> * so …

Member Avatar
Member Avatar
+0 forum 4

Hello im trying to get a hello world program to work from c# to wcf and then call it with php now have gone as far as i can get. **You have created a service.** To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax: svcutil.exe http://localhost:8731/phpwcf/?wsdl This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class …

Member Avatar
Member Avatar
+0 forum 3

The End.