473,396 Members | 2,070 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

PHP - SOAP - WSDL: No Deserializer found to deserialize Error

2
This is the xml file format I have to use:

Expand|Select|Wrap|Line Numbers
  1. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  2. <soapenv:Body>
  3. <exec xmlns="CBWSCallEngine" soapenv:encodingStyle="http://xml.apache.org/xml-soap/literalxml">
  4. <arguments>
  5. <CbOrderProduct>
  6. <Header>
  7. <EndpointNm>123456789</EndpointNm>
  8. <Certificaat>abcdef</Certificaat>
  9. </Header>
  10. <Detail>
  11. <EAN>9789460941726</EAN>
  12. <OrderReference>201406100527</OrderReference>
  13. <ClientId></ClientId>
  14. <ReadingMethods>D</ReadingMethods>
  15. <RetailerId></RetailerId>
  16. <License></License>
  17. <RentalUnits></RentalUnits>
  18. <RentalNumberOfUnits></RentalNumberOfUnits>
  19. </Detail>
  20. </CbOrderProduct>
  21. </arguments>
  22. </exec>
  23. </soapenv:Body>
  24. </soapenv:Envelope>
this is WSDL URL: https://tst.eboekhuis.nl/cbwebs/CBWSCallEngine?WSDL

everytime I try, I get below error message:

Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] No Deserializer found to deserialize a ':CbOrderProduct' using encoding style 'null'. [java.lang.IllegalArgumentException]

I tried simple SoapVar like below:

Expand|Select|Wrap|Line Numbers
  1. $xml .= '<CbOrderProduct>';
  2. $xml .= '<Header>';
  3. $xml .= '<EndpointNm>123456</EndpointNm>';
  4. $xml .= '<Certificaat>abcdef</Certificaat>';
  5. $xml .= '</Header>';
  6. $xml .= '<Detail>';
  7. $xml .= '<EAN>9789460941726</EAN>';
  8. $xml .= '<OrderReference>201406100527</OrderReference>';
  9. $xml .= '<ClientId></ClientId>';
  10. $xml .= '<ReadingMethods>D</ReadingMethods>';
  11. $xml .= '<RetailerId></RetailerId>';
  12. $xml .= '<License></License>';
  13. $xml .= '<RentalUnits></RentalUnits>';
  14. $xml .= '<RentalNumberOfUnits></RentalNumberOfUnits>';
  15. $xml .= '</Detail>';
  16. $xml .= '</CbOrderProduct>';
  17.  
  18. $client = new SoapClient(
  19.     null,
  20.     array(
  21.         'location' => 'https://tst.eboekhuis.nl:443/cbwebs/CBWSCallEngine',
  22.         'uri' => 'https://tst.eboekhuis.nl/cbwebs/CBWSCallEngine?WSDL',
  23.         'trace' => 1,
  24.         'use' => SOAP_LITERAL
  25.     )
  26. );
  27. $params = new SoapVar($xml, XSD_ANYXML);
  28. $result = $client->exec($params);
  29. Also I tried like below which I found on stackoverflow:
  30.  
  31. class CbOrderProduct
  32. {
  33.     var $Header;
  34.     var $Detail;
  35.  
  36.     function __construct()
  37.     {
  38.                 $this->Header = new stdClass();
  39.                 $this->Detail = new stdClass();
  40.     }
  41.     function setheader($endpoint,$Certificaat)
  42.     {
  43.         $this->Header->EndpointNm = $endpoint;
  44.         $this->Header->Certificaat = $Certificaat;
  45.     }   
  46.  
  47.     function setdetail($ean,$orderreference,$clienid,$readingmethods,$retailerid,$License,$RentalUnit,$RentalNumberOfUnits)
  48.     {
  49.         $this->Detail->EAN =$ean;
  50.         $this->Detail->OrderReference = $orderreference;
  51.         $this->Detail->ClientId = $clienid;
  52.         $this->Detail->ReadingMethods = $readingmethods;
  53.         $this->Detail->RetailerId = $retailerid;
  54.         $this->Detail->License = $License;
  55.         $this->Detail->RentalUnit = $RentalUnit;
  56.         $this->Detail->RentalNumberOfUnits = $RentalNumberOfUnits;
  57.  
  58.     }   
  59. }
  60.  
  61. class exec0Request {
  62.  
  63.     var $arguments;
  64.  
  65.     function __construct($arguments) 
  66.     {
  67.         $this->arguments = $arguments;
  68.     }
  69. }
  70.  
  71.  
  72. $order = new CbOrderProduct();
  73. $order->setheader('123456','abcdef');
  74. $order->setdetail('9789460941726','201406100527','','CR','','','','');
  75. $request = new exec0Request($order);
  76. $client = new SoapClient("https://tst.eboekhuis.nl/cbwebs/CBWSCallEngine?WSDL");
  77. $result = $client->exec(new SoapParam($request, "exec0Request"));
none of them work. I tried different type of xml files.

could anyone let me know what the problem is?
Jun 17 '14 #1
3 2399
Dormilich
8,658 Expert Mod 8TB
why is there a Java error in your PHP?
Jun 18 '14 #2
mmnclk
2
that's what service returns. I think they use java on their end. Not sure
Jun 18 '14 #3
Dormilich
8,658 Expert Mod 8TB
It’s a problem on the other end. I’m not an Expert for SOAP, but it looks like your Request-XML is somewhat faulty. you should talk to their support.
Jun 19 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Help Needed | last post by:
There is an ASP page in my site which sometimes gives file not found error. This page which is suppossedly missing exists on the server and available most of the time. But sometimes out of the...
3
by: kevin | last post by:
Is that even possible? I am creating a web service in .NET to expose some already created .NET programs to other groups. One group is writing the client in PERL, and thus wishes the wsdl schema...
0
by: Ben Edwards (lists) | last post by:
I have the below code to get info about SOAP services at a wsdl url. It gets the in parameters OK but does not seem to get out/return parameters. Any idea why? Ben from SOAPpy import WSDL...
0
by: elgemcdlf | last post by:
I have a small db built with Lotus Approach that polls servers and catalogs the responses. I have now run into one that uses a Web Service for the data I desire. Below is the WSDL file along with the...
1
by: stoffal | last post by:
Hi! I would like to use a webservice which offers to layout a graph structure automatically. Regarding the WSDL description it looks pretty simple: http://cmap.ihmc.us/xml/LayoutWebService.html...
1
by: honguin | last post by:
Hi, In my C# code, I have defined a Map object which is sent as part of a request to a web service, here's an extract of the part of the code: - Map map = new Map(); map.item = new mapItem...
1
by: Hades | last post by:
Hi there :) I'm trying to make a client-server system, SOAP based. Both client and server modules are written in Python. I'm using ZSI libraries, abd Python version is 2.5. In my WSDL File I...
0
by: gcwg | last post by:
Hi, I am new to using the Soap::WSDL module. How would I go about getting rid of this parsing error? #!/usr/bin/perl use strict; use SOAP::WSDL +trace => 'all'; use Data::Dumper;
0
by: Sanath Prudhvi | last post by:
Hi All, I am developing a window application. The whole solution contains number of projects. I am taking reference of all those projects to the main project. When I run the...
0
by: KusakaKyo | last post by:
Ok, so i have been trying to request some webservices from a PHP server, but the thing is that it should be reciveing SOAP Envelop formated XMLs .... The thing is that when i call their services, i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.