473,414 Members | 1,663 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,414 software developers and data experts.

Read SOAP-Response-Value

Hi,

I am really confused. I try to call a soap-method on a server with one
parameter and I like to get the return-parameter of this method, but I
get ever the following exception by invoking the call:
--------------------------------------
No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/encoding/:string' using
encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.

[SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer found to
deserialize a
'http://schemas.xmlsoap.org/soap/encoding/:string' using
encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException : No Deserializer
found to deserialize a
'http://schemas.xmlsoap.org/soap/encoding/:string' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.]
--------------------------------------

I think the call on the server is correct:
--------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:HelloTEST xmlns:ns1="http://impl.webservice._Test.com"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<HelloName xsi:type="ns1:HelloTESTReturn">This is Oliver!</HelloName>
</ns1:HelloTEST>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--------------------------------------

I think also the answer from the server is correct:
--------------------------------------
<?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>
<ns1:HelloTESTResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://impl.webservice._Test.com">
<HelloTESTReturn xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Hello from
Server: This is Oliver!</HelloTESTReturn>
</ns1:HelloTESTResponse>
</soapenv:Body>
</soapenv:Envelope>

My code is like:
--------------------------------------
....
Vector vSOAPParams = new Vector();
vSOAPParams.addElement(new Parameter("HelloName", String.class, "This is
Oliver!", Constants.NS_URI_SOAP_ENC));
oCall.setParams(vSOAPParams);
// ReturnValue
SOAPMappingRegistry smr = new SOAPMappingRegistry();
Deserializer sd = new StringDeserializer();
smr.mapTypes(Constants.NS_URI_SOAP_ENC, new
QName("http://impl.webservice._Test.com", "HelloTESTReturn"),
String.class, null, sd);
oCall.setSOAPMappingRegistry(smr);

Response resp = oCall.invoke(oURL,
"http://impl.webservice._Test.com/HelloTEST"); // throws SOAPException
....
--------------------------------------

I don't know, why I don't get the return-value "Hello from Server: This
is Oliver!".
There is ever a SOAPException catched by "Response resp =
oCall.invoke(...);"

Could anybody help me!

Thanks a lot.
--
Oliver Hirschi
http://www.FamilyHirschi.ch

Sep 14 '05 #1
0 7437

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Cantor | last post by:
Hello everyone :) I am writing some dotNET code to "consume" a web service written in PHP. So far I have been getting some error messages and PHP seems to place HTML text in front of the XML...
0
by: Dan V. | last post by:
What are the differences between XML-RPC and SOAP 1.1? Thanks for any help. Can I read XML-RPC into .NET? Or should I use SOAP 1.1 to get into .NET? I may have no choice. Here is an example...
4
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
0
by: chr | last post by:
Hi, I'm trying to integrate a webservice into a c#-program, creating proxy classes from a wsdl-file with wsdl.exe. All works fine, except if containers are returned. Although I can see in the...
8
by: xmail123 | last post by:
Hi, As was pointed out whatever you return from a WebMethod needs to be serializable to SOAP. An ArrayList is not serializable. I will be needing to return other data types from web methods. ...
7
by: beachdog | last post by:
I'm using Visual Studio 2005/C# to build a web client. The web server is something I've written in a different framework, which does not support generating wsdl, so I have hand-built a wsdl file,...
0
by: Michael_R_Banks | last post by:
All, I'm trying to use SOAP to pass a serialized object from a VB.net application to a PHP application. Is this at all possible? Any help will be appreciated. I have included a copy of the...
0
by: kim123 | last post by:
I got to write a c# client will ask a SOAP::Lite server for a list of data. In the request I have to send the following attributes: string, string, array, string, string The SOAP:Lite server is...
2
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until I...
3
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until...
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
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.