0 or null return values when .Net client accesses JBoss webs
md5georg Mar 21, 2005 8:11 AMHello,
We are currently developing an api that is exposed through doc/literal
web service methods and our customers are going to use their own
developed .Net clients to access it. We are now testing this api from a .Net VB client.
Connection and access between the client and server is now up and
running, and both complex types and primitive values are sent from the
.Net client to the server. On the way back though, no values for either
complex types or primitives are showing up at the client. It feels like the
client is unable to deserialize the client value.
I have searched the net for information about this and the only thing that
seams to fit this problem have something to do with qualified/unqualified
'form' attribute on the element description for the getBurro3Response...
but I can not find any information about this here on the JBoss forums.
If anyone have seen this problem before I would be grateful for any ideas
about what could be wrong.
(This post will also be posten in some Microsoft .Net forum, since I suspect
that it is a .Net client error)
Best regards,
Georg
Soap call:
POST /ports/TacoBell HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.0.3705.6018) Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 337 Expect: 100-continue Connection: Keep-Alive Host: 127.0.0.1 <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <getBurro3 xmlns="http://bullen.com/fleet/api/types"> <int_1>12</int_1> </getBurro3> </soap:Body> </soap:Envelope>
Soap response:
HTTP/1.1 100 Continue HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.0.2RC1 (build: CVSTag=JBoss_4_0_2_RC1 date=200503140913)/Tomcat-5.5 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Mon, 21 Mar 2005 12:43:04 GMT 196 <?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:getBurro3Response xmlns:ns1="http://bullen.com/fleet/api/types"> <result>heppadoda!</result> </ns1:getBurro3Response> </soapenv:Body> </soapenv:Envelope> 0
Here is the part from the WSDL file that handles the getBurrito3Response:
<?xml version="1.0" encoding="UTF-8"?> <definitions name="FleetAPI" targetNamespace="http://bullen.com/fleet/api" xmlns:tns="http://bullen.com/fleet/api" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://bullen.com/fleet/api/types" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://bullen.com/fleet/api/types" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://bullen.com/fleet/api/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> ... <complexType name="getBurro3Response"> <sequence> <element name="result" nillable="true" type="string"/></sequence></complexType>