473,796 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SOAP Response Error

1 New Member
Hi!!

I am executing a call to a webservice with SOAP and the following mistake takes place:

[SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer found to deserialize a 'http://PkgFechaSistema Sync:ns1:out' using encoding style 'http://schemas.xmlsoap .org/soap/encoding/'.; targetException =java.lang.Ille galArgumentExce ption: No Deserializer found to deserialize a 'http://PkgFechaSistema Sync:ns1:out' using encoding style 'http://schemas.xmlsoap .org/soap/encoding/'.]

The XML of the wsdl is:

<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitio ns targetNamespace ="http://PkgFechaSistema Sync" xmlns:tns ="http://PkgFechaSistema Sync" xmlns:wsdlsoap= "http://schemas.xmlsoap .org/wsdl/soap/ " xmlns:soap12=" http://www.w3.org/2003/05/soap-envelope" xmlns:xsd ="http://www.w3.org/2001/XMLSchema " xmlns:soapenc11 =" http://schemas.xmlsoap .org/soap/encoding/" xmlns:soapenc12 ="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="h ttp://schemas.xmlsoap .org/soap/envelope/ " xmlns:wsdl=" http://schemas.xmlsoap .org/wsdl/">
- <wsdl:types>
- <xsd:schema xmlns:xsd ="http://www.w3.org/2001/XMLSchema" attributeFormDe fault="qualifie d" elementFormDefa ult="qualified" targetNamespace ="http://PkgFechaSistema Sync">
- <xsd:element name=" FechaActualSist ema">
< xsd:complexType />
</xsd:element >
- <xsd:element name=" FechaActualSist emaResponse">
- <xsd:complexTyp e>
- <xsd:sequence >
< xsd:element maxOccurs="1" minOccurs="1" name ="out" nillable ="true" type="xsd:strin g " />
</xsd:sequence >
</xsd:complexType >
</xsd:element >
</xsd:schema >
</wsdl:types >
- <wsdl:message name=" FechaActualSist emaResponse">
< wsdl:part name="parameter s" element="tns:Fe chaActualSistem aResponse" />
</wsdl:message >
- <wsdl:message name=" FechaActualSist emaRequest">
< wsdl:part name="parameter s" element="tns:Fe chaActualSistem a" />
</wsdl:message >
- <wsdl:portTyp e name=" WSFechaSistemaS yncPortType">
- <wsdl:operati on name=" FechaActualSist ema">
< wsdl:input name="FechaActu alSistemaReques t" message="tns:Fe chaActualSistem aRequest" />
< wsdl:output name="FechaActu alSistemaRespon se" message="tns:Fe chaActualSistem aResponse" />
</wsdl:operation >
</wsdl:portType >
- <wsdl:binding name=" WSFechaSistemaS yncHttpBinding" type="tns:WSFec haSistemaSyncPo rtType ">
< wsdlsoap:bindin g style="document " transport="http ://schemas.xmlsoap .org/soap/http " />
- <wsdl:operati on name=" FechaActualSist ema">
< wsdlsoap:operat ion soapAction="" />
- <wsdl:input name=" FechaActualSist emaRequest">
< wsdlsoap:body use="literal" />
</wsdl:input >
- <wsdl:output name=" FechaActualSist emaResponse">
< wsdlsoap:body use="literal" />
</wsdl:output >
</wsdl:operation >
</wsdl:binding >
- <wsdl:service name=" WSFechaSistemaS ync">
- <wsdl:port name=" WSFechaSistemaS yncHttpPort" binding="tns:WS FechaSistemaSyn cHttpBinding ">
< wsdlsoap:addres s location=" http://172.16.98.56:70 01/WSFechaSistemaS ync/services/WSFechaSistemaS ync" />
</wsdl:port >
</wsdl:service >
</wsdl:definition s >

The make call implementacion:

//Obtener la URL de Configuración
URL url = new URL("http://172.16.98.56:70 01/WSFechaSistemaS ync/services/WSFechaSistemaS ync");
//URL url = new URL(rutaURL);

//logger.pintarTr aza("Antes de LLamar a un Objeto SOAP");

Call call = new Call();

//logger.pintarTr aza("Despues de LLamar a un Objeto SOAP");

SOAPMappingRegi stry soap = new SOAPMappingRegi stry();
soap.mapTypes(C onstants.NS_URI _SOAP_ENC, new QName("http://PkgFechaSistema Sync","xsd:stri ng"),
String.class, null, new StringDeseriali zer());

call.setSOAPMap pingRegistry(so ap);

//Obtener la URI de Configuración
//call.setTargetO bjectURI(operat ion);
call.setTargetO bjectURI("http://PkgFechaSistema Sync");

//Obtener el Método de Invocación de Configuración
call.setMethodN ame("ejecutaEJB ");

call.setEncodin gStyleURI(Const ants.NS_URI_SOA P_ENC);

Vector params = new Vector();

for (int j=0; j<parametros.le ngth; j++) {
params.addEleme nt(new Parameter("in"+ j, String.class,
kaka[j], null));
}

call.setParams( params);

try {

Response response = call.invoke(url ,"http://PkgFechaSistema Sync");

} catch (SOAPException ex) {
logger.pintarTr aza("Error en la Clase: AccesoWebServic e - Método: accederWebServi ce" + ex.getMessage() );
ex.printStackTr ace();
}
Sep 24 '07 #1
0 1719

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

Similar topics

0
4408
by: Arne Kösling | last post by:
Hi ! I am new to Web Services. Therefore I ve set up a PHP Installation on Windows (PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed PEAR. Now I am stuck there (Before that, I had many problems with the PHP-dlls) I've set up several SOAP Testscripts that I found on WebSites and in PHP-Books to get a PHP Client and a PHP Server communicate over Web Services (using PEAR::SOAP).
2
9577
by: mkosca01 | last post by:
Hello, I have recently downloaded and installed the Soap Toolkit 3.0 from microsoft. I have successfully created the example web service DocSample1 and am able to run this from the command line using the following .vbs file. Option Explicit Dim soapClient3
0
2296
by: Michael Jackson | last post by:
I have attempted to mark up a service and it's methods so that it doesn't require the SOAPAction HTTP header to resolve the methods being called, this is done from first element in <SOAP-ENV:Body> and the request and responses are not suffixed with Request and Response. Is there some more I could do with the attributes on the class that defines the WS and on the methods. the code for the WS etc is below. This I can get to work POST...
4
6031
by: pepcag | last post by:
I used http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconalteringsoapmessageusingsoapextensions.asp as a template to create a very simple web method with soap extension. The code like this: public string HelloWorld() { return "Hello World.";
3
9796
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the response. As a result of seraching news groups I guessed that the SOAP response defines an array element in a way that causes the dotnet deserialization routines to put the content in a generic object array (object) BUT the content is supposed to...
0
5608
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE SERVER================ <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
5158
by: pmlane2001 | last post by:
I have a PHP SOAP XML file size problem that I was wondering if anyone has seen before. I have an XML file that when I put it through my PHP script with 270 lines (13,082 KB) it works fine. If I make it 271 lines (13,112 KB), it causes the script to end with a soap fault. I've tried adding substance to the 270 lines to make the file bigger with out adding lines, but it didn't fail. I've installed everything on a second development box...
2
6772
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also definitely getting a hit when I use a browser to get to my hibye.cgi server (well, a blank page rather than a 404). However, when I run my hibye.pl client, I receive a 503 Service Unavailable at H:\scripts\hibye.pl line 25. It works when I...
1
3819
by: akumar8k | last post by:
when i am excusing the below code i am getting the error. Error 1 − <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> − <SOAP-ENV:Body> −
0
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10456
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10230
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10174
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7548
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.