No Deserializer found to deserialize a ':parameters' using encoding style 'null'

2006-05-01 Thread Raymond Domingo
Hello  everyone,

We are STRUGGELING to connect our soap client to our axis server  for some
time now, PLEASE HELP !

We suspect there is a problem with the encodingStyle. We created a test client
 (using axis) and it works ok. After comparing the soap message (obtained
using sniffer) 
 from our Testclient and the soap client we discovered the soap client is
using an encodingStyle, and our working test client is not.  

There is also some difference in the namespace, 
but we assume this difference isn’t the cause. Because it should do exactly
the same. See snapshot of xml below:

The Exception from soap client:
2006-05-01 09:53:57,503 - ERROR - (nl.foo….) - Invoking 'adHocVragen' failed!
[SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer found to
deserialize a apos;:parametersapos; using encoding style apos;nullapos;.;
targetException=java.lang.IllegalArgumentException: No Deserializer found to
deserialize a ':parameters' using encoding style 'null'.]
at org.apache.soap.rpc.Call.invoke(Call.java:294)
…

Our testclient xml:
?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
AdHocVragen xmlns=LRDServiceSOAP.xml
parameters xmlns=

Our soap client xml
?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:adHocVragen xmlns:ns1=LRDServiceSOAP.xml
SOAP-ENV:encodingStyle=http://xml.apache.org/xml-soap/literalxml;
parameters

We can’t change our client code, because it is already used by many customers. 
Currently we are building a new webservice using axis.
We are using axis 1.3 and soap 2.3.

Can anyone please explain to me why my soap client can’t connect to the axis
server ?

Best regards,
Raymond domingo



Encoding Style

2006-03-31 Thread Arnaud MERGEY

 Hi,
I'have same problem,

I'have compared Axis 1.3 and Axis2 0.95 soap request generation (dynamic 
invocation)


Axis 1.3 (OK):
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:Bodyns1:getAnagramWithLetters 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:ns1=xletters xsi:type=xsd:stringDEFAIRE/lettersnbLetters 
href=#id0//ns1:getAnagramWithLettersmultiRef id=id0 
soapenc:root=0 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xsi:type=xsd:int 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;7/multiRef/soapenv:Body/soapenv:Envelope


Axis2 (KO : org.apache.axis2.AxisFault: this is a soap-encoded endpoint)
soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header 
/soapenv:BodygetAnagramWithLetters 
xmlns=http://www.webmethods.com/wsdl/AnagramImpl/;lettersDEFAIRE/lettersnbLetters7/nbLetters/getAnagramWithLetters/soapenv:Body/soapenv:Envelope


Is it possible to use some Axis2 option to have encoding style attribute ?

Arnaud


Dharminder Singh
Wed, 26 Feb 2003 12:26:41 -0800



Hi all,


I have a question about the encoding style attribute. I'm using axis as 

a client to a glue server and I'm setting the encoding style attribute on
both the rpc element aswell as the body element in the request soap 

message. It seems that glue expects the encoding style attribute to be
on the envelope or body elements. If the encoding style attribute is not 

on this level glue throws a this is a soap encoded endpoint exception.

I looked at the axis code specifically SOAPEnvelope.java and 
SOAPBody.java and I see that attributes on the body element are never 
serialized. Is this correct or am I doing something wrong?



I appreciate any help.



Thanks



Dharminder Singh